mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
remove old color defs; move PPQ and CORNERS to core
This commit is contained in:
parent
1ab1b695a4
commit
0f3103a003
4 changed files with 11 additions and 24 deletions
|
|
@ -149,7 +149,7 @@ impl<'a> Content for VerticalArranger<'a, Tui> {
|
|||
let any_size = |_|Ok(Some([0,0]));
|
||||
// column separators
|
||||
add(&CustomWidget::new(any_size, move|to: &mut TuiOutput|{
|
||||
let style = Some(Style::default().fg(COLOR_SEPARATOR));
|
||||
let style = Some(Style::default().fg(Color::Rgb(0, 0, 0)));
|
||||
Ok(for x in cols.iter().map(|col|col.1) {
|
||||
let x = scene_title_w + to.area().x() + x as u16;
|
||||
for y in to.area().y()..to.area().y2() { to.blit(&"▎", x, y, style); }
|
||||
|
|
@ -164,7 +164,7 @@ impl<'a> Content for VerticalArranger<'a, Tui> {
|
|||
if x < to.buffer.area.x && y < to.buffer.area.y {
|
||||
let cell = to.buffer.get_mut(x, y);
|
||||
cell.modifier = Modifier::UNDERLINED;
|
||||
cell.underline_color = COLOR_SEPARATOR;
|
||||
cell.underline_color = Color::Rgb(0, 0, 0);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -12,17 +12,6 @@ submod! {
|
|||
transport transport_cmd transport_tui transport_snd
|
||||
}
|
||||
|
||||
/// FIXME: use PPQ value from global timebase
|
||||
pub const PPQ: usize = 96;
|
||||
|
||||
pub const CORNERS: CornersTall = CornersTall(Style {
|
||||
fg: Some(Color::Rgb(96, 255, 32)),
|
||||
bg: None,
|
||||
underline_color: None,
|
||||
add_modifier: Modifier::empty(),
|
||||
sub_modifier: Modifier::DIM
|
||||
});
|
||||
|
||||
/// Octave number (from -1 to 9)
|
||||
pub const NTH_OCTAVE: [&'static str;11] = [
|
||||
"-1", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue