|
|
|
|
@ -9,7 +9,7 @@ fn main() -> Result<(), eframe::Error>
|
|
|
|
|
env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`).
|
|
|
|
|
let options = eframe::NativeOptions
|
|
|
|
|
{
|
|
|
|
|
viewport: egui::ViewportBuilder::default().with_inner_size([600.0, 240.0]),
|
|
|
|
|
viewport: egui::ViewportBuilder::default().with_inner_size([600.0, 160.0]),
|
|
|
|
|
..Default::default()
|
|
|
|
|
};
|
|
|
|
|
eframe::run_native(
|
|
|
|
|
@ -68,13 +68,30 @@ impl eframe::App for JpmmvApp
|
|
|
|
|
|
|
|
|
|
ui.style_mut().text_styles.insert(
|
|
|
|
|
egui::TextStyle::Body,
|
|
|
|
|
egui::FontId::new(18.0, eframe::epaint::FontFamily::Proportional),
|
|
|
|
|
egui::FontId::new(24.0, eframe::epaint::FontFamily::Proportional),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
ui.vertical(|ui| {
|
|
|
|
|
ui.label(format!("{}", self.current_metadata.name));
|
|
|
|
|
ui.label(format!("by: {}", self.current_metadata.artist));
|
|
|
|
|
ui.label(format!("album: {}", self.current_metadata.album));
|
|
|
|
|
ui.label(
|
|
|
|
|
egui::RichText::new(format!("{}", self.current_metadata.name))
|
|
|
|
|
.color(egui::Color32::from_rgb(255, 255, 255)));
|
|
|
|
|
|
|
|
|
|
ui.style_mut().text_styles.insert(
|
|
|
|
|
egui::TextStyle::Body,
|
|
|
|
|
egui::FontId::new(18.0, eframe::epaint::FontFamily::Proportional),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
ui.label(
|
|
|
|
|
egui::RichText::new(format!("by: {}", self.current_metadata.artist))
|
|
|
|
|
.color(egui::Color32::from_rgb(180, 180, 180)));
|
|
|
|
|
|
|
|
|
|
ui.label(
|
|
|
|
|
egui::RichText::new(format!("album: {}", self.current_metadata.album))
|
|
|
|
|
.color(egui::Color32::from_rgb(180, 180, 180)));
|
|
|
|
|
|
|
|
|
|
// ui.label(format!("{}", self.current_metadata.name));
|
|
|
|
|
// ui.label(format!("by: {}", self.current_metadata.artist));
|
|
|
|
|
// ui.label(format!("album: {}", self.current_metadata.album));
|
|
|
|
|
|
|
|
|
|
// ui.label(format!("Image URI: {}", self.current_metadata.art_url.clone()));
|
|
|
|
|
|
|
|
|
|
|