Tweak automation lane appearance
This commit is contained in:
parent
fa40173562
commit
123fe3f21a
|
|
@ -139,6 +139,17 @@ pub fn render_curve_lane(
|
||||||
// ── Background ──────────────────────────────────────────────────────────
|
// ── Background ──────────────────────────────────────────────────────────
|
||||||
painter.rect_filled(rect, 0.0, Color32::from_rgba_premultiplied(20, 20, 25, 230));
|
painter.rect_filled(rect, 0.0, Color32::from_rgba_premultiplied(20, 20, 25, 230));
|
||||||
|
|
||||||
|
// Inset shadow: dark line at top, light line at bottom
|
||||||
|
painter.line_segment(
|
||||||
|
[rect.left_top(), rect.right_top()],
|
||||||
|
Stroke::new(1.0, Color32::from_black_alpha(60)),
|
||||||
|
);
|
||||||
|
let bottom_y = rect.max.y - 1.0;
|
||||||
|
painter.line_segment(
|
||||||
|
[Pos2::new(rect.min.x, bottom_y), Pos2::new(rect.max.x, bottom_y)],
|
||||||
|
Stroke::new(1.0, Color32::from_white_alpha(18)),
|
||||||
|
);
|
||||||
|
|
||||||
// Zero-line (value = 0, or mid-line if range doesn't include 0)
|
// Zero-line (value = 0, or mid-line if range doesn't include 0)
|
||||||
let zero_norm = normalize(0.0).clamp(0.0, 1.0);
|
let zero_norm = normalize(0.0).clamp(0.0, 1.0);
|
||||||
let zero_y = value_to_y(zero_norm, rect);
|
let zero_y = value_to_y(zero_norm, rect);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue