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
54 lines
1.2 KiB
TOML
54 lines
1.2 KiB
TOML
[package]
|
|
name = "settings"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/settings.rs"
|
|
doctest = false
|
|
|
|
[features]
|
|
test-support = ["gpui/test-support", "fs/test-support"]
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
collections.workspace = true
|
|
derive_more.workspace = true
|
|
ec4rs.workspace = true
|
|
fs.workspace = true
|
|
futures.workspace = true
|
|
gpui.workspace = true
|
|
inventory.workspace = true
|
|
log.workspace = true
|
|
paths.workspace = true
|
|
release_channel.workspace = true
|
|
rust-embed.workspace = true
|
|
schemars.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
serde_json_lenient.workspace = true
|
|
serde_path_to_error.workspace = true
|
|
serde_repr.workspace = true
|
|
serde_with.workspace = true
|
|
settings_macros.workspace = true
|
|
smallvec.workspace = true
|
|
strum.workspace = true
|
|
tree-sitter-json.workspace = true
|
|
tree-sitter.workspace = true
|
|
util.workspace = true
|
|
workspace-hack.workspace = true
|
|
zlog.workspace = true
|
|
|
|
[dev-dependencies]
|
|
fs = { workspace = true, features = ["test-support"] }
|
|
gpui = { workspace = true, features = ["test-support"] }
|
|
|
|
indoc.workspace = true
|
|
pretty_assertions.workspace = true
|
|
unindent.workspace = true
|