Commit 935f3338 authored by Filip Fila's avatar Filip Fila 🌆

[Kickoff] Use simpler code for separator color

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:
{F6804156}

After:
{F6804157}

Breeze and Breeze Dark look the same as before:
{F6804159}

{F6804158}

Reviewers: #vdg, ngraham

Reviewed By: #vdg, ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D20973
parent 64c13ccf
......@@ -122,8 +122,8 @@ Item {
id: headerSeparator
height: Math.floor(units.devicePixelRatio)
color: Qt.tint(PlasmaCore.ColorScope.textColor, Qt.rgba(PlasmaCore.ColorScope.backgroundColor.r, PlasmaCore.ColorScope.backgroundColor.g, PlasmaCore.ColorScope.backgroundColor.b, 0.7))
opacity: 0.6
color: theme.textColor
opacity: 0.2
width: root.width - 2 * units.gridUnit
anchors {
......@@ -479,8 +479,8 @@ Item {
Rectangle {
id: tabBarSeparator
height: Math.floor(units.devicePixelRatio)
color: Qt.tint(PlasmaCore.ColorScope.textColor, Qt.rgba(PlasmaCore.ColorScope.backgroundColor.r, PlasmaCore.ColorScope.backgroundColor.g, PlasmaCore.ColorScope.backgroundColor.b, 0.7))
opacity: 0.6
color: theme.textColor
opacity: 0.2
anchors {
top: header.top
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment