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:
17 files changed
+385
-43
No files matched your search
@@ -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"
|
||||
Reference in new issue
Block a user