Bug 414097 - Preview folder icons not repainted automatically after color scheme change
Summary: Preview folder icons not repainted automatically after color scheme change
Status: CONFIRMED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Thumbnails and previews (show other bugs)
Version: 22.04.1
Platform: Other Linux
: HI normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 446777 453235 454049 454532 455916 460987 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-11-13 14:45 UTC by postix
Modified: 2025-03-11 08:31 UTC (History)
16 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of the issue. (31.57 KB, image/png)
2019-11-13 14:45 UTC, postix
Details
Screenshot (155.92 KB, image/png)
2022-07-18 22:51 UTC, Mircea Kitsune
Details
dolphin window displaying folders not refreshed whether containing file previews or not (88.09 KB, image/jpeg)
2022-09-30 13:21 UTC, Sadi
Details
Dolphin is not showing directories in the wallpaper accent color (2.51 MB, image/png)
2025-03-01 19:01 UTC, Andrija
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2019-11-13 14:45:55 UTC
Created attachment 123889 [details]
Screenshot of the issue.

SUMMARY

When changing the theme from Breeze to Breath for example, the colors of the folders change within an opened window of Dolphin, but not for those which contains document previews. 

In order to make those folders change their color, the view has to be refreshed manually, eg with F5.



SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.17.2
KDE Frameworks Version: 5.65.0
Qt Version: 5.13.2
Comment 1 Nate Graham 2022-05-23 14:42:08 UTC
*** Bug 453235 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2022-05-23 14:42:17 UTC
*** Bug 454049 has been marked as a duplicate of this bug. ***
Comment 3 guimarcalsilva 2022-05-25 19:17:48 UTC
I was about to file a bug report but I found this. Now that Plasma offers the possibility of changing the accent colors based on the wallpaper, and the wallpaper can automatically change, this bug will become more visible to users.
Comment 4 Bacteria 2022-05-29 04:42:36 UTC
*** Bug 454532 has been marked as a duplicate of this bug. ***
Comment 5 Patrick Silva 2022-06-25 15:23:55 UTC
*** Bug 455916 has been marked as a duplicate of this bug. ***
Comment 6 Mircea Kitsune 2022-07-18 22:51:52 UTC
Created attachment 150721 [details]
Screenshot

Confirming. You need to press F5 to refresh, sometimes you must also navigate away then come back to the directory first. I didn't notice it until accent colors came along: Plasma 5.25 added wallpaper based coloring and lets the color automatically change with a wallpaper slideshow, even in this case directory icons with previews don't have their color updated.
Comment 7 Nate Graham 2022-09-15 16:07:22 UTC
*** Bug 446777 has been marked as a duplicate of this bug. ***
Comment 8 Sadi 2022-09-30 13:16:55 UTC
In my case this is true also for folders with file previews as can be seen in screenshot-3 added by me.
Comment 9 Sadi 2022-09-30 13:21:22 UTC
Created attachment 152521 [details]
dolphin window displaying folders not refreshed whether containing file previews or not
Comment 10 Nate Graham 2022-10-25 17:16:19 UTC
*** Bug 460987 has been marked as a duplicate of this bug. ***
Comment 11 Жора Змейкин 2024-06-27 07:33:52 UTC
The problem is still relevant in Plasma 5.27.11 and Plasma 6.1.1. I restart plasmashell so that the folders change their color
Comment 12 Andrija 2025-03-01 18:56:01 UTC
I am having the same issue with Plasma 6.3.2 in 2025.

I have set the accent colors from wallpaper inside the settings > colors and themes > colors. Some directories do not refresh their color upon the wallpaper change. And whenever I open a new Dolphin instance it does not show the accent colors for the directories, but all of them default to the color of the Theme I'm using - Layan.

I will include the screenshots as attachments.

➜  ~ kinfo            
Operating System: Arch Linux 
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.5-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700KF
Memory: 31.2 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4080
Comment 13 Andrija 2025-03-01 19:01:13 UTC
Created attachment 179016 [details]
Dolphin is not showing directories in the wallpaper accent color

I am having the same issue with Plasma 6.3.2 in 2025.

I have set the accent colors from wallpaper inside the settings > colors and themes > colors. Some directories do not refresh their color upon the wallpaper change. And whenever I open a new Dolphin instance it does not show the accent colors for the directories, but all of them default to the color of the Theme I'm using - Layan.

Also, when I open a directory that does not have the accent color all its child directories do not have an accent color as well.

