VectorCraft: An open-source, vector art tool written by scratch in pure Rust
Film Grain dialog: the sliders use the shared grey rail
bflatasticf683f0ff297d
diff --git a/crates/ui-egui/src/dialogs/effect.rs b/crates/ui-egui/src/dialogs/effect.rsindex a05448adb..df34ab85a 100644--- a/crates/ui-egui/src/dialogs/effect.rs+++ b/crates/ui-egui/src/dialogs/effect.rs@@ -167,7 +167,6 @@ pub(crate) const FILM_GRAIN_FIELDS: [(&str, &str, f64); 3] =fn film_grain_fields(ui: &mut egui::Ui, d: &mut Dialog) -> bool {let before = d.fields.clone();- let rail = |v: f32| egui::Color32::from_gray((48.0 + 192.0 * v).round() as u8);// Use one column wide enough for this language's longest label, keeping every rail aligned.let font = egui::TextStyle::Body.resolve(ui.style());let text = Tokens::get(ui.ctx()).text;@@ -178,7 +177,7 @@ fn film_grain_fields(ui: &mut egui::Ui, d: &mut Dialog) -> bool {.ceil()+ 4.0;for (key, label, max) in FILM_GRAIN_FIELDS {- form::slider_w(ui, d, (key, label, label_w), 0.0..=max, "", &rail);+ form::slider_w(ui, d, (key, label, label_w), 0.0..=max, "", &grey_rail);}before != d.fields}