Browse Source

add css theme support

PHP-GTK3
yggverse 5 months ago
parent
commit
4258c9b5e0
  1. 16
      src/Yoda.php
  2. 0
      src/theme/default.css

16
src/Yoda.php

@ -36,4 +36,20 @@ $browser->gtk->connect( @@ -36,4 +36,20 @@ $browser->gtk->connect(
}
);
// Init theme
$css = new \GtkCssProvider;
$css->load_from_file(
__DIR__ .
DIRECTORY_SEPARATOR . 'theme' .
DIRECTORY_SEPARATOR . 'default.css'
);
$style = new \GtkStyleContext;
$style->add_provider_for_screen(
$css,
600
);
\Gtk::main();

0
src/theme/default.css

Loading…
Cancel
Save