Bug 429279

Summary: List has wrong color until clicking on first item of it. Happens when launching from Krunner and Kinfocenter.
Product: [Applications] systemsettings Reporter: guimarcalsilva
Component: sidebarviewAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: alexander.lohnau, guimarcalsilva, nate, plasma-bugs-null
Priority: VHI Keywords: regression
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description guimarcalsilva 2020-11-18 03:07:08 UTC
SUMMARY


STEPS TO REPRODUCE
1. Open Krunner with alt+f2
2. Click settings

OBSERVED RESULT

List on the left of window is gray instead of white. If I click on the first item of the list it becomes white as expected. Please check video: 

EXPECTED RESULT

It should be white like all other lists. 

I'm using the latest unstable version of KDE Neon as of november 17.


Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.20.80
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.1
Kernel Version: 5.4.0-54-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-9400F CPU @ 2.90GHz
Memory: 3,8 GiB of RAM
Graphics Processor: SVGA3D; build: RELEASE; LLVM;
Comment 1 guimarcalsilva 2020-11-18 03:07:48 UTC
Here's the video: https://youtu.be/TxfZATKhGZg
Comment 2 guimarcalsilva 2020-11-18 03:11:00 UTC
I have just noticed the same thing is happening when clicking on "Devices" on Kinfocenter.
Comment 3 Nate Graham 2020-11-18 15:37:35 UTC
Can confirm, sometimes. It seems semi-random for me.
Comment 4 Nate Graham 2020-11-18 15:39:02 UTC
Can reproduce 100% by running `systemsettings5 formats`.

Oddly, `systemsettings5 kcm_colors` causes the list to have the wrong color for a moment, and then it switches to the correct one.
Comment 5 guimarcalsilva 2020-11-18 15:42:40 UTC
(In reply to Nate Graham from comment #4)
> Can reproduce 100% by running `systemsettings5 formats`.
> 
> Oddly, `systemsettings5 kcm_colors` causes the list to have the wrong color
> for a moment, and then it switches to the correct one.

Couldn't it be caused by the code used to color the "tools area"? It's been a while since I last tested Neon unstable but I don't remember seeing this bug before the tools area patch.
Comment 6 Bug Janitor Service 2021-01-05 23:41:29 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/systemsettings/-/merge_requests/43
Comment 7 David Edmundson 2021-01-06 00:00:09 UTC
Git commit ef525ffd3ee4d9da1ae481b435ef4da571594b4d by David Edmundson.
Committed on 05/01/2021 at 23:59.
Pushed by davidedmundson into branch 'master'.

[sidebar] Fix background colour of listview

Kirigami.Theme.colorSet was set, but it was also set to inherit from the
parent color set.

One exists somewhere in systemsettings and it can override ours.

M  +1    -0    sidebar/package/contents/ui/CategoriesPage.qml
M  +1    -0    sidebar/package/contents/ui/SubCategoryPage.qml

https://invent.kde.org/plasma/systemsettings/commit/ef525ffd3ee4d9da1ae481b435ef4da571594b4d