[Kickoff] Use simpler code for separator color
ClosedPublic

Authored by filipf on May 2 2019, 8:50 PM.

Details

Summary

The somewhat complex code for separator color in Kickoff creates issues with transparent themes. Separators can become barely visible, defeating the purpose of adding them. Relying on text color on the other hand is a safe bet to ensure visibility.

Test Plan

Before:

After:

Breeze and Breeze Dark look the same as before:

Diff Detail

Repository
R119 Plasma Desktop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
filipf created this revision.May 2 2019, 8:50 PM
Restricted Application added a project: Plasma. · View Herald TranscriptMay 2 2019, 8:50 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
filipf requested review of this revision.May 2 2019, 8:50 PM
filipf edited the test plan for this revision. (Show Details)May 2 2019, 8:53 PM
filipf added reviewers: VDG, ngraham.
filipf edited the summary of this revision. (Show Details)
filipf retitled this revision from [Kickoff] Use simple code for separator color to [Kickoff] Use simpler code for separator color.May 2 2019, 8:56 PM
ngraham accepted this revision.May 2 2019, 9:48 PM

Yeah, much saner. Nice! I recall copy-pasting this code from elsewhere so you might wanna have look-see to check whether there are other uses of this that can be simplified as well.

This revision is now accepted and ready to land.May 2 2019, 9:48 PM

Yeah, much saner. Nice! I recall copy-pasting this code from elsewhere so you might wanna have look-see to check whether there are other uses of this that can be simplified as well.

I think it was taken from Kirigami's separator. I probably shouldn't mess with its color since it might be fine tuned to match the borders of other QQC2 elements etc. or might also be fine tuned to match Breeze menu border colors.

From a practical POV not even Kvantum can make QML windows transparent so there wouldn't be the same problem with the Kirigami separator as here.

This revision was automatically updated to reflect the committed changes.