Improve hover behaviour, make font configurable, adjust overview
This commit is contained in:
@@ -4,7 +4,7 @@ import Quickshell.Services.Pipewire
|
||||
import QtQuick
|
||||
|
||||
Shape {
|
||||
id: root
|
||||
id: percentIndicator
|
||||
preferredRendererType: Shape.CurveRenderer
|
||||
property var percent
|
||||
ShapePath {
|
||||
@@ -14,10 +14,10 @@ Shape {
|
||||
strokeWidth: 2
|
||||
PathAngleArc {
|
||||
moveToStart: true
|
||||
centerX: root.width/2
|
||||
centerY: root.height/2
|
||||
radiusX: root.width/2
|
||||
radiusY: root.height/2
|
||||
centerX: percentIndicator.width/2
|
||||
centerY: percentIndicator.height/2
|
||||
radiusX: percentIndicator.width/2
|
||||
radiusY: percentIndicator.height/2
|
||||
startAngle: 90 + 40
|
||||
sweepAngle: 360 - 80
|
||||
}
|
||||
@@ -29,12 +29,12 @@ Shape {
|
||||
strokeWidth: 2
|
||||
PathAngleArc {
|
||||
moveToStart: true
|
||||
centerX: root.width/2
|
||||
centerY: root.height/2
|
||||
radiusX: root.width/2 - 1
|
||||
radiusY: root.height/2 - 1
|
||||
centerX: percentIndicator.width/2
|
||||
centerY: percentIndicator.height/2
|
||||
radiusX: percentIndicator.width/2 - 1
|
||||
radiusY: percentIndicator.height/2 - 1
|
||||
startAngle: 90 + 40
|
||||
sweepAngle: root.percent * (360 - 80)
|
||||
sweepAngle: percentIndicator.percent * (360 - 80)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user