mirror of
https://github.com/bevyengine/bevy.git
synced 2026-05-06 06:06:42 -04:00
64fe756adb
# Objective Part of #19236 ## Solution A numeric text input widget. This includes: * Colored stripes ("sigils") for designating X, Y and Z input fields. * Character filtering * ValueChange events Not supported: * Validation error events * Range and precision options Additional changes in this PR: * Added small labels (related to text inputs only insofar as numeric inputs have small labels above them in the editor design). * Refactored labels to be simple spans instead of nested entities - this required a non-inherited text font theme component, so we renamed the existing component to have the word "inherited" in the name. * Consolidated the way focus outlines work for text inputs and other widgets * I had to make changes to Slider and other widgets to support the `is_final` flag in `ValueChange`. This is necessary to allow listeners the choice between spammy and not-spammy updates when listening to widget outputs. ## Testing Manual testing ## Showcase <img width="353" height="101" alt="numeric_input" src="https://github.com/user-attachments/assets/36efd243-fa01-484e-bab5-689aa6be4d9e" />