➜  ~ kinfo            
Operating System: Arch Linux 
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.5-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700KF
Memory: 31.2 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4080
Comment 14 Sadi 2025-03-08 14:41:31 UTC
I think I've found what has been creating this problem for so long, and fixed it today with a simple search and replace operation in the file "~/.config/plasma-org.kde.plasma.desktop-appletsrc".
I was actually trying to troubleshoot another problem: often getting a black blank desktop (missing wallpaper and context menu) upon login, but with all panels and widgets working.
I first examined the output of "journalctl -b | grep -i plasma", and noticed many errors regarding the wallpaper plugin, which prompted me to take a look at the file "~/.config/plasma-org.kde.plasma.desktop-appletsrc" where I saw many "Containments" included the line "wallpaperplugin=org.kde.image" while the wallpaper plugin in use is "org.kde.slideshow".
So I replaced all instances of "wallpaperplugin=org.kde.image" with "wallpaperplugin=org.kde.slideshow" (and also removed a block regarding that unused wallpaper plugin).
The problem is gone now after logging out, and back in.
I hope it proves to be the end of this longstanding problem for me and all those who have the same problem.
However, I think this shows that there's a need for better management of configuration files of KDE Plasma, making sure that no such leftovers remain after configuration changes.
Comment 15 Mircea Kitsune 2025-03-08 17:13:07 UTC
Still happening in Plasma 6.3.2 Wayland when changing the accent color, just saw it again last night.
Comment 16 Andrija 2025-03-08 21:16:18 UTC
(In reply to Sadi from comment #14)
> I think I've found what has been creating this problem for so long, and
> fixed it today with a simple search and replace operation in the file
> "~/.config/plasma-org.kde.plasma.desktop-appletsrc".
> I was actually trying to troubleshoot another problem: often getting a black
> blank desktop (missing wallpaper and context menu) upon login, but with all
> panels and widgets working.
> I first examined the output of "journalctl -b | grep -i plasma", and noticed
> many errors regarding the wallpaper plugin, which prompted me to take a look
> at the file "~/.config/plasma-org.kde.plasma.desktop-appletsrc" where I saw
> many "Containments" included the line "wallpaperplugin=org.kde.image" while
> the wallpaper plugin in use is "org.kde.slideshow".
> So I replaced all instances of "wallpaperplugin=org.kde.image" with
> "wallpaperplugin=org.kde.slideshow" (and also removed a block regarding that
> unused wallpaper plugin).
> The problem is gone now after logging out, and back in.
> I hope it proves to be the end of this longstanding problem for me and all
> those who have the same problem.
> However, I think this shows that there's a need for better management of
> configuration files of KDE Plasma, making sure that no such leftovers remain
> after configuration changes.

I have replaced all instances of the "wallpaperplugin=org.kde.image" with "wallpaperplugin=org.kde.slideshow" and also removed the following section:
wallpaperplugin=org.kde.slideshow[Containments][26][Wallpaper][org.kde.image][General]
Image=/home/andrija/Downloads/lwalpapers-PicturesOnly/wallpapers/b-908.jpg

After that, I have logged out and logged back in, but unfortunately that didn't change anything for me :(

So still a mismatching colors for some directories and its child directories.
Comment 17 Sadi 2025-03-09 09:02:53 UTC
Some additional information:
I use KDE Plasma 5.27.5, with "slideshow" wallpaper type, and accent color "from current wallpaper".
After ironing out some irregularities found in the file "~/.config/plasma-org.kde.plasma.desktop-appletsrc", Dolphin no longer fails to display some of the folder icons in the accent color from the current wallpaper (i.e. still showing them in the accent color from the previous wallpaper) in the slideshow.

It seems it was the resolution of inconsistency in "wallpaperplugin=org.kde.image" vs. "wallpaperplugin=org.kde.slideshow" (for example, especially in the section related with "plugin=org.kde.plasma.folder") that solved the problem for me, but there might be some other problems and inconsistencies in other cases.
Comment 18 Sadi 2025-03-11 08:31:01 UTC
Unfortunately, it proved to be a brief honeymoon; the problem came back next day.
Getting rid of this suspected "wallpaperplugin=org.kde.image/slideshow" inconsistency below "plugin=org.kde.plasma.folder" and "plugin=org.kde.panel" entries, or even completely removing such "wallpaperplugin=org.kde.image/slideshow" lines manually seems to force a temporary fix sometimes.
I hope this might at least give some additional clue for fixing this issue.