mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
34 lines
1.4 KiB
Rust
34 lines
1.4 KiB
Rust
/// Phrase editor.
|
|
|
|
pub(crate) use tek_core::*;
|
|
pub(crate) use tek_core::crossterm::event::KeyCode;
|
|
pub(crate) use tek_core::midly::{num::u7, live::LiveEvent, MidiMessage};
|
|
pub(crate) use tek_core::jack::*;
|
|
pub(crate) use std::sync::{Arc, RwLock};
|
|
|
|
submod! {
|
|
arranger arranger_tui
|
|
sequencer sequencer_tui
|
|
transport transport_tui
|
|
}
|
|
|
|
pub const PPQ: usize = 96;
|
|
|
|
pub const CORNERS: CornersTall = CornersTall(NOT_DIM_GREEN);
|
|
|
|
tui_style!(GRAY_DIM =
|
|
Some(Color::Gray), None, None, Modifier::DIM, Modifier::empty());
|
|
tui_style!(GRAY_NOT_DIM_BOLD =
|
|
Some(Color::Gray), None, None, Modifier::BOLD, Modifier::DIM);
|
|
tui_style!(NOT_DIM_BOLD =
|
|
None, None, None, Modifier::BOLD, Modifier::DIM);
|
|
tui_style!(NOT_DIM_GREEN =
|
|
Some(Color::Rgb(96, 255, 32)), Some(COLOR_BG1), None, Modifier::empty(), Modifier::DIM);
|
|
tui_style!(NOT_DIM =
|
|
None, None, None, Modifier::empty(), Modifier::DIM);
|
|
tui_style!(WHITE_NOT_DIM_BOLD =
|
|
Some(Color::White), None, None, Modifier::BOLD, Modifier::DIM);
|
|
tui_style!(STYLE_LABEL =
|
|
Some(Color::Reset), None, None, Modifier::empty(), Modifier::BOLD);
|
|
tui_style!(STYLE_VALUE =
|
|
Some(Color::White), None, None, Modifier::BOLD, Modifier::DIM);
|