forked from Shinonome/dots-hyprland
ClippedProgressBar: add unsharpening to highlight
This commit is contained in:
@@ -180,7 +180,7 @@ Singleton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
rounding: QtObject {
|
rounding: QtObject {
|
||||||
property int unsharpen: 2
|
property int unsharpen: 3
|
||||||
property int unsharpenmore: 6
|
property int unsharpenmore: 6
|
||||||
property int verysmall: 8
|
property int verysmall: 8
|
||||||
property int small: 12
|
property int small: 12
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ ProgressBar {
|
|||||||
id: root
|
id: root
|
||||||
property real valueBarWidth: 30
|
property real valueBarWidth: 30
|
||||||
property real valueBarHeight: 18
|
property real valueBarHeight: 18
|
||||||
property color highlightColor: Appearance?.colors.colPrimary ?? "#685496"
|
property color highlightColor: Appearance?.colors.colOnSecondaryContainer ?? "#685496"
|
||||||
property color trackColor: ColorUtils.transparentize(highlightColor, 0.3) ?? "#F1D3F9"
|
property color trackColor: ColorUtils.transparentize(highlightColor, 0.4) ?? "#F1D3F9"
|
||||||
property alias radius: contentItem.radius
|
property alias radius: contentItem.radius
|
||||||
property string text
|
property string text
|
||||||
default property Item textMask: Item {
|
default property Item textMask: Item {
|
||||||
@@ -50,6 +50,7 @@ ProgressBar {
|
|||||||
top: parent.top
|
top: parent.top
|
||||||
bottom: parent.bottom
|
bottom: parent.bottom
|
||||||
}
|
}
|
||||||
|
radius: Appearance.rounding.unsharpen
|
||||||
width: parent.width * root.visualPosition
|
width: parent.width * root.visualPosition
|
||||||
color: root.highlightColor
|
color: root.highlightColor
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user