From b132f616fc27a62ad9612ec42a19b027e72a52b7 Mon Sep 17 00:00:00 2001 From: gabeszm Date: Sun, 13 Sep 2026 10:48:36 +0200 Subject: fix responsive ui --- raveos-sddm-theme/sddm-rave-theme/Components/BatteryIndicator.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'raveos-sddm-theme/sddm-rave-theme/Components/BatteryIndicator.qml') 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 -- cgit v1.3