Skip to content

Write a true minus sign on a value slider's face [patch] - #645

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

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

Conversation

@matt-edmondson

Copy link
Copy Markdown
Contributor

Requested by Matt · ImageGui UI review 3

Before: a value slider showed a negative number with a hyphen, as in -1.51. The hyphen is narrower and sits lower than the digits beside it.

After: the slider shows a true minus sign (U+2212), as in −1.51. The text box that opens for typing still shows a hyphen, since that's the key people press, and either sign is read back.

How: ValueSliderState.Display wraps Format and swaps a leading hyphen for U+2212, and ValueSlider uses it for the slider's face. TryParse turns U+2212 back into a hyphen before parsing. The default font atlas already includes Mathematical Operators. ValueSliderStateTests.Display_WritesATrueMinusSign_AndTryParseReadsIt covers the change. Widget unit tests and the ValueSlider UI tests pass locally.


Generated by Claude Code

A hyphen is narrower and sits lower than the digits, so -1.51 on a
slider read as a dash. The face now writes U+2212; the text box opened
for typing keeps the hyphen, and TryParse reads either.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G8KA2EN2cWr3PcoJy5TvuC
@matt-edmondson matt-edmondson self-assigned this Oct 17, 2026
@matt-edmondson
matt-edmondson merged commit f3244f5 into main Oct 17, 2026
6 checks passed
@matt-edmondson
matt-edmondson deleted the claude/project-thread-zra4ah branch October 17, 2026 14:41
@sonarqubecloud

Copy link
Copy Markdown

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