mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
enable css features
This commit is contained in:
parent
2b1b2d8b1a
commit
86837d0fe2
2 changed files with 17 additions and 3 deletions
|
|
@ -17,6 +17,22 @@ class App
|
||||||
// Init config
|
// Init config
|
||||||
$this->config = \Yggverse\Yoda\Model\File::getConfig()->app; // @TODO
|
$this->config = \Yggverse\Yoda\Model\File::getConfig()->app; // @TODO
|
||||||
|
|
||||||
|
// Init theme
|
||||||
|
$css = new \GtkCssProvider();
|
||||||
|
|
||||||
|
$css->load_from_data(
|
||||||
|
\Yggverse\Yoda\Model\File::getTheme(
|
||||||
|
$this->config->theme
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
$style = new \GtkStyleContext();
|
||||||
|
|
||||||
|
$style->add_provider_for_screen(
|
||||||
|
$css,
|
||||||
|
600
|
||||||
|
);
|
||||||
|
|
||||||
// Init window
|
// Init window
|
||||||
$this->window = new \GtkWindow;
|
$this->window = new \GtkWindow;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1 @@
|
||||||
#boxMenu {}
|
/* Custom CSS */
|
||||||
#boxNavigation {}
|
|
||||||
#boxTab {}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue