fix gradient bar: clip to 3px height, curve follows screen radius
This commit is contained in:
parent
a5932a8feb
commit
e6c65cad45
1 changed files with 21 additions and 15 deletions
|
|
@ -27,15 +27,20 @@ PanelWindow {
|
||||||
opacity: M.Theme.barOpacity
|
opacity: M.Theme.barOpacity
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
height: 3
|
||||||
|
clip: true
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
height: M.Theme.screenRadius > 0 ? M.Theme.screenRadius : 3
|
height: M.Theme.screenRadius > 0 ? M.Theme.screenRadius * 2 : 3
|
||||||
topLeftRadius: M.Theme.screenRadius
|
topLeftRadius: M.Theme.screenRadius
|
||||||
topRightRadius: M.Theme.screenRadius
|
topRightRadius: M.Theme.screenRadius
|
||||||
bottomLeftRadius: 0
|
|
||||||
bottomRightRadius: 0
|
|
||||||
gradient: Gradient {
|
gradient: Gradient {
|
||||||
orientation: Gradient.Horizontal
|
orientation: Gradient.Horizontal
|
||||||
GradientStop {
|
GradientStop {
|
||||||
|
|
@ -48,6 +53,7 @@ PanelWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue