Commit 9278d996 authored by Marco Martin's avatar Marco Martin

a gradient for contrast

parent 5002023f
......@@ -167,8 +167,16 @@ Item {
height: root.height
Rectangle {
anchors.fill: parent
color: PlasmaCore.ColorScope.backgroundColor
opacity: showingApp
gradient: Gradient {
GradientStop {
position: 1.0
color: showingApp ? icons.backgroundColor : "transparent"
}
GradientStop {
position: 0.0
color: showingApp ? icons.backgroundColor : Qt.rgba(0, 0, 0, 0.2)
}
}
}
Loader {
......
......@@ -116,7 +116,7 @@ PlasmaCore.ColorScope {
anchors.fill: parent
visible: plasmoid.configuration.PanelButtonsVisible
/*
Rectangle {
anchors.fill: parent
color: root.backgroundColor
......@@ -131,6 +131,19 @@ PlasmaCore.ColorScope {
color: PlasmaCore.ColorScope.textColor
opacity: 0.2
}
}*/
Rectangle {
anchors.fill: parent
gradient: Gradient {
GradientStop {
position: 0
color: showingApp ? PlasmaCore.ColorScope.backgroundColor : "transparent"
}
GradientStop {
position: 1
color: showingApp ? PlasmaCore.ColorScope.backgroundColor : Qt.rgba(0, 0, 0, 0.2)
}
}
}
Button {
......
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