replace 9999 radius with pill

This commit is contained in:
end-4
2026-03-11 22:10:23 +01:00
parent a316f91e86
commit 3bb9127e32
3 changed files with 3 additions and 6 deletions
@@ -42,8 +42,7 @@ Item {
active: root.fill active: root.fill
anchors.fill: parent anchors.fill: parent
sourceComponent: Rectangle { sourceComponent: Circle {
radius: 9999
color: root.colSecondary color: root.colSecondary
} }
} }
@@ -40,10 +40,9 @@ ProgressBar {
implicitWidth: valueBarWidth implicitWidth: valueBarWidth
} }
contentItem: Rectangle { contentItem: Pill {
id: contentItem id: contentItem
anchors.fill: parent anchors.fill: parent
radius: 9999
color: root.trackColor color: root.trackColor
visible: false visible: false
@@ -11,10 +11,9 @@ ScrollBar {
active: hovered || pressed active: hovered || pressed
property color color: Looks.colors.controlBg property color color: Looks.colors.controlBg
contentItem: Rectangle { contentItem: Pill {
implicitWidth: root.active ? 4 : 2 implicitWidth: root.active ? 4 : 2
implicitHeight: root.visualSize implicitHeight: root.visualSize
radius: 9999
color: root.color color: root.color
opacity: root.policy === ScrollBar.AlwaysOn || (root.active && root.size < 1.0) ? 0.5 : 0 opacity: root.policy === ScrollBar.AlwaysOn || (root.active && root.size < 1.0) ? 0.5 : 0