Support GNOME 42 dark theme preference

This commit is contained in:
Jeremy Bicha 2022-02-15 08:40:35 -05:00 committed by Niels De Graef
parent 6e8bd9b310
commit dcb1ee40b3

View file

@ -373,6 +373,8 @@ public class Application.Client : Gtk.Application {
// Calls Gtk.init(), amongst other things
base.startup();
Hdy.init();
Hdy.StyleManager.get_default().set_color_scheme(
Hdy.ColorScheme.PREFER_LIGHT);
this.engine = new Geary.Engine(get_resource_directory());
this.config = new Configuration(SCHEMA_ID);