mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
add css theme support
This commit is contained in:
parent
aa066ee178
commit
4258c9b5e0
2 changed files with 16 additions and 0 deletions
16
src/Yoda.php
16
src/Yoda.php
|
|
@ -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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue