making a subtext that uses the path of the background

This commit is contained in:
Chris Cochrun 2025-02-23 22:03:15 -06:00
parent d29e3b0dff
commit a8f7651164
6 changed files with 55 additions and 2 deletions

View file

@ -1,4 +1,4 @@
use std::{collections::HashMap, path::PathBuf};
use std::{collections::HashMap, option::Option, path::PathBuf};
use cosmic::iced::Executor;
use crisp::types::{Keyword, Symbol, Value};
@ -54,6 +54,10 @@ impl Content for Song {
fn to_service_item(&self) -> super::service_items::ServiceItem {
self.into()
}
fn background(&self) -> Option<Background> {
self.background.clone()
}
}
impl ServiceTrait for Song {