diff --git a/src/ui/song_editor.rs b/src/ui/song_editor.rs index 2aa76c9..998fa8d 100644 --- a/src/ui/song_editor.rs +++ b/src/ui/song_editor.rs @@ -2,11 +2,7 @@ use std::{io, path::PathBuf, sync::Arc}; use cosmic::{ dialog::file_chooser::{open::Dialog, FileFilter}, - iced::{ - alignment::Vertical, - font::{Family, Stretch, Style, Weight}, - Font, Length, - }, + iced::{alignment::Vertical, Font, Length}, iced_wgpu::graphics::text::cosmic_text::fontdb, iced_widget::{column, row}, theme, @@ -19,7 +15,8 @@ use cosmic::{ }; use dirs::font_dir; use iced_video_player::Video; -use tracing::{debug, error, warn}; +use rayon::iter::{IntoParallelIterator, ParallelIterator}; +use tracing::{debug, error}; use crate::{ core::{service_items::ServiceTrait, slide::Slide, songs::Song}, @@ -34,7 +31,6 @@ pub struct SongEditor { pub song: Option, title: String, font_db: Arc, - fonts: Vec<(fontdb::ID, String)>, fonts_combo: combo_box::State, font_sizes: combo_box::State, font: String, @@ -46,9 +42,8 @@ pub struct SongEditor { editing: bool, background: Option, video: Option