Skip to content

Commit 73b0469

Browse files
committed
reduced gamma slider resolution
1 parent bd4b16c commit 73b0469

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ impl Window {
115115
.tooltip(&monitor.name),
116116
)
117117
.push(slider(
118-
50..=200,
119-
(monitor.gamma_curve * 100.0) as u32,
120-
move |curve| Message::SetScreenCurve(id.clone(), curve as f32 / 100.0),
118+
5..=20,
119+
(monitor.gamma_curve * 10.0) as u32,
120+
move |curve| Message::SetScreenCurve(id.clone(), curve as f32 / 10.0),
121121
))
122122
.push(
123-
text(format!("{:.2}", monitor.gamma_curve))
123+
text(format!("{:.1}", monitor.gamma_curve))
124124
.size(16)
125125
.width(Length::Fixed(40.0)),
126126
)

0 commit comments

Comments
 (0)