Scale down album art image
This commit is contained in:
parent
22c7a76f41
commit
4fee3f84fa
1 changed files with 2 additions and 1 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue