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
@@ -4394,3 +4394,60 @@ msgstr "Lire une playlist au hasard"
|
||||
|
||||
msgid "Open a random label"
|
||||
msgstr "Ouvrir un label au hasard"
|
||||
|
||||
msgid "Start from current theme"
|
||||
msgstr "Partir du thème actuel"
|
||||
|
||||
msgid "Copy the colors of the currently applied theme into the editor as a starting point."
|
||||
msgstr "Copie les couleurs du thème actuellement appliqué dans l'éditeur comme point de départ."
|
||||
|
||||
msgid "Use current colors"
|
||||
msgstr "Utiliser les couleurs actuelles"
|
||||
|
||||
msgid "Dark theme"
|
||||
msgstr "Thème sombre"
|
||||
|
||||
msgid "Set the overall light or dark polarity. Affects derived shades, borders and overlays."
|
||||
msgstr "Définit la polarité globale claire ou sombre. Affecte les nuances dérivées, les bordures et les superpositions."
|
||||
|
||||
msgid "SURFACES"
|
||||
msgstr "SURFACES"
|
||||
|
||||
msgid "Background"
|
||||
msgstr "Arrière-plan"
|
||||
|
||||
msgid "Surface"
|
||||
msgstr "Surface"
|
||||
|
||||
msgid "Elevated"
|
||||
msgstr "Surélevé"
|
||||
|
||||
msgid "TEXT"
|
||||
msgstr "TEXTE"
|
||||
|
||||
msgid "Text"
|
||||
msgstr "Texte"
|
||||
|
||||
msgid "Secondary text"
|
||||
msgstr "Texte secondaire"
|
||||
|
||||
msgid "ACCENT"
|
||||
msgstr "ACCENT"
|
||||
|
||||
msgid "Accent"
|
||||
msgstr "Accent"
|
||||
|
||||
msgid "Danger"
|
||||
msgstr "Danger"
|
||||
|
||||
msgid "Warning"
|
||||
msgstr "Avertissement"
|
||||
|
||||
msgid "Success"
|
||||
msgstr "Succès"
|
||||
|
||||
msgid "OTHER"
|
||||
msgstr "AUTRE"
|
||||
|
||||
msgid "Border"
|
||||
msgstr "Bordure"
|
||||
Reference in new issue
Block a user