forked from Shinonome/dots-hyprland
replace 9999 radius with pill
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user