Bug 467838

Summary: Weird colouring bug causes selected location in sidebar to become darkened, therefore not following the colour scheme.
Product: [Applications] dolphin Reporter: Logan Turner <loganturner547>
Component: bars: locationAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: minor CC: felixernst, kfm-devel
Priority: NOR    
Version: 22.12.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
URL: https://imgur.com/a/ZOvn8sH
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: A video showing the issue.

Description Logan Turner 2023-03-27 02:39:21 UTC
Created attachment 157618 [details]
A video showing the issue.

STEPS TO REPRODUCE
1. Open dolphin
2. Select a location from the sidebar
3. Click on the selected location again. 

OBSERVED RESULT
The selected location does not follow the colour scheme. For a split second, it shows your accent colour before dimming it. When clicking on the selected location again however, it goes back to full brightness.

EXPECTED RESULT
The selected location should follow the rest of the system colour scheme, not showing a darkened version.

SOFTWARE/OS VERSIONS
Arch Linux, KDE Plasma
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Comment 1 Felix Ernst 2023-03-27 19:47:27 UTC
Items that have keyboard focus are supposed to be more visibly highlighted than items that don't have keyboard focus. So the list in the side bar will have a more dimmed highlight effect after being clicked once because the keyboard focus goes to Dolphin's main view then (which in turn gets an accent-coloured frame to signify that it has keyboard focus). When the same list item in the side bar is clicked again after that, it gains the keyboard focus and therefore becomes more bright (i.e. non-dimmed accent-coloured).

You can test it yourself: Whenever the highlight in the sidebar is brighter, using the up and down arrows will move the highlight within that sidebar instead of in Dolphin's main view. When Dolphin's main view has keyboard focus you will see a bright outline around the view.

I know that not all areas of Dolphin clearly highlight themselves when they have keyboard focus, but at least the behaviour you are reporting here seems correct to me.