fix: switchboard-plug-pantheon-shell (#825)

This commit is contained in:
madomado
2023-11-21 19:51:49 +08:00
committed by GitHub
parent c62d327c91
commit c4ad42c26d
2 changed files with 24 additions and 0 deletions
@@ -0,0 +1,23 @@
From a3be778d1c4137d30af6ed9a08d0b54ee828687f Mon Sep 17 00:00:00 2001
From: madomado <madonuko@outlook.com>
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) {
@@ -14,6 +14,7 @@ License: GPL-3.0
URL: https://github.com/elementary/switchboard-plug-pantheon-shell
Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
Patch0: dark-theme-wallpaper.patch
BuildRequires: gettext
BuildRequires: libappstream-glib