Bug 454124

Summary: Scrollbars do not become colored when their scrollview has focus, as QtWidgets scrollbars do
Product: [Frameworks and Libraries] frameworks-qqc2-desktop-style Reporter: Felipe Kinoshita <kinofhek>
Component: generalAssignee: Marco Martin <notmart>
Status: CONFIRMED ---    
Severity: normal CC: ahiemstra, kde, nate, noahadvs
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Felipe Kinoshita 2022-05-21 02:28:43 UTC
The controls in qqc2-desktop-style don't follow the accent color defined in system settings.

STEPS TO REPRODUCE
1. Set an accent color
2. Open up an up that uses Kirigami (e.g discover, kalendar, etc...)
3. See that the scrollbar does not follow the accent color

OBSERVED RESULT
The scrollbar does not follow the accent color

EXPECTED RESULT
The scrollbar should follow the accent color, dolphin's scrollbar follows the accent color correctly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora KDE 36
(available in About System)
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Comment 1 Nate Graham 2022-05-23 17:21:00 UTC
Works for me. Can you attach a screenshot that shows the wrongly-colored scrollbar and also what accent color you have set in System Settings?

Does this happen for other UI elements in affected apps, or just the scrollbars?
Comment 2 Felipe Kinoshita 2022-05-23 17:44:29 UTC
Oh it does change the scrollbar color but in a inconsistent way, dolphin's scrollbar always use the accent color, the qqc2-desktop-style only shows it on hover, in two different way btw, one when hovering the whole scrollbar and one when hovering just the bar.

I guess we should make this consistent, right?
Comment 3 Nate Graham 2022-05-23 17:58:08 UTC
Yeah, that's a difference between the two styles but it's not related to the accent color.

For QtWidgets apps, the scrollbar becomes colored when its view has focus. That doesn't happen for qqc2-desktop-style; that would be what we need to fix.