Commit Graph
2 Commits
Author SHA1 Message Date
Henrik RydgårdandClaude Opus 5.5 2af86ed389 SettingsPage: Add the item types the other settings tabs need
Buttons, float sliders, slider steps and units, negative labels, a disabled
pointer, a separate category for choice names, and a setup callback for
one-off tweaks. CreateSettingView is now public, so single items can be
created (for search results), and CreateSettingViews can report the view
created for each item.

Also fixes the no-default slider assert, where NO_DEFAULT_INT was ambiguous
between the UI and config ones.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 14:45:17 +02:00
Henrik RydgårdandClaude Opus 5.5 b6f79261a2 Settings: Describe the Audio tab as data, then create views from it
Adds SettingsPage, a list of setting items (header, bool, int/string
choice, int slider, info, hint, or a custom view) that keeps its texts as
translation keys. CreateSettingViews() turns a page into the same widgets as
before. Since a page can be built without creating any views, search can
later work from it directly, in English as well as translated.

Slider defaults come from the config's own defaults unless given. The Audio
tab is the first one converted, and looks the same as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 14:38:51 +02:00