mirror of
https://github.com/elementary/gala.git
synced 2024-09-11 15:15:39 +03:00
Daemon: Respect Granite dark style preference (#896)
This commit is contained in:
parent
a5b90f603c
commit
62fd621096
@ -17,7 +17,7 @@ You'll need the following dependencies:
|
|||||||
* libgee-0.8-dev
|
* libgee-0.8-dev
|
||||||
* libglib2.0-dev (>= 2.44)
|
* libglib2.0-dev (>= 2.44)
|
||||||
* libgnome-desktop-3-dev
|
* libgnome-desktop-3-dev
|
||||||
* libgranite-dev (>= 5.3.0)
|
* libgranite-dev (>= 5.4.0)
|
||||||
* libgtk-3-dev (>= 3.4.0)
|
* libgtk-3-dev (>= 3.4.0)
|
||||||
* libmutter-0-dev (>= 3.23.90) | libmutter-dev (>= 3.14.4)
|
* libmutter-0-dev (>= 3.23.90) | libmutter-dev (>= 3.14.4)
|
||||||
* libplank-dev (>= 0.10.9)
|
* libplank-dev (>= 0.10.9)
|
||||||
|
@ -45,6 +45,15 @@ namespace Gala {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var granite_settings = Granite.Settings.get_default ();
|
||||||
|
var gtk_settings = Gtk.Settings.get_default ();
|
||||||
|
|
||||||
|
gtk_settings.gtk_application_prefer_dark_theme = granite_settings.prefers_color_scheme == Granite.Settings.ColorScheme.DARK;
|
||||||
|
|
||||||
|
granite_settings.notify["prefers-color-scheme"].connect (() => {
|
||||||
|
gtk_settings.gtk_application_prefer_dark_theme = granite_settings.prefers_color_scheme == Granite.Settings.ColorScheme.DARK;
|
||||||
|
});
|
||||||
|
|
||||||
var menu_daemon = new MenuDaemon ();
|
var menu_daemon = new MenuDaemon ();
|
||||||
menu_daemon.setup_dbus ();
|
menu_daemon.setup_dbus ();
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ gtk_dep = [dependency('gtk+-3.0', version: '>= @0@'.format(gtk_version_required)
|
|||||||
gee_dep = dependency('gee-0.8')
|
gee_dep = dependency('gee-0.8')
|
||||||
bamf_dep = dependency('libbamf3')
|
bamf_dep = dependency('libbamf3')
|
||||||
plank_dep = dependency('plank', version: '>= @0@'.format(plank_version_required))
|
plank_dep = dependency('plank', version: '>= @0@'.format(plank_version_required))
|
||||||
granite_dep = dependency('granite', version: '>= 5.3.0')
|
granite_dep = dependency('granite', version: '>= 5.4.0')
|
||||||
gnome_desktop_dep = dependency('gnome-desktop-3.0')
|
gnome_desktop_dep = dependency('gnome-desktop-3.0')
|
||||||
gsd_dep = dependency('gnome-settings-daemon', version: '>= @0@'.format(gsd_version_required))
|
gsd_dep = dependency('gnome-settings-daemon', version: '>= @0@'.format(gsd_version_required))
|
||||||
m_dep = cc.find_library('m', required: false)
|
m_dep = cc.find_library('m', required: false)
|
||||||
|
Loading…
Reference in New Issue
Block a user