From 561e03ea818b3c3fe9c9b13ad4b32ade23eb269a Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 13 Mar 2025 12:24:34 -0500 Subject: [PATCH] making song_editor fonts and font_sizes better --- src/ui/song_editor.rs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/ui/song_editor.rs b/src/ui/song_editor.rs index 06ac171..6fa7cd6 100644 --- a/src/ui/song_editor.rs +++ b/src/ui/song_editor.rs @@ -1,7 +1,6 @@ use std::path::PathBuf; use cosmic::{ - font, iced::{ font::{Family, Stretch, Style, Weight}, Font, Length, @@ -106,11 +105,26 @@ impl SongEditor { // String::from("Noto Sans"), // ]; let font_sizes = vec![ + "5".to_string(), + "6".to_string(), + "8".to_string(), "10".to_string(), "12".to_string(), "16".to_string(), "18".to_string(), "20".to_string(), + "24".to_string(), + "28".to_string(), + "32".to_string(), + "36".to_string(), + "40".to_string(), + "48".to_string(), + "50".to_string(), + "55".to_string(), + "60".to_string(), + "65".to_string(), + "70".to_string(), + "80".to_string(), ]; Self { song: None, @@ -251,6 +265,7 @@ impl SongEditor { .map_or(None, |f| Some(f)) }); + debug!(?background); if let Some(mut song) = self.song.clone() { song.background = background.clone(); self.update(Message::UpdateSong(song))