Repository navigation
Write a true minus sign on a value slider's face [patch] - #645
Merged
Merged
Conversation
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
|
This was referenced Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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.DisplaywrapsFormatand swaps a leading hyphen for U+2212, andValueSlideruses it for the slider's face.TryParseturns U+2212 back into a hyphen before parsing. The default font atlas already includes Mathematical Operators.ValueSliderStateTests.Display_WritesATrueMinusSign_AndTryParseReadsItcovers the change. Widget unit tests and the ValueSlider UI tests pass locally.Generated by Claude Code