-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: switchboard-plug-pantheon-shell (#825)
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
anda/desktops/elementary/switchboard-plug-pantheon-shell/dark-theme-wallpaper.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From a3be778d1c4137d30af6ed9a08d0b54ee828687f Mon Sep 17 00:00:00 2001 | ||
From: madomado <[email protected]> | ||
Date: Tue, 21 Nov 2023 19:45:14 +0800 | ||
Subject: [PATCH] fix(wallpaper): change wallpaper for dark theme settings | ||
|
||
Previously before the fix, the wallpaper cannot be changed via settings because it only sets the wallpaper for the light theme, not the dark theme. | ||
This fixes the issue. | ||
--- | ||
src/Views/Wallpaper.vala | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/src/Views/Wallpaper.vala b/src/Views/Wallpaper.vala | ||
index 07251444..7141cad8 100644 | ||
--- a/src/Views/Wallpaper.vala | ||
+++ b/src/Views/Wallpaper.vala | ||
@@ -206,6 +206,7 @@ public class PantheonShell.Wallpaper : Gtk.Box { | ||
} | ||
|
||
gnome_background_settings.set_string ("picture-uri", uri); | ||
+ gnome_background_settings.set_string ("picture-uri-dark", uri); | ||
} | ||
|
||
private void update_checked_wallpaper (Gtk.FlowBox box, Gtk.FlowBoxChild child) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters