zed/crates/theme/src
Marshall Bowers 9e36a66fec
ui: Add NumericStepper component (#13954)
This PR adds a `NumericStepper` component that can be used to display a
numeric value along with controls to increment, decrement, and reset the
value.

The `ApplicationMenu` has been updated to use the `NumericStepper` for
adjusting the buffer and UI font size.

Here it is in action:


https://github.com/zed-industries/zed/assets/1486634/03cffe67-1256-4283-aa3d-560fffa06dad

Note: Due to the way we do font adjustments, once modified the reset
button will be displayed until it is clicked (or the font size
adjustment is otherwise reset). Simply returning to the original value
will currently not hide the reset button.

Release Notes:

- N/A
2024-07-08 18:45:49 -04:00
..
styles Allow specifying a custom limit for /search results (#12423) 2024-05-29 14:11:05 +02:00
default_colors.rs Indent guides (#11503) 2024-05-23 15:50:59 +02:00
default_theme.rs Indent guides (#11503) 2024-05-23 15:50:59 +02:00
one_themes.rs Indent guides (#11503) 2024-05-23 15:50:59 +02:00
prelude.rs Remove 2 suffix for theme 2024-01-03 12:41:01 -08:00
registry.rs theme: Warn when deprecated scrollbar_thumb.background style is used (#13081) 2024-06-15 22:14:39 -04:00
scale.rs Clean up references in doc comments in ui and theme crates (#3985) 2024-01-09 15:22:36 -05:00
schema.rs theme: Warn when deprecated scrollbar_thumb.background style is used (#13081) 2024-06-15 22:14:39 -04:00
settings.rs ui: Add NumericStepper component (#13954) 2024-07-08 18:45:49 -04:00
styles.rs Indent guides (#11503) 2024-05-23 15:50:59 +02:00
theme.rs Linux window decorations (#13611) 2024-07-03 11:28:09 -07:00