forked from Shinonome/dots-hyprland
bar: warning for high resource usage
This commit is contained in:
@@ -18,6 +18,7 @@ Item {
|
||||
property bool enableAnimation: true
|
||||
property int animationDuration: 800
|
||||
property var easingType: Easing.OutCubic
|
||||
property bool accountForLightBleeding: true
|
||||
default property Item textMask: Item {
|
||||
width: implicitSize
|
||||
height: implicitSize
|
||||
@@ -35,7 +36,7 @@ Item {
|
||||
property real degree: value * 360
|
||||
property real centerX: root.width / 2
|
||||
property real centerY: root.height / 2
|
||||
property real arcRadius: root.implicitSize / 2 - root.lineWidth / 2 - 0.5 // the 0.5 is to account for light bleeding
|
||||
property real arcRadius: root.implicitSize / 2 - root.lineWidth / 2 - (0.5 * root.accountForLightBleeding)
|
||||
property real startAngle: -90
|
||||
|
||||
Behavior on degree {
|
||||
|
||||
Reference in New Issue
Block a user