Bug 514656 - Custom wallpaper accents get replaced with the generated color when applied
Summary: Custom wallpaper accents get replaced with the generated color when applied
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_colors (other bugs)
Version First Reported In: 6.5.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-15 15:45 UTC by aronkvh
Modified: 2026-08-12 22:53 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.7.5
Sentry Crash Report:


Attachments
applying wallpaper custom colors (47.81 KB, video/webm)
2026-01-15 15:45 UTC, aronkvh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aronkvh 2026-01-15 15:45:07 UTC
Created attachment 188559 [details]
applying wallpaper custom colors

SUMMARY
I have this in a wallpaper: 
"X-KDE-PlasmaImageWallpaper-AccentColor": {
        "Dark": "#ACD600",
        "Light": "#52AC3F"
    }

But when I apply the wallpaper the accent color resets to the one generated by Plasma.

STEPS TO REPRODUCE
1. Set a wallpaper with custom colors
2. Choose "Accent color from wallpaper" in the Colors KCM

OBSERVED RESULT
1. When choosing the setting, the preview shows the correct color
2. After it's applied, it resets to the auto-generated color.

EXPECTED RESULT
The accent color set in metadata.json is used.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 43
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.1
Kernel Version: 6.18.5-200.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 Nate Graham 2026-01-16 17:32:07 UTC
I wonder if this got broken with the day/night wallpaper stuff. Does it work if you turn off all those features and apply a custom accent color to a wallpaper with only one version?
Comment 2 aronkvh 2026-01-18 20:21:07 UTC
(In reply to Nate Graham from comment #1)
> I wonder if this got broken with the day/night wallpaper stuff. Does it work
> if you turn off all those features and apply a custom accent color to a
> wallpaper with only one version?

Even with just one color the generated one is used. It's the same in light and dark mode in both json.
Comment 3 GrassBlock 2026-02-08 10:55:45 UTC
(In reply to Nate Graham from comment #1)
> I wonder if this got broken with the day/night wallpaper stuff. Does it work
> if you turn off all those features and apply a custom accent color to a
> wallpaper with only one version?
Comment 4 GrassBlock 2026-02-08 11:03:22 UTC
I can reproduce the bug on day/night wallpapers, but on a single wallpaper without any variants, the accent will be kept until I restarted plasmashell.

I also find switching away from this wallpaper to another one, and then switch back to it, Plasma does not apply the correct accent color defined in the metadata, which may also related.

(Sorry for the #3 comment, it was created by mistake since I want to be CCed when there's a update)
Comment 5 Bug Janitor Service 2026-08-10 13:16:09 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3932
Comment 6 Vlad Zahorodnii 2026-08-10 14:50:28 UTC
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. 

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

https://invent.kde.org/plasma/plasma-desktop/-/commit/766eafc3574cad53165bf096c3f97b48d64bb2f6
Comment 7 Vlad Zahorodnii 2026-08-11 13:36:58 UTC
Git commit 29ea3705dd7f0fbdf990f7d5256734cf35186eaa by Vlad Zahorodnii.
Committed on 11/08/2026 at 12:55.
Pushed by vladz into branch 'Plasma/6.7'.

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. 


(cherry picked from commit 766eafc3574cad53165bf096c3f97b48d64bb2f6)

aba5cdb4 desktop: Do not overwrite wallpaper-provided accent color

Co-authored-by: Zhora Zmeykin <me@katze-942.ru>

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

https://invent.kde.org/plasma/plasma-desktop/-/commit/29ea3705dd7f0fbdf990f7d5256734cf35186eaa