feat: interface-size (UI scale) presets

Webview-zoom-style presets: Extra small 0.8 / Small 0.9 / Default 1.0 /
Large 1.2 / Extra large 1.5, applied through SLINT_SCALE_FACTOR set at
the top of main() before any thread or the backend exists. The env var
overrides the compositor DPR, so the value is last observed DPR x
preset; the Default preset leaves the var unset (stock DPR handling,
including live monitor changes, stays intact). last_dpr is persisted
from the winit window (real compositor DPR) on the 5s renderer-sentinel
timer.

- const-bake guard: strip SLINT_SCALE_FACTOR in qbz-ui build.rs so the
  slint compiler never bakes the factor into the generated code
- new UiScale global + scale-divided window minimums keep the physical
  minimum constant across presets (XL fits a 1366x768 screen); the
  three window-geometry gates in main.rs use the process-active factor
- artwork decode targets scale with the preset: sharp covers at >=1.2,
  smaller decoded-cache footprint below 1.0
- Settings > Appearance "Interface size" row below Language (replaces
  the commented-out percentage placeholder and its orphan properties),
  restart-to-apply toast
- Typography.boost = 1.1 on Extra small only, so body text stays
  readable at the 0.8 factor; Small (0.9) needs no compensation
- i18n: new strings added to all 7 locale catalogs

Known accepted limitation: slight text softness at fractional scale
factors (owner-accepted; diagnostic notes live in
qbz-nix-docs/ui-scale-presets/).

cc
This commit is contained in:
vicrodh committed 2026-07-02 08:36:40 -06:00
1 parent d9b82e7b12
commit b7549790a3
17 files changed
+385 -43

No files matched your search

