Skip to content

Commit

Permalink
fix: switchboard-plug-pantheon-shell (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko authored Nov 21, 2023
1 parent c62d327 commit c4ad42c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
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) {
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4ad42c

Please sign in to comment.