mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-02-21 16:29:04 +01:00
fix(tek): still runs with error but now i can test it away
Some checks are pending
/ build (push) Waiting to run
Some checks are pending
/ build (push) Waiting to run
This commit is contained in:
parent
2d7ca155e0
commit
cb17cdb8bc
2 changed files with 6 additions and 6 deletions
10
app/tek.rs
10
app/tek.rs
|
|
@ -425,7 +425,7 @@ pub mod tui {
|
|||
BrowseTarget::ExportSample(_) => "Export sample:",
|
||||
BrowseTarget::ImportClip(_) => "Import clip:",
|
||||
BrowseTarget::ExportClip(_) => "Export clip:",
|
||||
}, Shrink::X(3, Fixed::Y(1, Tui::fg(Tui::g(96), RepeatH("🭻")))))))),
|
||||
}, Shrink::X(3, Fixed::Y(1, Tui::fg(Tui::g(96), Repeat::X("🭻")))))))),
|
||||
Some(":device") => {
|
||||
let selected = self.dialog.device_kind().unwrap();
|
||||
to.place(&Bsp::s(Tui::bold(true, "Add device"), Map::south(1,
|
||||
|
|
@ -510,7 +510,7 @@ pub mod ns {
|
|||
namespace!(App: u8 { literal = |dsl|try_to_u8(dsl); });
|
||||
namespace!(App: u16 { literal = |dsl|try_to_u16(dsl); symbol = |app| {
|
||||
":w/sidebar" => app.project.w_sidebar(app.editor().is_some()),
|
||||
":h/sample-detail" => 6.max(app.height() as u16 * 3 / 9), }; });
|
||||
":h/sample-detail" => 6.max(app.measure_height() as u16 * 3 / 9), }; });
|
||||
namespace!(App: isize { literal = |dsl|try_to_isize(dsl); });
|
||||
namespace!(App: usize { literal = |dsl|try_to_usize(dsl); symbol = |app| {
|
||||
":scene-count" => app.scenes().len(),
|
||||
|
|
@ -808,8 +808,8 @@ pub mod glue {
|
|||
impl Default for AppCommand { fn default () -> Self { Self::Nop } }
|
||||
impl ScenesView for App {
|
||||
fn w_side (&self) -> u16 { 20 }
|
||||
fn w_mid (&self) -> u16 { (self.width() as u16).saturating_sub(self.w_side()) }
|
||||
fn h_scenes (&self) -> u16 { (self.height() as u16).saturating_sub(20) }
|
||||
fn w_mid (&self) -> u16 { (self.measure_width() as u16).saturating_sub(self.w_side()) }
|
||||
fn h_scenes (&self) -> u16 { (self.measure_height() as u16).saturating_sub(20) }
|
||||
}
|
||||
impl Default for MenuItem { fn default () -> Self { Self("".into(), Arc::new(Box::new(|_|Ok(())))) } }
|
||||
impl PartialEq for MenuItem { fn eq (&self, other: &Self) -> bool { self.0 == other.0 } }
|
||||
|
|
@ -950,7 +950,7 @@ pub mod glue {
|
|||
if matches!(self.action, Action::Headless) {
|
||||
println!("todo headless");
|
||||
} else {
|
||||
return Tui::new()?.run(&client)
|
||||
Tui::run(&client)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue