Commit Graph
9 Commits
Author SHA1 Message Date
waozi 2c604531f3 theme picker: route label fallbacks through the locale catalog
The settings widget fell back to hardcoded English literals whenever an
app passed no label prop, bypassing GetLocaleText entirely - so the
whole theme section stayed English even in fully localized apps, and
the compiled-in theme_* defaults were dead. Props still win, then the
locale catalog (theme_mode_label, theme_light, theme_dark,
theme_follow_device, theme_system, theme_color_label,
theme_style_label, theme_style_system), then the English literal.
Covered by a key-resolution check in the ui_tk test.
2026-08-18 18:46:01 -03:00
waozi eb9967ce29 theme: drop the dedicated Aero palette, keep the style palette-agnostic
The Aero widget style derives its glass tints from whichever palette is
active, so a 13th palette entry was redundant. Remove THEME_AERO (and
its ini mirrors, locale label and picker slot); the style now defaults
to Sky. Saved theme ids beyond the shrunken count normalize through the
existing out-of-range fallback.
2026-08-18 18:08:54 -03:00
waozi eac6c16ea4 docs: cover the Aero style with an example, tests and API notes
- examples/30_aero.kry: all-widget showcase pinned to Aero with live
  palette/mode switching; the theme example's style clamp now accepts
  THEME_STYLE_AERO
- examples/Makefile: the generic codegen rule ran k2b where it meant
  k2c (from the kc->k2c rename), so examples with calls outside the
  KRB vocabulary could not generate their C at all
- ui_tk_test: Aero round-trip, tokens, palette id/label and scheme
  derivation checks
- API.md: document the style, UIAeroScheme and the THEME_AERO id
2026-08-18 16:10:15 -03:00
waozi cdd60b6150 test: host default style follows the MATERIAL default
ui_tk_test still expected THEME_STYLE_RETRO after 3728aad switched the
desktop default to MATERIAL; align the expectation.
2026-08-16 20:27:52 -03:00
waozi eb8c1d359a Add Material theme style widgets 2026-08-08 15:05:02 -03:00
waozi d31e3bc1a0 Add kt test runner 2026-07-30 18:01:01 -03:00
waozi 9b217cf3ce Tighten Kryon syntax and preview inspect 2026-07-21 16:41:13 -03:00
waozi 2123449504 Add Kryon widget inspection lifecycle 2026-07-20 10:56:27 -03:00
waozi 912f18638a Add pragmatic Tk-style UI toolkit 2026-07-19 00:46:20 -03:00