feat(ui): custom theme editor panel + controller + i18n
Wire the custom-theme editor end to end. In AppearanceSettings, when the "Custom" theme is selected, show a "Start from current theme" button, a "Dark theme" polarity toggle, and a grouped token grid (SURFACES / TEXT / ACCENT / STATUS / OTHER) of 11 base tokens. Each token is a swatch that toggles an inline ColorPicker; edits route through AppearanceState.custom-set-token (drag) and custom-set-token-hex (hex commit). The crate::custom_theme controller reads the base straight from the editor swatch properties (the in-memory source of truth, no per-drag disk reads), sets the touched field, re-derives via qbz_theme::theme_from_base, pushes the palette live and persists. seed_from_current snapshots the live Theme global into the base; toggle_dark flips polarity; set_token_hex parses in Rust (Slint cannot). main.rs registers the four callbacks. Also harden the ColorPicker reseed guard: skip decompose when the fed-back value equals our own emitted color, so a drag ending at v=0/s=0 no longer resets the hue. New strings added to all 7 gettext catalogs (es Mexican/ neutral); msgfmt --check clean; full .slint tree validated via the slintcheck stub. cc
This commit is contained in:
13 files changed
+749
-7
No files matched your search
@@ -4424,3 +4424,60 @@ msgstr "Reproducir una playlist al azar"
|
||||
|
||||
msgid "Open a random label"
|
||||
msgstr "Abrir un sello al azar"
|
||||
|
||||
msgid "Start from current theme"
|
||||
msgstr "Partir del tema actual"
|
||||
|
||||
msgid "Copy the colors of the currently applied theme into the editor as a starting point."
|
||||
msgstr "Copia los colores del tema aplicado actualmente al editor como punto de partida."
|
||||
|
||||
msgid "Use current colors"
|
||||
msgstr "Usar colores actuales"
|
||||
|
||||
msgid "Dark theme"
|
||||
msgstr "Tema oscuro"
|
||||
|
||||
msgid "Set the overall light or dark polarity. Affects derived shades, borders and overlays."
|
||||
msgstr "Define la polaridad general clara u oscura. Afecta los tonos derivados, los bordes y las superposiciones."
|
||||
|
||||
msgid "SURFACES"
|
||||
msgstr "SUPERFICIES"
|
||||
|
||||
msgid "Background"
|
||||
msgstr "Fondo"
|
||||
|
||||
msgid "Surface"
|
||||
msgstr "Superficie"
|
||||
|
||||
msgid "Elevated"
|
||||
msgstr "Elevado"
|
||||
|
||||
msgid "TEXT"
|
||||
msgstr "TEXTO"
|
||||
|
||||
msgid "Text"
|
||||
msgstr "Texto"
|
||||
|
||||
msgid "Secondary text"
|
||||
msgstr "Texto secundario"
|
||||
|
||||
msgid "ACCENT"
|
||||
msgstr "ACENTO"
|
||||
|
||||
msgid "Accent"
|
||||
msgstr "Acento"
|
||||
|
||||
msgid "Danger"
|
||||
msgstr "Peligro"
|
||||
|
||||
msgid "Warning"
|
||||
msgstr "Advertencia"
|
||||
|
||||
msgid "Success"
|
||||
msgstr "Éxito"
|
||||
|
||||
msgid "OTHER"
|
||||
msgstr "OTROS"
|
||||
|
||||
msgid "Border"
|
||||
msgstr "Borde"
|
||||
Reference in new issue
Block a user