starting to look good... wait what

This commit is contained in:
🪞👃🪞 2025-05-16 00:16:56 +03:00
parent 9aeb792f7d
commit fca1e85611
6 changed files with 38 additions and 23 deletions

View file

@ -195,6 +195,9 @@ impl App {
fn focus_editor (&self) -> bool {
self.is_editing()
}
fn is_editing (&self) -> bool {
HasEditor::is_editing(self)
}
fn focus_message (&self) -> bool {
matches!(self.dialog, Some(Dialog::Message(..)))
}

View file

@ -107,6 +107,12 @@ impl App {
pub fn view_arranger_scenes (&self) -> impl Content<TuiOut> + use<'_> {
self.scenes_view(&self.editor)
}
pub fn view_arranger_scenes_names (&self) -> impl Content<TuiOut> + use<'_> {
self.scenes_names()
}
pub fn view_arranger_scenes_clips (&self) -> impl Content<TuiOut> + use<'_> {
self.scenes_clips(&self.editor)
}
pub fn view_arranger_scene_names <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
let h = self.project.scenes.len() as u16 * 2;
let bg = self.color.darker.rgb;
@ -357,16 +363,16 @@ impl App {
impl ArrangerSceneRows for App {
fn arrangement (&self) -> &Arrangement {
self.project
&self.project
}
fn scenes_height (&self) -> u16 {
self.project.scenes_height
(self.height() as u16).saturating_sub(20)
}
fn width_side (&self) -> u16 {
fn width_side (&self) -> u16 {
20
}
fn width_mid (&self) -> u16 {
self.width().saturating_sub(self.width_side() * 2)
fn width_mid (&self) -> u16 {
(self.width() as u16).saturating_sub(self.width_side())
}
fn scene_selected (&self) -> Option<usize> {
self.project.selection.scene()
@ -378,7 +384,7 @@ impl ArrangerSceneRows for App {
self.project.selection.track()
}
fn is_editing (&self) -> bool {
self.is_editing
self.editor.is_some()
}
}