@@ -4174,3 +4174,21 @@ msgstr "JACK ist nicht bit-perfekt"
msgid "The JACK backend routes audio through the JACK graph, which resamples to the graph's sample rate. For bit-perfect playback use ALSA (direct) or PipeWire with passthrough."
msgstr "Das JACK-Backend leitet die Audioausgabe durch den JACK-Graphen, der auf die Graph-Abtastrate resampled. Für bit-perfekte Wiedergabe verwende ALSA (direkt) oder PipeWire mit Passthrough."
msgid "Extra large"
msgstr "Extra groß"
msgid "INTERFACE"
msgstr "OBERFLÄCHE"
msgid "Interface size"
msgstr "Oberflächengröße"
msgid "Scales the whole interface, like browser zoom. Small fits more content on screen, Large and Extra large improve readability (requires restart)"
msgstr "Skaliert die gesamte Oberfläche, wie der Browser-Zoom. Klein zeigt mehr Inhalt auf dem Bildschirm, Groß und Extra groß verbessern die Lesbarkeit (Neustart erforderlich)"
msgid "Interface size changed — restart QBZ to apply"
msgstr "Oberflächengröße geändert — QBZ neu starten, um sie zu übernehmen"
msgid "Extra small"
msgstr "Extra klein"
@@ -60,3 +60,21 @@ msgstr[1] "Added {} tracks to queue"
msgid "Unfollow on Qobuz"
msgstr "Unfollow on Qobuz"
msgid "Extra large"
msgstr "Extra large"
msgid "INTERFACE"
msgstr "INTERFACE"
msgid "Interface size"
msgstr "Interface size"
msgid "Scales the whole interface, like browser zoom. Small fits more content on screen, Large and Extra large improve readability (requires restart)"
msgstr "Scales the whole interface, like browser zoom. Small fits more content on screen, Large and Extra large improve readability (requires restart)"
msgid "Interface size changed — restart QBZ to apply"
msgstr "Interface size changed — restart QBZ to apply"
msgid "Extra small"
msgstr "Extra small"
@@ -4231,3 +4231,21 @@ msgstr "JACK no es bit-perfect"
msgid "The JACK backend routes audio through the JACK graph, which resamples to the graph's sample rate. For bit-perfect playback use ALSA (direct) or PipeWire with passthrough."
msgstr "El backend de JACK enruta el audio por el grafo de JACK, que remuestrea a la frecuencia del grafo. Para reproducción bit-perfect usa ALSA (directo) o PipeWire con passthrough."
msgid "Extra large"
msgstr "Extra grande"
msgid "INTERFACE"
msgstr "INTERFAZ"
msgid "Interface size"
msgstr "Tamaño de la interfaz"
msgid "Scales the whole interface, like browser zoom. Small fits more content on screen, Large and Extra large improve readability (requires restart)"
msgstr "Escala toda la interfaz, como el zoom del navegador. Pequeño muestra más contenido en pantalla, Grande y Extra grande mejoran la legibilidad (requiere reiniciar)"
msgid "Interface size changed — restart QBZ to apply"
msgstr "Tamaño de la interfaz cambiado — reinicia QBZ para aplicar"
msgid "Extra small"
msgstr "Extra pequeño"
@@ -4174,3 +4174,21 @@ msgstr "JACK n'est pas bit-perfect"
msgid "The JACK backend routes audio through the JACK graph, which resamples to the graph's sample rate. For bit-perfect playback use ALSA (direct) or PipeWire with passthrough."
msgstr "Le backend JACK achemine l'audio via le graphe JACK, qui rééchantillonne à la fréquence du graphe. Pour une lecture bit-perfect, utilisez ALSA (direct) ou PipeWire avec passthrough."
msgid "Extra large"
msgstr "Très grand"
msgid "INTERFACE"
msgstr "INTERFACE"
msgid "Interface size"
msgstr "Taille de l'interface"
msgid "Scales the whole interface, like browser zoom. Small fits more content on screen, Large and Extra large improve readability (requires restart)"
msgstr "Met à l'échelle toute l'interface, comme le zoom du navigateur. Petit affiche plus de contenu à l'écran, Grand et Très grand améliorent la lisibilité (redémarrage requis)"
msgid "Interface size changed — restart QBZ to apply"
msgstr "Taille de l'interface modifiée — redémarrez QBZ pour appliquer"
msgid "Extra small"
msgstr "Très petit"
@@ -4121,3 +4121,21 @@ msgstr "ビットパーフェクトなHi-Fi再生を求めるオーディオフ
msgid "Built with Slint, and powered by Rodio and Symphonia. With thanks to Qobuz, MusicBrainz, Song.link/Odesli, LRCLIB, lyrics.ovh, Lucide, and Kawarp."
msgstr "Slintで構築し、RodioとSymphoniaを採用しています。Qobuz、MusicBrainz、Song.link/Odesli、LRCLIB、lyrics.ovh、Lucide、Kawarpに感謝します。"
msgid "Extra large"
msgstr "特大"
msgid "INTERFACE"
msgstr "インターフェース"
msgid "Interface size"
msgstr "インターフェースのサイズ"
msgid "Scales the whole interface, like browser zoom. Small fits more content on screen, Large and Extra large improve readability (requires restart)"
msgstr "ブラウザのズームのようにインターフェース全体を拡大縮小します。「小」は画面により多くのコンテンツを表示し、「大」と「特大」は読みやすさを向上させます(再起動が必要)"
msgid "Interface size changed — restart QBZ to apply"
msgstr "インターフェースのサイズを変更しました — 適用するには QBZ を再起動してください"
msgid "Extra small"
msgstr "極小"
@@ -4174,3 +4174,21 @@ msgstr "JACK não é bit-perfect"
msgid "The JACK backend routes audio through the JACK graph, which resamples to the graph's sample rate. For bit-perfect playback use ALSA (direct) or PipeWire with passthrough."
msgstr "O backend JACK roteia o áudio pelo grafo do JACK, que faz resample para a taxa do grafo. Para reprodução bit-perfect, use ALSA (direto) ou PipeWire com passthrough."
msgid "Extra large"
msgstr "Extra grande"
msgid "INTERFACE"
msgstr "INTERFACE"
msgid "Interface size"
msgstr "Tamanho da interface"
msgid "Scales the whole interface, like browser zoom. Small fits more content on screen, Large and Extra large improve readability (requires restart)"
msgstr "Dimensiona toda a interface, como o zoom do navegador. Pequeno mostra mais conteúdo na tela, Grande e Extra grande melhoram a legibilidade (requer reinicialização)"
msgid "Interface size changed — restart QBZ to apply"
msgstr "Tamanho da interface alterado — reinicie o QBZ para aplicar"
msgid "Extra small"
msgstr "Extra pequeno"
@@ -4145,3 +4145,21 @@ msgstr "Нативный клиент музыкального стриминг
msgid "Built with Slint, and powered by Rodio and Symphonia. With thanks to Qobuz, MusicBrainz, Song.link/Odesli, LRCLIB, lyrics.ovh, Lucide, and Kawarp."
msgstr "Создано на Slint, работает на Rodio и Symphonia. Благодарим Qobuz, MusicBrainz, Song.link/Odesli, LRCLIB, lyrics.ovh, Lucide и Kawarp."
msgid "Extra large"
msgstr "Очень большой"
msgid "INTERFACE"
msgstr "ИНТЕРФЕЙС"
msgid "Interface size"
msgstr "Размер интерфейса"
msgid "Scales the whole interface, like browser zoom. Small fits more content on screen, Large and Extra large improve readability (requires restart)"
msgstr "Масштабирует весь интерфейс, как масштаб страницы в браузере. Маленький вмещает больше контента на экране, Большой и Очень большой улучшают читаемость (требуется перезапуск)"
msgid "Interface size changed — restart QBZ to apply"
msgstr "Размер интерфейса изменён — перезапустите QBZ, чтобы применить"
msgid "Extra small"
msgstr "Очень маленький"