Skip to content

Refactor toolbar slider mapping into the UI model#214

Merged
devmobasa merged 1 commit into
mainfrom
refactor/toolbar-controls
May 19, 2026
Merged

Refactor toolbar slider mapping into the UI model#214
devmobasa merged 1 commit into
mainfrom
refactor/toolbar-controls

Conversation

@devmobasa
Copy link
Copy Markdown
Owner

Summary

Moves toolbar slider value conversion out of the Wayland backend and into the toolbar UI model, so hit handling and rendering share explicit model-level helpers instead of duplicating geometry assumptions.

What changed

  • Added toolbar model helpers for slider specs, normalized value conversion, pointer hit-rect mapping, visual knob mapping, and delay slider values.
  • Updated Wayland hit handling to delegate slider press/drag conversion through the model.
  • Updated side palette rendering to use the visual knob mapping helper.
  • Kept pointer mapping and visual knob travel separate so hit behavior and rendering geometry can evolve independently.
  • Added guard tests for slider mapping, clamping, click-only focus traversal, focused activation, and delay helper behavior.

@devmobasa devmobasa merged commit 31c906f into main May 19, 2026
2 checks passed
@devmobasa devmobasa deleted the refactor/toolbar-controls branch May 19, 2026 14:27
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