mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-04 02:34:45 +00:00
a gradient for contrast
This commit is contained in:
parent
5002023fa9
commit
9278d99600
2 changed files with 24 additions and 3 deletions
|
|
@ -167,8 +167,16 @@ Item {
|
||||||
height: root.height
|
height: root.height
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: PlasmaCore.ColorScope.backgroundColor
|
gradient: Gradient {
|
||||||
opacity: showingApp
|
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 {
|
Loader {
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ PlasmaCore.ColorScope {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
visible: plasmoid.configuration.PanelButtonsVisible
|
visible: plasmoid.configuration.PanelButtonsVisible
|
||||||
|
/*
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: root.backgroundColor
|
color: root.backgroundColor
|
||||||
|
|
@ -131,6 +131,19 @@ PlasmaCore.ColorScope {
|
||||||
color: PlasmaCore.ColorScope.textColor
|
color: PlasmaCore.ColorScope.textColor
|
||||||
opacity: 0.2
|
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 {
|
Button {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue