fix: font macro expansion + snaplayout jitter with fillWidth: true

This commit is contained in:
2026-11-07 14:42:22 +01:00
parent 4ac55b0c2e
commit a7767d2a80
6 changed files with 296 additions and 172 deletions
+2 -3
View File
@@ -1,6 +1,5 @@
pragma ComponentBehavior: Bound
import Quickshell
import QtQuick
import QtQuick.Layouts
import ZShell.Config
@@ -101,7 +100,7 @@ WidgetBase {
Layout.bottomMargin: Tokens.padding.extraSmall ?? 2
Layout.topMargin: Tokens.padding.extraSmall ?? 2
color: root.contentColor
height: 1
implicitHeight: 1
implicitWidth: root.baseSize * 0.5
opacity: 0.4
radius: 1
@@ -123,7 +122,7 @@ WidgetBase {
if (modelData.includes("m"))
return Time.minuteStr;
if (modelData.includes("s"))
return Time.secondStr;
return Time.secondStr.split(" ")[0];
return "";
}