[Style KCM] Force active palette on widgets
ClosedPublic

Authored by broulik on Nov 28 2019, 3:13 PM.

Details

Summary

Since there isn't a real window, the widgets think they're inactive, leading to dull appearance.
Also, while at it create the QPalette only once. KColorScheme::applicationPalette parses configuration and is super slow. Doing it only once significantly speeds up the KCM.

Test Plan

Before


After

Diff Detail

Repository
R119 Plasma Desktop
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik created this revision.Nov 28 2019, 3:13 PM
Restricted Application added a project: Plasma. · View Herald TranscriptNov 28 2019, 3:13 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Nov 28 2019, 3:13 PM
davidedmundson accepted this revision.Nov 28 2019, 3:49 PM
This revision is now accepted and ready to land.Nov 28 2019, 3:49 PM
This revision was automatically updated to reflect the committed changes.