Skip to content
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
8 changes: 8 additions & 0 deletions data/Indicator.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,11 @@ quicksettings .flat avatar {
border: none;
box-shadow: none;
}

quicksettings .color-scheme .toggle image {
transition: all 600ms cubic-bezier(0.66, 3, 0.64, 1);
}

quicksettings .color-scheme .toggle:checked image {
-gtk-icon-transform: rotate(180deg);
}
59 changes: 2 additions & 57 deletions data/icons/dark-mode.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/Widgets/DarkModeToggle.vala
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class QuickSettings.DarkModeToggle: SettingsToggle {
construct {
icon_name = "dark-mode-symbolic";
settings_uri = "settings://desktop/appearance";
get_style_context ().add_class ("color-scheme");

var settings = new GLib.Settings ("io.elementary.settings-daemon.prefers-color-scheme");

Expand Down