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,24 +27,30 @@ PanelWindow {
|
|||
opacity: M.Theme.barOpacity
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
Item {
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
height: M.Theme.screenRadius > 0 ? M.Theme.screenRadius : 3
|
||||
topLeftRadius: M.Theme.screenRadius
|
||||
topRightRadius: M.Theme.screenRadius
|
||||
bottomLeftRadius: 0
|
||||
bottomRightRadius: 0
|
||||
gradient: Gradient {
|
||||
orientation: Gradient.Horizontal
|
||||
GradientStop {
|
||||
position: 0
|
||||
color: M.Theme.base0C
|
||||
}
|
||||
GradientStop {
|
||||
position: 1
|
||||
color: M.Theme.base09
|
||||
height: 3
|
||||
clip: true
|
||||
|
||||
Rectangle {
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
height: M.Theme.screenRadius > 0 ? M.Theme.screenRadius * 2 : 3
|
||||
topLeftRadius: M.Theme.screenRadius
|
||||
topRightRadius: M.Theme.screenRadius
|
||||
gradient: Gradient {
|
||||
orientation: Gradient.Horizontal
|
||||
GradientStop {
|
||||
position: 0
|
||||
color: M.Theme.base0C
|
||||
}
|
||||
GradientStop {
|
||||
position: 1
|
||||
color: M.Theme.base09
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue