mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
ClippedProgressBar: add unsharpening to highlight
This commit is contained in:
parent
fa0531b975
commit
67d1d73845
2 changed files with 4 additions and 3 deletions
|
|
@ -180,7 +180,7 @@ Singleton {
|
|||
}
|
||||
|
||||
rounding: QtObject {
|
||||
property int unsharpen: 2
|
||||
property int unsharpen: 3
|
||||
property int unsharpenmore: 6
|
||||
property int verysmall: 8
|
||||
property int small: 12
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ ProgressBar {
|
|||
id: root
|
||||
property real valueBarWidth: 30
|
||||
property real valueBarHeight: 18
|
||||
property color highlightColor: Appearance?.colors.colPrimary ?? "#685496"
|
||||
property color trackColor: ColorUtils.transparentize(highlightColor, 0.3) ?? "#F1D3F9"
|
||||
property color highlightColor: Appearance?.colors.colOnSecondaryContainer ?? "#685496"
|
||||
property color trackColor: ColorUtils.transparentize(highlightColor, 0.4) ?? "#F1D3F9"
|
||||
property alias radius: contentItem.radius
|
||||
property string text
|
||||
default property Item textMask: Item {
|
||||
|
|
@ -50,6 +50,7 @@ ProgressBar {
|
|||
top: parent.top
|
||||
bottom: parent.bottom
|
||||
}
|
||||
radius: Appearance.rounding.unsharpen
|
||||
width: parent.width * root.visualPosition
|
||||
color: root.highlightColor
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue