From 769cd77e7803dc9c974a05a8385b296f6bc7dead Mon Sep 17 00:00:00 2001 From: lucy Date: Fri, 17 Jul 2026 23:49:59 +0200 Subject: [PATCH] be smorter --- modules/bar/Bar.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml index 43d2f5f..0fd65b8 100644 --- a/modules/bar/Bar.qml +++ b/modules/bar/Bar.qml @@ -36,7 +36,7 @@ Variants { spacing: 5 anchors.left: parent.left anchors.verticalCenter: parent.verticalCenter - anchors.leftMargin: Config.rounding == 0 ? Config.floating ? 0 : 10 : root.moduleHeight / 4 + anchors.leftMargin: Config.rounding == 0 ? Config.floating ? 0 : 10 : (Config.barHeight - root.moduleHeight) / 2 Ws { moduleHeight: root.moduleHeight barScreen: root.modelData @@ -60,7 +60,7 @@ Variants { anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter spacing: 5 - anchors.rightMargin: Config.rounding == 0 ? Config.floating ? 0 : 10 : root.moduleHeight / 4 + anchors.rightMargin: Config.rounding === 0 ? Config.floating ? 0 : 10 : (Config.barHeight - root.moduleHeight) / 2 Mpris { moduleHeight: root.moduleHeight }