@@ -38,34 +38,23 @@ namespace jorts {
3838 Intl . bind_textdomain_codeset (GETTEXT_PACKAGE , " UTF-8" );
3939 Intl . textdomain (GETTEXT_PACKAGE );
4040
41- /* // Follow whether dark or light
41+ // FIXME: Dark breaks a few things: border, font of editablelabel, buttons in popover
4242 var granite_settings = Granite . Settings . get_default ();
4343 var gtk_settings = Gtk . Settings . get_default ();
44- */
45- /* gtk_settings.gtk_application_prefer_dark_theme = (
46- granite_settings.prefers_color_scheme == DARK
47- );
44+ gtk_settings. gtk_application_prefer_dark_theme = (
45+ granite_settings. prefers_color_scheme == DARK
46+ );
4847
4948 granite_settings. notify[" prefers-color-scheme" ]. connect (() = > {
5049 gtk_settings. gtk_application_prefer_dark_theme = (
5150 granite_settings. prefers_color_scheme == DARK
5251 );
53- }); */
54-
55- // Somehow without this the CSS isnt applied
56- // Shouldnt it be automatic :(
57- var app_provider = new Gtk .CssProvider ();
58- app_provider. load_from_resource (" /io/github/ellie_commons/jorts/Application.css" );
59- Gtk . StyleContext . add_provider_for_display (
60- Gdk . Display . get_default (),
61- app_provider,
62- Gtk . STYLE_PROVIDER_PRIORITY_APPLICATION + 1
63- );
52+ });
6453
65- // build all the stylesheets
66- jorts. Themer . init_all_themes();
6754
6855
56+ // build all the stylesheets
57+ jorts. Themer . init_all_themes();
6958 }
7059
7160 static construct {
0 commit comments