some preliminary work on libraries

This commit is contained in:
Chris Cochrun 2025-01-13 06:06:28 -06:00
parent 50abdf1783
commit df944f980c
3 changed files with 60 additions and 7 deletions

View file

@ -23,6 +23,7 @@ use std::path::PathBuf;
use tracing::{debug, level_filters::LevelFilter};
use tracing::{error, warn};
use tracing_subscriber::EnvFilter;
use ui::library::Library;
pub mod core;
pub mod lisp;
@ -87,6 +88,7 @@ struct App {
current_slide: Slide,
presentation_open: bool,
cli_mode: bool,
library: Library,
library_open: bool,
library_width: f32,
}
@ -172,6 +174,7 @@ impl cosmic::Application for App {
current_slide,
presentation_open: false,
cli_mode: !input.ui,
library: Library::new(&items),
library_open: true,
library_width: 60.0,
};
@ -547,9 +550,9 @@ impl cosmic::Application for App {
]
.spacing(3);
// let library = Container::new("library")
// .center(Length::Fill)
// .width(self.library_width);
let library = Container::new(self.library.view())
.center(Length::Fill)
.width(self.library_width);
// let drag_handle = Container::new(Space::new(1, Length::Fill))
// .style(|t| nav_bar_style(t));
// let dragger = MouseArea::new(drag_handle)