Feat: early mouse support
This commit is contained in:
@@ -9,15 +9,19 @@ use crate::state::MainLayout;
|
||||
use crate::theme;
|
||||
use crate::widgets::{ActivePatterns, Orientation, Scope, Spectrum, VuMeter};
|
||||
|
||||
pub fn render(frame: &mut Frame, app: &App, snapshot: &SequencerSnapshot, area: Rect) {
|
||||
let [patterns_area, _, main_area, _, vu_area] = Layout::horizontal([
|
||||
pub fn layout(area: Rect) -> [Rect; 5] {
|
||||
Layout::horizontal([
|
||||
Constraint::Length(13),
|
||||
Constraint::Length(2),
|
||||
Constraint::Fill(1),
|
||||
Constraint::Length(2),
|
||||
Constraint::Length(10),
|
||||
])
|
||||
.areas(area);
|
||||
.areas(area)
|
||||
}
|
||||
|
||||
pub fn render(frame: &mut Frame, app: &App, snapshot: &SequencerSnapshot, area: Rect) {
|
||||
let [patterns_area, _, main_area, _, vu_area] = layout(area);
|
||||
|
||||
let show_scope = app.audio.config.show_scope;
|
||||
let show_spectrum = app.audio.config.show_spectrum;
|
||||
|
||||
Reference in New Issue
Block a user