Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Style::number_formatter as the default used by DragValue #4740

Merged
merged 1 commit into from
Jun 30, 2024

Conversation

emilk
Copy link
Owner

@emilk emilk commented Jun 30, 2024

This allows users to customize how numbers are converted into strings in a DragValue, as a global default.

This can be used (for instance) to show thousands separators, or use , as a decimal separator.

This allows users to customize how numbers are converted into strings
in a `DragValue`, as a global default.

This can be used (for instance) to show thousands separators,
or use `,` as a decimal separator.
@emilk emilk added egui style visuals and theming labels Jun 30, 2024
@emilk emilk merged commit dc1f032 into master Jun 30, 2024
37 checks passed
@emilk emilk deleted the emilk/custom-number-formatter branch June 30, 2024 15:17
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
…lk#4740)

This allows users to customize how numbers are converted into strings in
a `DragValue`, as a global default.

This can be used (for instance) to show thousands separators, or use `,`
as a decimal separator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui style visuals and theming
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant