1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-13 14:02:06 +00:00
serenity/Userland
Timothy Slater e43e412fc8 LibGUI: Improve SpinBox usability
Previously the value of the SpinBox is re-evaluated after every change
to the TextBox control. This leads to very unintuitive behavior such as
the user deleting the contents of the box and it having no
visible effect. This happens because the TextBox no longer has a valid
number and so gets reset to the current m_value of the SpinBox.

By defering the update of to the SpinBox value until focus leaves the
control we provide a much more intuitive experience with the text box.
We do still validate when a user types something that it parses to an
int. If it does not we delete the most recent character. This in effect
prevents non-numeric numbers from being entered.

Upon losing focus the value will be checked. If empty we set the SpinBox
value to the minimum allowed value.
2022-09-01 17:47:49 +01:00
..
Applets WindowServer+WorkspacePicker: Adjust active and inactive colors 2022-08-16 16:41:47 +02:00
Applications PixelPaint: Change repeated code into a loop for Wand Select Tool 2022-08-31 18:19:46 +01:00
Demos Eyes: Add an option to show/hide the window frame 2022-08-25 13:42:17 +02:00
DevTools Profiler: Display correctly rounded percentages as '#.##%' 2022-08-31 16:57:40 +01:00
DynamicLoader LibPthread: Implement named semaphores 2022-07-21 16:39:22 +02:00
Games Chess: Highlight piece origin square when dragging piece 2022-08-26 09:53:13 +01:00
Libraries LibGUI: Improve SpinBox usability 2022-09-01 17:47:49 +01:00
Services WindowServer: Place drag and drop overlay at the cursor position 2022-08-31 17:29:44 +01:00
Shell Userland: Consolidate most PATH resolving into a single implementation 2022-08-23 19:00:04 +01:00
Utilities LibJS: Turn initialize_global_object() into a regular initialize() 2022-08-28 16:36:56 +01:00
CMakeLists.txt Meta+Userland: Add ENABLE_USERSPACE_COVERAGE_COLLECTION CMake option 2022-05-02 01:46:18 +02:00