ClippedProgressBar: add unsharpening to highlight

This commit is contained in:
end-4 2025-08-12 23:37:09 +07:00
parent fa0531b975
commit 67d1d73845
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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
}