Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrefersColorSchemeSettings: Remove reference to Granite #40

Merged
merged 5 commits into from
Oct 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions data/io.elementary.settings-daemon.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
<value nick='manual' value='2'/>
</enum>

<enum id="ColorSchemes">
<value nick='no-preference' value='0'/>
<value nick='dark' value='1'/>
<value nick='light' value='2'/>
</enum>

<schema path="/io/elementary/settings-daemon/prefers-color-scheme/" id="io.elementary.settings-daemon.prefers-color-scheme">
<key enum="PreferDarkScheduleType" name="prefer-dark-schedule">
<default>'disabled'</default>
Expand Down Expand Up @@ -47,11 +41,4 @@
<description></description>
</key>
</schema>
<schema path="/org/freedesktop/" id="org.freedesktop">
<key enum="ColorSchemes" name="prefers-color-scheme">
<default>'no-preference'</default>
<summary>Prefers color scheme</summary>
<description>The user's preferred visual style for the user interface.</description>
</key>
</schema>
</schemalist>
3 changes: 0 additions & 3 deletions src/Backends/PrefersColorSchemeSettings.vala
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ public class SettingsDaemon.Backends.PrefersColorSchemeSettings : Object {

construct {
color_settings = new Settings ("io.elementary.settings-daemon.prefers-color-scheme");
var desktop_settings = new Settings ("org.freedesktop");
var granite_settings = Granite.Settings.get_default ();

var schedule = color_settings.get_string ("prefer-dark-schedule");
if (schedule == "sunset-to-sunrise") {
Expand All @@ -44,7 +42,6 @@ public class SettingsDaemon.Backends.PrefersColorSchemeSettings : Object {
}

color_settings.changed["prefer-dark-schedule"].connect (update_timer);
desktop_settings.bind ("prefers-color-scheme", granite_settings, "prefers-color-scheme", SettingsBindFlags.SET);

update_timer ();
}
Expand Down