mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
refactor: compact
This commit is contained in:
parent
abee6cc2c8
commit
60627ac3e5
43 changed files with 923 additions and 780 deletions
|
|
@ -14,12 +14,15 @@ pub mod looper;
|
|||
pub mod sampler;
|
||||
pub mod sequencer;
|
||||
pub mod render;
|
||||
pub mod config;
|
||||
|
||||
use crate::prelude::*;
|
||||
use crate::render::ActionBar;
|
||||
|
||||
fn main () -> Result<(), Box<dyn Error>> {
|
||||
let cli = cli::Cli::parse();
|
||||
let xdg = microxdg::XdgApp::new("dawdle")?;
|
||||
crate::config::create_dirs(&xdg)?;
|
||||
if let Some(command) = cli.command {
|
||||
run_one(&command)
|
||||
} else {
|
||||
|
|
@ -101,8 +104,8 @@ impl WidgetRef for App {
|
|||
.direction(Direction::Vertical)
|
||||
.constraints([
|
||||
Constraint::Length(4),
|
||||
Constraint::Min(16),
|
||||
Constraint::Min(16),
|
||||
Constraint::Max(18),
|
||||
Constraint::Max(18),
|
||||
].clone())
|
||||
.split(area);
|
||||
self.transport.render(area, buffer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue