[plasma/plasma-desktop] desktoppackage/contents/views: desktop: Do not overwrite wallpaper-provided accent color

Vlad Zahorodnii <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 766eafc3574cad53165bf096c3f97b48d64bb2f6 by Vlad Zahorodnii, on behalf of Zhora Zmeykin.
Committed on 10/08/2026 at 14:50.
Pushed by vladz into branch 'master'.

desktop: Do not overwrite wallpaper-provided accent color

Amends 06675e18efcebd22e8ca33fb597a071d6308ec05.

When a wallpaper provides an explicit accent color, Desktop.qml assigns
it to the desktop. However, the following independent if statement
immediately replaces it with the dominant color calculated from the
wallpaper image. 

BUG: 514656

M  +1    -2    desktoppackage/contents/views/Desktop.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/766eafc3574cad53165bf096c3f97b48d64bb2f6

diff --git a/desktoppackage/contents/views/Desktop.qml b/desktoppackage/contents/views/Desktop.qml
index 1d1f8c67ad..6acf5c34a2 100644
--- a/desktoppackage/contents/views/Desktop.qml
+++ b/desktoppackage/contents/views/Desktop.qml
@@ -143,8 +143,7 @@ Item {
             onPaletteChanged: {
                 if (!Qt.colorEqual(root.containment.wallpaper.accentColor, "transparent")) {
                     desktop.accentColor = root.containment.wallpaper.accentColor;
-                }
-                if (this.palette.length === 0) {
+                } else if (this.palette.length === 0) {
                     desktop.accentColor = "transparent";
                 } else {
                     desktop.accentColor = this.dominant;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.