mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
compact sampler
This commit is contained in:
parent
2432f27e8c
commit
15f71d0973
4 changed files with 135 additions and 131 deletions
|
|
@ -171,9 +171,10 @@ pub fn process (state: &mut Launcher, _: &Client, _: &ProcessScope) -> Control {
|
|||
state.position = transport.pos.frame() as usize;
|
||||
Control::Continue
|
||||
}
|
||||
pub fn render (state: &Launcher, buf: &mut Buffer, area: Rect) -> Usually<Rect> {
|
||||
pub fn render (state: &Launcher, buf: &mut Buffer, mut area: Rect) -> Usually<Rect> {
|
||||
area.width = 80;
|
||||
area.height = 25;
|
||||
let Rect { x, y, width, height } = area;
|
||||
let width = 80;
|
||||
crate::device::sequencer::draw_play_stop(buf, x + 1, y, &state.playing);
|
||||
crate::device::sequencer::draw_rec(buf, x + 12, y, state.recording);
|
||||
crate::device::sequencer::draw_mon(buf, x + 19, y, state.monitoring);
|
||||
|
|
@ -287,12 +288,12 @@ fn draw_section_chains (state: &Launcher, buf: &mut Buffer, area: Rect) -> Usual
|
|||
} else {
|
||||
vec![]
|
||||
};
|
||||
match state.view {
|
||||
LauncherView::Chains => {
|
||||
draw_box_styled(buf, Rect { height: 18, ..area }, style);
|
||||
},
|
||||
_ => {},
|
||||
};
|
||||
//match state.view {
|
||||
//LauncherView::Chains => {
|
||||
//draw_box_styled(buf, Rect { height: 18, ..area }, style);
|
||||
//},
|
||||
//_ => {},
|
||||
//};
|
||||
draw_highlight(buf, &Some(area), match state.view {
|
||||
LauncherView::Chains => Style::default().green().dim(),
|
||||
_ => Style::default().dim()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue