Better spacing

This commit is contained in:
David Heinemeier Hansson
2026-06-03 13:59:33 +02:00
parent e1099e4413
commit d35957b23c
+12 -6
View File
@@ -522,13 +522,14 @@ Panel {
fontFamily: root.bar.fontFamily fontFamily: root.bar.fontFamily
} }
Row { Grid {
id: scaleRow id: scaleRow
width: parent.width width: parent.width
spacing: Style.space(6) columns: root.scaleValues.length
spacing: Style.spacing.xs
readonly property real cellWidth: root.scaleValues.length > 0 readonly property real cellWidth: root.scaleValues.length > 0
? (width - spacing * (root.scaleValues.length - 1)) / root.scaleValues.length ? (width - spacing * (columns - 1)) / columns
: 0 : 0
Repeater { Repeater {
@@ -571,6 +572,11 @@ Panel {
} }
} }
} }
Item {
width: parent.width
height: Style.space(4)
}
} }
} }
} }
@@ -582,11 +588,11 @@ Panel {
required property int scaleIndex required property int scaleIndex
text: scaleValue + "x" text: scaleValue + "x"
fontSize: Style.font.bodySmall fontSize: Style.font.caption
foreground: root.bar.foreground foreground: root.bar.foreground
fontFamily: root.bar.fontFamily fontFamily: root.bar.fontFamily
horizontalPadding: Style.spacing.controlPaddingX horizontalPadding: Style.spacing.sm
verticalPadding: Style.spacing.controlPaddingY + Style.space(2) verticalPadding: Style.spacing.controlPaddingY
bordered: true bordered: true
active: root.normalizeScale(root.monitorScale) === root.normalizeScale(scaleValue) active: root.normalizeScale(root.monitorScale) === root.normalizeScale(scaleValue)