fix gradient bar: clip to 3px height, curve follows screen radius

This commit is contained in:
Damocles 2026-04-12 19:19:26 +02:00
parent a5932a8feb
commit e6c65cad45

View file

@ -27,15 +27,20 @@ PanelWindow {
opacity: M.Theme.barOpacity
}
Item {
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
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 : 3
height: M.Theme.screenRadius > 0 ? M.Theme.screenRadius * 2 : 3
topLeftRadius: M.Theme.screenRadius
topRightRadius: M.Theme.screenRadius
bottomLeftRadius: 0
bottomRightRadius: 0
gradient: Gradient {
orientation: Gradient.Horizontal
GradientStop {
@ -48,6 +53,7 @@ PanelWindow {
}
}
}
}
Item {
anchors.fill: parent