From 67d1d73845174cc9b7cca27e581769ee781b9820 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 12 Aug 2025 23:37:09 +0700 Subject: [PATCH] ClippedProgressBar: add unsharpening to highlight --- .config/quickshell/ii/modules/common/Appearance.qml | 2 +- .../ii/modules/common/widgets/ClippedProgressBar.qml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/quickshell/ii/modules/common/Appearance.qml b/.config/quickshell/ii/modules/common/Appearance.qml index f7e3a9eb2..ec1c5605a 100644 --- a/.config/quickshell/ii/modules/common/Appearance.qml +++ b/.config/quickshell/ii/modules/common/Appearance.qml @@ -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 diff --git a/.config/quickshell/ii/modules/common/widgets/ClippedProgressBar.qml b/.config/quickshell/ii/modules/common/widgets/ClippedProgressBar.qml index 8fa2f6e09..31bbb7ac5 100644 --- a/.config/quickshell/ii/modules/common/widgets/ClippedProgressBar.qml +++ b/.config/quickshell/ii/modules/common/widgets/ClippedProgressBar.qml @@ -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 }