diff --git a/rust_programs/dock/src/main.rs b/rust_programs/dock/src/main.rs index ee5cad30..40ae01ed 100644 --- a/rust_programs/dock/src/main.rs +++ b/rust_programs/dock/src/main.rs @@ -309,6 +309,14 @@ fn lerp(a: f64, b: f64, factor: f64) -> f64 { } impl Bordered for GradientView { + fn outer_border_insets(&self) -> RectInsets { + RectInsets::new(0, 1, 0, 0) + } + + fn inner_border_insets(&self) -> RectInsets { + RectInsets::new(0, 1, 0, 0) + } + fn draw_inner_content(&self, outer_frame: Rect, onto: &mut Box) { // TODO(PT): Time this @@ -355,10 +363,6 @@ impl Bordered for GradientView { self.view.draw_subviews(); } - - fn border_insets(&self) -> RectInsets { - RectInsets::new(0, 2, 0, 0) - } } impl UIElement for GradientView {