Commit Graph
18 Commits
Author SHA1 Message Date
waozi 8c8bbb0dfa theme: add the Aero widget style
Add THEME_STYLE_AERO after MATERIAL so existing app clamps treat it as
invalid (SYSTEM fallback) until they opt in. The style renders Windows
Vista/7 glass from plain primitives only - translucent fills, gloss
highlights, hover glow, layered shadows, inset fields, gradient tracks -
so every backend (raylib, Android, web, software, null) draws the same
picture.

- UIStyleTokens preset: 4px/8px radii, translucent control/panel alpha,
  gloss shine, soft shadow offset
- New src/ui/ui_aero.c: UIAeroScheme derived from the active palette
  (GetUIAeroScheme) plus paint helpers for controls, glass panels,
  inset fields and gradient tracks
- ui_draw_control_background/ui_draw_box_background route Aero through
  the new helpers, so shared-path widgets pick glass up for free
- New THEME_AERO palette (13th, the style default) with sky-glass light
  and slate-blue dark scopes + themes/aero*.ini mirrors
- Theme settings picker offers the style; locale gains theme_aero
- Go binding ThemeStyleAero
2026-08-18 16:10:15 -03:00
waozi b407fdfe16 go: add secure password fields 2026-08-17 11:40:36 -03:00
waozi 8672d9f305 style tokens: fixed-pixel corner radii, not size fractions
control_radius/panel_radius were normalized 0..0.5 fractions of the
control's size, so a token tuned for a button exploded into a full
pill on tall controls (text inputs). Tokens are now unscaled pixels,
converted per-draw via ui_radius_px() (DPI-scaled, clamped to 0.5
normalized). Material: 4px controls / 6px panels; retro/system: 2px
controls / square panels. Removed ui_control_radius(), which leaked
the mixed-unit ambiguity.
2026-08-16 21:39:08 -03:00
waozi 92ae0b4786 Allow custom value text on Slider widget
Add an optional value_text_override parameter to DrawUISlider, UISliderNode, and Slider. When non-NULL it is rendered instead of the default "%d + suffix" formatting, so callers can display values like "1.8x". Passing NULL preserves the existing behavior.
2026-08-11 02:46:04 -05:00
waozi c9b8e27e4c Canonicalize widget API 2026-08-09 19:52:01 -03:00
waozi 0d360a0160 clean kryon app api 2026-08-09 12:44:52 -03:00
waozi eb8c1d359a Add Material theme style widgets 2026-08-08 15:05:02 -03:00
waozi d07078d2b2 Move UI runtime to declarative nodes 2026-08-06 07:15:55 -03:00
waozi eb1609258a Add selectable native UI styles 2026-08-05 17:25:37 -03:00
waozi 6a79813efa Build out Kryon IDE workflow 2026-07-20 23:14:07 -03:00
waozi 137f6ac413 Rename Flint runtime to Kryon 2026-07-20 11:25:19 -03:00
waozi 666e597d8e Add locale dropdown widget 2026-07-20 00:50:22 -03:00
waozi 6afca6b4da Add context menus and source syntax modes 2026-07-19 23:35:21 -03:00
waozi 8df1a0fad9 Add syntax highlighting to text areas 2026-07-19 18:13:53 -03:00
waozi 336e743ac7 Support per-option dropdown fonts 2026-07-17 00:50:03 -03:00
waozi 2e97c771a1 Tighten text input control metrics 2026-07-17 00:43:07 -03:00
waozi 947badc40a Split Flint UI domain headers 2026-07-16 23:36:17 -03:00
waozi 95b7c7f98b Split Flint UI core and controls 2026-07-16 23:27:10 -03:00