From a019dc235d9c089f0d0771176bb8595cf3a88387 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 25 Sep 2025 09:55:42 -0500 Subject: [PATCH] grrr --- src/ui/video_editor.rs | 232 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 232 insertions(+) create mode 100644 src/ui/video_editor.rs diff --git a/src/ui/video_editor.rs b/src/ui/video_editor.rs new file mode 100644 index 0000000..2f90795 --- /dev/null +++ b/src/ui/video_editor.rs @@ -0,0 +1,232 @@ +use std::{io, path::PathBuf, sync::Arc}; + +use cosmic::{ + dialog::file_chooser::{open::Dialog, FileFilter}, + iced::{alignment::Vertical, Length}, + iced_wgpu::graphics::text::cosmic_text::fontdb, + iced_widget::{column, row}, + theme, + widget::{ + button, combo_box, container, horizontal_space, icon, + progress_bar, scrollable, text, text_editor, text_input, + vertical_space, Space, + }, + Element, Task, +}; +use dirs::font_dir; +use iced_video_player::{Video, VideoPlayer}; +use rayon::iter::{IntoParallelIterator, ParallelIterator}; +use tracing::{debug, error}; +use url::Url; + +use crate::{ + core::{service_items::ServiceTrait, slide::Slide, songs::Song}, + ui::{ + presenter::slide_view, slide_editor::SlideEditor, text_svg, + }, + Background, BackgroundKind, +}; + +#[derive(Debug)] +pub struct VideoEditor { + pub video: Option