forked from Shinonome/dots-hyprland
bar: circular progresses: adjust colors, fix them being always at 65%
This commit is contained in:
@@ -11,7 +11,7 @@ Item {
|
|||||||
property int lineWidth: 2
|
property int lineWidth: 2
|
||||||
property real value: 0
|
property real value: 0
|
||||||
property color colPrimary: Appearance?.colors.colOnSecondaryContainer ?? "#685496"
|
property color colPrimary: Appearance?.colors.colOnSecondaryContainer ?? "#685496"
|
||||||
property color colSecondary: ColorUtils.transparentize(colPrimary, 0.4) ?? "#F1D3F9"
|
property color colSecondary: ColorUtils.transparentize(colPrimary, 0.5) ?? "#F1D3F9"
|
||||||
property real gapAngle: 360 / 18
|
property real gapAngle: 360 / 18
|
||||||
property bool fill: true
|
property bool fill: true
|
||||||
property int fillOverflow: 2
|
property int fillOverflow: 2
|
||||||
@@ -32,8 +32,7 @@ Item {
|
|||||||
implicitWidth: implicitSize
|
implicitWidth: implicitSize
|
||||||
implicitHeight: implicitSize
|
implicitHeight: implicitSize
|
||||||
|
|
||||||
// property real degree: value * 360
|
property real degree: value * 360
|
||||||
property real degree: 0.65 * 360
|
|
||||||
property real centerX: root.width / 2
|
property real centerX: root.width / 2
|
||||||
property real centerY: root.height / 2
|
property real centerY: root.height / 2
|
||||||
property real arcRadius: root.implicitSize / 2 - root.lineWidth
|
property real arcRadius: root.implicitSize / 2 - root.lineWidth
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ ProgressBar {
|
|||||||
property real valueBarWidth: 30
|
property real valueBarWidth: 30
|
||||||
property real valueBarHeight: 18
|
property real valueBarHeight: 18
|
||||||
property color highlightColor: Appearance?.colors.colOnSecondaryContainer ?? "#685496"
|
property color highlightColor: Appearance?.colors.colOnSecondaryContainer ?? "#685496"
|
||||||
property color trackColor: ColorUtils.transparentize(highlightColor, 0.4) ?? "#F1D3F9"
|
property color trackColor: ColorUtils.transparentize(highlightColor, 0.5) ?? "#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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user