bevy/examples/ui
Benjamin Brienen 29508f065f
Fix floating point math (#15239)
# Objective

- Fixes #15236

## Solution

- Use bevy_math::ops instead of std floating point operations.

## Testing

- Did you test these changes? If so, how?
Unit tests and `cargo run -p ci -- test`

- How can other people (reviewers) test your changes? Is there anything
specific they need to know?
Execute `cargo run -p ci -- test` on Windows.

- If relevant, what platforms did you test these changes on, and are
there any important ones you can't test?
Windows

## Migration Guide

- Not a breaking change
- Projects should use bevy math where applicable

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: IQuick 143 <IQuick143cz@gmail.com>
Co-authored-by: Joona Aalto <jondolf.dev@gmail.com>
2024-09-16 23:28:12 +00:00
..
borders.rs Rename push children to add children (#15196) 2024-09-16 23:16:04 +00:00
button.rs Fixing text sizes for examples (#15190) 2024-09-16 23:14:37 +00:00
display_and_visibility.rs fix remaining issues with background color in examples (#14115) 2024-07-03 01:13:55 +00:00
flex_layout.rs Omit font size where it closely matches the default in examples (#13952) 2024-06-20 21:01:28 +00:00
font_atlas_debug.rs Fixing text sizes for examples (#15190) 2024-09-16 23:14:37 +00:00
grid.rs Fixing text sizes for examples (#15190) 2024-09-16 23:14:37 +00:00
overflow.rs Updates default Text font size to 24px (#13603) 2024-05-31 16:41:27 +00:00
overflow_debug.rs Fix floating point math (#15239) 2024-09-16 23:28:12 +00:00
relative_cursor_position.rs Fixing text sizes for examples (#15190) 2024-09-16 23:14:37 +00:00
render_ui_to_texture.rs Simplify render_to_texture examples (#14855) 2024-08-25 14:15:11 +00:00
size_constraints.rs Fixing text sizes for examples (#15190) 2024-09-16 23:14:37 +00:00
text.rs Fix floating point math (#15239) 2024-09-16 23:28:12 +00:00
text_debug.rs Rename push children to add children (#15196) 2024-09-16 23:16:04 +00:00
text_wrap_debug.rs Fixing text sizes for examples (#15190) 2024-09-16 23:14:37 +00:00
transparency_ui.rs Fixing text sizes for examples (#15190) 2024-09-16 23:14:37 +00:00
ui.rs Fixing text sizes for examples (#15190) 2024-09-16 23:14:37 +00:00
ui_material.rs Add a border to the UI material example (#15120) 2024-09-09 16:34:24 +00:00
ui_scaling.rs Fix floating point math (#15239) 2024-09-16 23:28:12 +00:00
ui_texture_atlas.rs Make default behavior for BackgroundColor and BorderColor more intuitive (#14017) 2024-06-25 21:50:41 +00:00
ui_texture_atlas_slice.rs Fixing text sizes for examples (#15190) 2024-09-16 23:14:37 +00:00
ui_texture_slice.rs Fixing text sizes for examples (#15190) 2024-09-16 23:14:37 +00:00
ui_texture_slice_flip_and_tile.rs fix imports in example ui_texture_slice_flip_and_tile (#15064) 2024-09-06 06:00:43 +00:00
viewport_debug.rs Fix green colors becoming darker in various examples (#12328) 2024-03-05 23:42:03 +00:00
window_fallthrough.rs Fixing text sizes for examples (#15190) 2024-09-16 23:14:37 +00:00
z_index.rs Fix green colors becoming darker in various examples (#12328) 2024-03-05 23:42:03 +00:00