Skip to content

fix(settings): a click on a value row opens its options to pick from - #271

Open
adefreitas wants to merge 1 commit into
StackOneHQ:mainfrom
adefreitas:fix/settings-click
Open

adefreitas wants to merge 1 commit into
StackOneHQ:mainfrom
adefreitas:fix/settings-click

Conversation

@adefreitas

Copy link
Copy Markdown
Collaborator

Summary

Clicking a value row in Settings (widget corner, mascot, accent colour, sounds, thresholds) now opens its options as a menu at the pointer, with the current one ticked, so any option is one click away instead of several arrow presses.

Changes

  • Value rows open a menu on click. Toggles and actions still act on click, hotkey rows still start recording, and ranges keep their arrows.
  • Each list row's options live in one place, PanelNav.choices(for:), which the arrow keys and the menu both read. That removes sixteen copies of per-row step code.
  • Rows with no choices (companion size, preview pose, floating widget, extension pickers) behave as on main.

Testing

  • make test-without-xcode: 1884 ok, 0 failed.
  • ./build.sh arm64 builds.
  • Not yet checked by hand on a local build since the rebase onto main.

A click on a value row (Widget corner, Mascot, Accent color, sounds, ...)
only selected it; changing it meant stepping with the arrow keys, one option
at a time. A click now opens the row's options as a menu at the pointer,
current one ticked, so any option is one pick away. Toggles and actions
already acted on a click; hotkey rows start recording, as ⏎ does. Ranges
(voice speed, pi budgets) keep their arrows; a dimmed row ignores the click.

Each list row's options now live in one place, PanelNav.choices(for:), which
both the menu and the arrow keys read, replacing sixteen copies of the same
step-through code in applyCycle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant