Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

ui_input: Adjust step values for Font Weight stepper (#40408)

Bartosz Kaszubowski738dcd0c3a60
diff --git a/crates/ui_input/src/number_field.rs b/crates/ui_input/src/number_field.rs
index b3f50584d69..37ef4db53b2 100644
--- a/crates/ui_input/src/number_field.rs
+++ b/crates/ui_input/src/number_field.rs
@@ -33,13 +33,13 @@ pub trait NumberFieldType: Display + Copy + Clone + Sized + PartialOrd + FromStr
impl NumberFieldType for gpui::FontWeight {
fn default_step() -> Self {
- FontWeight(10.0)
+ FontWeight(50.0)
}
fn large_step() -> Self {
- FontWeight(50.0)
+ FontWeight(100.0)
}
fn small_step() -> Self {
- FontWeight(5.0)
+ FontWeight(10.0)
}
fn min_value() -> Self {
gpui::FontWeight::THIN