Browse Source

enable css features

PHP-GTK3
yggverse 7 months ago
parent
commit
86837d0fe2
  1. 16
      src/Entity/App.php
  2. 4
      src/Theme/Default.css

16
src/Entity/App.php

@ -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;

4
src/Theme/Default.css

@ -1,3 +1 @@
#boxMenu {} /* Custom CSS */
#boxNavigation {}
#boxTab {}
Loading…
Cancel
Save