Use dark theme (close #46)
This commit is contained in:
parent
17990118c7
commit
0ebb381de8
|
@ -55,6 +55,7 @@ class Application(Gtk.Application):
|
|||
self._setup_logging()
|
||||
self._load_resource()
|
||||
self._load_settings()
|
||||
self._set_default_settings()
|
||||
self._load_css()
|
||||
self._setup_locale()
|
||||
self._load_ui()
|
||||
|
@ -105,6 +106,11 @@ class Application(Gtk.Application):
|
|||
self._settings = Gio.Settings.new(Application.ID)
|
||||
|
||||
|
||||
def _set_default_settings(self):
|
||||
settings = Gtk.Settings.get_default()
|
||||
settings.set_property('gtk-application-prefer-dark-theme', True)
|
||||
|
||||
|
||||
def _load_css(self):
|
||||
styleProvider = Gtk.CssProvider()
|
||||
styleProvider.load_from_resource(self._get_resource_path('gtk.css'))
|
||||
|
|
Loading…
Reference in a new issue