From 52e9613d52276c4da41f1f37b323535745d75854 Mon Sep 17 00:00:00 2001 From: unspeaker Date: Sun, 18 Aug 2024 20:01:09 +0300 Subject: [PATCH] arranger/sequencer control --- crates/tek_core/src/lib.rs | 1 + crates/tek_core/src/render.rs | 160 ------------------- crates/tek_core/src/render_border.rs | 163 ++++++++++++++++++++ crates/tek_sequencer/src/arranger.rs | 68 +++----- crates/tek_sequencer/src/arranger_handle.rs | 20 ++- crates/tek_sequencer/src/arranger_view.rs | 40 +++++ 6 files changed, 243 insertions(+), 209 deletions(-) create mode 100644 crates/tek_core/src/render_border.rs diff --git a/crates/tek_core/src/lib.rs b/crates/tek_core/src/lib.rs index a7d68ed8..2a3a4550 100644 --- a/crates/tek_core/src/lib.rs +++ b/crates/tek_core/src/lib.rs @@ -46,6 +46,7 @@ submod! { handle render render_split + render_border time_base time_note time_tick diff --git a/crates/tek_core/src/render.rs b/crates/tek_core/src/render.rs index fe88de0e..896c6c3e 100644 --- a/crates/tek_core/src/render.rs +++ b/crates/tek_core/src/render.rs @@ -311,166 +311,6 @@ impl Theme for Nord { const SEPARATOR: Color = Color::Rgb(0, 0, 0); } -pub trait BorderStyle { - const NW: &'static str = ""; - const N: &'static str = ""; - const NE: &'static str = ""; - const E: &'static str = ""; - const SE: &'static str = ""; - const S: &'static str = ""; - const SW: &'static str = ""; - const W: &'static str = ""; - - #[inline] - fn draw (&self, buf: &mut Buffer, area: Rect) -> Usually { - self.draw_horizontal(buf, area, None)?; - self.draw_vertical(buf, area, None)?; - self.draw_corners(buf, area, None)?; - Ok(area) - } - - #[inline] - fn draw_horizontal (&self, buf: &mut Buffer, area: Rect, style: Option