File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -28,18 +28,12 @@ public class Application : Gtk.Application {
2828 );
2929 }
3030
31- protected override void activate () {
32- var granite_settings = Granite . Settings . get_default ();
33- var gtk_settings = Gtk . Settings . get_default ();
34-
35- gtk_settings. gtk_application_prefer_dark_theme =
36- granite_settings. prefers_color_scheme == Granite . Settings . ColorScheme . DARK ;
37-
38- granite_settings. notify[" prefers-color-scheme" ]. connect (() = > {
39- gtk_settings. gtk_application_prefer_dark_theme =
40- granite_settings. prefers_color_scheme == Granite . Settings . ColorScheme . DARK ;
41- });
31+ protected override void startup () {
32+ base . startup ();
33+ Granite . init ();
34+ }
4235
36+ protected override void activate () {
4337 var window = new MainWindow (this );
4438 window. present ();
4539 }
You can’t perform that action at this time.
0 commit comments