Revert "Provide better scaling"

This reverts commit 3ea8d9ffb7.
This commit is contained in:
David Heinemeier Hansson
2026-05-22 17:41:30 +02:00
parent bbdf873aec
commit b5079bdbad
13 changed files with 70 additions and 116 deletions
+15 -25
View File
@@ -173,17 +173,13 @@ both `[controls]` and `[style]`.
### Spacing
`[spacing] scale` multiplies the shell's shared margins, gaps, padding,
control sizes, and panel dimensions. The default is `1.0`; values above
`1.0` create more breathing room while values below `1.0` make controls
dense. By default `scale-with-font = true`, so increasing `[font]
base-size` also scales buttons, popup widths, row heights, and panel
padding proportionally.
`[spacing] scale` multiplies the shell's shared margins, gaps, and
padding. The default is `1.0`; values above `1.0` create more breathing
room while values below `1.0` make controls denser.
```toml
[spacing]
scale = 1.15
scale-with-font = true # grow controls and panels with [font] base-size
scale = 1.15 # roomier panels and controls
```
QML components should prefer semantic tokens where possible:
@@ -207,11 +203,10 @@ Popout placement deliberately follows Hyprland's `general:gaps_out`
interior breathing room.
For one-off proportional constants, use `Style.space(px)` to preserve the
old default at scale `1.0` and `base-size = 12` while still responding to
the theme scale and font scale. Use `Style.spaceReal(px)` only for
fractional geometry that should not be rounded, such as bar widget text
margins. Themes can override any semantic token directly in `[spacing]`,
e.g.:
old default at scale `1.0` while still responding to the theme scale. Use
`Style.spaceReal(px)` only for fractional geometry that should not be
rounded, such as bar widget text margins. Themes can override any semantic
token directly in `[spacing]`, e.g.:
```toml
[spacing]
@@ -261,27 +256,22 @@ Recognized override keys: `base-size`, `caption`, `body-small`,
`body`, `subtitle`, `title`, `heading`, `display`, `display-large`,
`icon-small`, `icon`, `icon-large`.
`base-size` has no upper clamp; the shell only floors it at **1px** to
avoid nonsensical zero/negative sizes. Per-token overrides aren't clamped
either. The shell font family is the fontconfig `monospace` alias —
themes don't set it, the user does via `omarchy font set <name>`.
`base-size` is clamped to **11..13** because some row heights and the bar
cross-axis size remain fixed; per-token overrides aren't clamped. The
shell font family is the fontconfig `monospace` alias — themes don't
set it, the user does via `omarchy font set <name>`.
### Bar size
`[bar] size-horizontal` / `size-vertical` set the cross-axis dimension
of top/bottom and left/right bars respectively, measured at the default
12px font base. By default `scale-with-font = true`, so increasing
`[font] base-size` also increases the bar's cross-axis size:
of top/bottom and left/right bars respectively (in px):
```toml
[bar]
scale-with-font = true
size-horizontal = 26 # top/bottom bar height at base-size 12
size-vertical = 28 # left/right bar width at base-size 12
size-horizontal = 26 # top/bottom bar height
size-vertical = 28 # left/right bar width
```
Set `scale-with-font = false` to keep those bar sizes as fixed pixels.
## Custom bar modules
If a full plugin is overkill, declare a one-off module inline in