Minor UI adjustments

master
Joey Pollack 2 years ago
parent 70e3610f2e
commit d5093bfbd1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 257 KiB

After

Width:  |  Height:  |  Size: 131 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 129 B

@ -9,7 +9,7 @@ fn main() -> Result<(), eframe::Error>
env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`). env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`).
let options = eframe::NativeOptions 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() ..Default::default()
}; };
eframe::run_native( eframe::run_native(
@ -68,13 +68,30 @@ impl eframe::App for JpmmvApp
ui.style_mut().text_styles.insert( ui.style_mut().text_styles.insert(
egui::TextStyle::Body, 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.vertical(|ui| {
ui.label(format!("{}", self.current_metadata.name)); ui.label(
ui.label(format!("by: {}", self.current_metadata.artist)); egui::RichText::new(format!("{}", self.current_metadata.name))
ui.label(format!("album: {}", self.current_metadata.album)); .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())); // ui.label(format!("Image URI: {}", self.current_metadata.art_url.clone()));

Loading…
Cancel
Save