mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-04 02:34:45 +00:00
homescreen: Add gradient to seperator
This commit is contained in:
parent
8722372e0f
commit
842e9dd91a
1 changed files with 9 additions and 0 deletions
|
|
@ -323,6 +323,14 @@ Item {
|
||||||
rightMargin: units.gridUnit
|
rightMargin: units.gridUnit
|
||||||
}
|
}
|
||||||
height: 1
|
height: 1
|
||||||
|
gradient: Gradient {
|
||||||
|
orientation: Gradient.Horizontal
|
||||||
|
GradientStop { position: 0.0; color: Qt.rgba(1, 1, 1, 0) }
|
||||||
|
GradientStop { position: 0.15; color: Qt.rgba(1, 1, 1, 0.5) }
|
||||||
|
GradientStop { position: 0.5; color: Qt.rgba(1, 1, 1, 1) }
|
||||||
|
GradientStop { position: 0.85; color: Qt.rgba(1, 1, 1, 0.5) }
|
||||||
|
GradientStop { position: 1.0; color: Qt.rgba(1, 1, 1, 0) }
|
||||||
|
}
|
||||||
opacity: mainFlickable.contentY > 0 ? 0.6 : 0
|
opacity: mainFlickable.contentY > 0 ? 0.6 : 0
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
OpacityAnimator {
|
OpacityAnimator {
|
||||||
|
|
@ -331,6 +339,7 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Launcher.FavoriteStrip {
|
Launcher.FavoriteStrip {
|
||||||
id: favoriteStrip
|
id: favoriteStrip
|
||||||
anchors {
|
anchors {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue