# settings ui: Add numeric steppers to settings UI \(\#39491\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d2b91eb2bc31334376e66d8653a884d2f0128534)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: d2b91eb2bc31334376e66d8653a884d2f0128534

Requested commit: d2b91eb2bc31334376e66d8653a884d2f0128534

Commit: d2b91eb2bc31334376e66d8653a884d2f0128534

Tree: 03128cdf709ae1d9e6751c454bfc84cfa0c0ac59

Author: Anthony Eid

Committer: GitHub

## Message

```
settings ui: Add numeric steppers to settings UI (#39491)

This PR adds the numeric stepper component to the settings ui and
implements some settings that rely on this component as well.

I also switched {buffer/ui}_font_weight to the `gpui::FontWeight` type
and added a manual implementation of the Schemars trait. This allows Zed
to send min, max, and default information to the JSON LSP when a user is
manually editing the settings file.

The numeric stepper elements added to the settings ui are below:
- ui font size
- ui font weight
- Buffer font size
- Buffer font weight 
- Scroll sensitivity
- Fast scroll sensitivity
- Vertical scroll margin
- Horizontal scroll margin
- Inline blame padding 
- Inline blame delay
- Inline blame min column
- Unnecessary code fade
- Tab Size
- Hover popover delay

Release Notes:

- N/A
```

## Parents

- [c26937a848b58515addfb6aeb0c6147a6efdf8bd](https://git.cafe/gitcafe/zed/commit/c26937a848b58515addfb6aeb0c6147a6efdf8bd?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/d2b91eb2bc31334376e66d8653a884d2f0128534?format=markdown)
