Do use QIcon::Selected for non-icon view
ClosedPublic

Authored by broulik on Sep 9 2018, 6:56 PM.

Details

Summary

Fixes a regression introduced by not using the selected state.
The views other than icon view actually do have a proper highlighted background

Test Plan

Fixes Places panel icons not turning white when selected
Before



After


Icon view still fine

Diff Detail

Repository
R318 Dolphin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Sep 9 2018, 6:56 PM
Restricted Application added a project: Dolphin. · View Herald TranscriptSep 9 2018, 6:56 PM
Restricted Application added a subscriber: kfm-devel. · View Herald Transcript
broulik requested review of this revision.Sep 9 2018, 6:56 PM
ngraham added a subscriber: ngraham.Sep 9 2018, 6:59 PM

Looks good in isolation. However all this song-and-dance makes me feel like we should just draw a background around the whole icon and text in Dolphin like we do for the file dialog and Folder View. That would be consistent and not require a ton of workarounds for monochrome icons. Thoughts?

This is unrelated to this patch, which is in stable branch where we can't do huge changes.

ngraham accepted this revision as: VDG, Dolphin.Sep 9 2018, 7:03 PM

All right, ship it then! We can think about that for 18.12.

broulik updated this revision to Diff 41290.Sep 9 2018, 7:37 PM
  • Check for active window like it did before
This revision was not accepted when it landed; it landed in state Needs Review.Sep 10 2018, 8:23 AM
This revision was automatically updated to reflect the committed changes.