From 4fee3f84fa2e4ffb3259e93e52d2afda971ce9ef Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Sun, 19 Jan 2025 10:25:46 -0700 Subject: [PATCH] Scale down album art image --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 6565ae9..60f89d1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,7 @@ use cosmic::{ keyboard::{Event as KeyEvent, Key, Modifiers}, mouse::Event as MouseEvent, subscription::Subscription, - window, Alignment, Background, Border, Color, Length, Limits, + window, Alignment, Background, Border, Color, ContentFit, Length, Limits, }, theme, widget::{self, menu::action::MenuAction, Slider}, @@ -873,6 +873,7 @@ impl Application for App { // This is a hack to have the video player running but not visible (since the controls will cover it as an overlay) video_player = widget::column::with_children(vec![ widget::image(widget::image::Handle::from_path(album_art.path())) + .content_fit(ContentFit::ScaleDown) .width(Length::Fill) .height(Length::Fill) .into(),