Skip to content

Keep a value slider's number in one color, and name arrows and color plainly - #629

Merged
matt-edmondson merged 1 commit into
mainfrom
claude/project-thread-zb3op6
Oct 12, 2026
Merged

matt-edmondson merged 1 commit into
mainfrom
claude/project-thread-zb3op6

Conversation

@matt-edmondson

Copy link
Copy Markdown
Contributor

Requested by Matt · project thread

Before: when a value slider's fill ended inside the centered number (any value near 50%, or any bipolar value, whose fill starts at the center), the number was split at the edge: half dark on the fill, half light on the frame ("6|6"). Shortcuts read "Alt+UpArrow", and the gradient editor said "Select a stop to edit its colour".

After: wherever an edge of the fill would fall under the number, the fill steps above and below it, as it already did for a fill lying wholly beneath the number, so the number is always one color. Arrows read "Up", "Down", "Left" and "Right", and the hint says "color".

How: ValueSliderState.FillAvoidsText now answers true whenever either fill edge lies inside the number's box, and DrawClipped cuts the hole only across the number's width, drawing the fill full height either side of it. KeyChordMatcher.DisplayName names the arrows; Compose and parsing are unchanged, so saved keymaps still read back.

Tests: a UI test (ValueSlider_AFillEndingUnderTheNumberStepsAroundIt) that fails without the change, updated state and chord tests. Widgets unit (1123), widgets UI (759) and node editor (273) suites pass locally. The widgets demo suite fails locally only because its LFS images aren't pulled in the container.

Found by the ImageGui UI review (plans/ui-review-2026-10-12.md, task 1).

🤖 Generated with Claude Code

https://claude.ai/code/session_01YBjmkc8h6q3WWydh9nFrqT


Generated by Claude Code

…d color plainly

A fill whose edge fell inside the centred number split it into two colors,
dark on the fill and light on the frame. The fill now steps above and below
the number wherever an edge would fall under it, as it already did for a fill
lying wholly beneath it. KeyChordMatcher.DisplayName writes the arrows as Up,
Down, Left and Right, and the gradient editor's hint says color.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YBjmkc8h6q3WWydh9nFrqT
@matt-edmondson matt-edmondson self-assigned this Oct 12, 2026
@sonarqubecloud

Copy link
Copy Markdown

@matt-edmondson
matt-edmondson merged commit c98aca4 into main Oct 12, 2026
17 checks passed
@matt-edmondson
matt-edmondson deleted the claude/project-thread-zb3op6 branch October 12, 2026 10:34
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.

2 participants