summaryrefslogtreecommitdiff
path: root/raveos-sddm-theme/sddm-rave-theme/Components/BatteryIndicator.qml
diff options
context:
space:
mode:
Diffstat (limited to 'raveos-sddm-theme/sddm-rave-theme/Components/BatteryIndicator.qml')
-rw-r--r--raveos-sddm-theme/sddm-rave-theme/Components/BatteryIndicator.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/raveos-sddm-theme/sddm-rave-theme/Components/BatteryIndicator.qml b/raveos-sddm-theme/sddm-rave-theme/Components/BatteryIndicator.qml
index 5497911..0caedbe 100644
--- a/raveos-sddm-theme/sddm-rave-theme/Components/BatteryIndicator.qml
+++ b/raveos-sddm-theme/sddm-rave-theme/Components/BatteryIndicator.qml
@@ -166,7 +166,7 @@ Row {
var ty = (height - th) / 2
// Terminál (+ pólus)
- rr(ctx, tx, ty, tw, th, 2)
+ rr(ctx, tx, ty, tw, th, height * 0.15)
ctx.fillStyle = col
ctx.globalAlpha = 0.7
ctx.fill()
@@ -175,11 +175,11 @@ Row {
// Keret (akksi test)
rr(ctx, bx, by, bw, bh, r)
ctx.strokeStyle = col
- ctx.lineWidth = 1.5
+ ctx.lineWidth = height * 0.09
ctx.stroke()
// Töltési szint kitöltés
- var padding = 3
+ var padding = height * 0.18
var fillW = Math.max(0, (bw - padding * 2) * lvl / 100)
if (fillW > 0) {
rr(ctx, bx + padding, by + padding,
@@ -217,7 +217,7 @@ Row {
ctx.lineTo(bw * 0.46, by + bh * 0.68)
ctx.lineTo(bw * 0.68, by + bh * 0.28)
ctx.strokeStyle = "#ffffff"
- ctx.lineWidth = 1.8
+ ctx.lineWidth = height * 0.11
ctx.lineCap = "round"
ctx.lineJoin = "round"
ctx.globalAlpha = 0.95