Browse Source

enable css features

main
yggverse 2 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 @@ -17,6 +17,22 @@ class App
// Init config
$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
$this->window = new \GtkWindow;

4
src/Theme/Default.css

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