SAO UI placeholder album art uses theme's overlay color instead of magenta

This commit is contained in:
mars 2022-11-20 12:08:02 -07:00
parent 80ba46a0d4
commit 4a78743c40
1 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
use api::*;
use canary_script::*;
use canary_music_player::{AlbumInfo, PlaybackStatus, ProgressChanged, TrackInfo, OutMsg};
use canary_music_player::{AlbumInfo, OutMsg, PlaybackStatus, ProgressChanged, TrackInfo};
use crate::widgets::prelude::*;
use button::{RoundButton, RoundButtonStyle};
@ -169,7 +169,8 @@ impl Container for MusicPlayerWidget {
self.style.body.color,
);
ctx.draw_rounded_rect(self.art_rect, self.style.rounding, Color::MAGENTA);
let placeholder_art_color = THEME.palette.overlay;
ctx.draw_rounded_rect(self.art_rect, self.style.rounding, placeholder_art_color);
ctx.draw_partially_rounded_rect(
CornerFlags::BOTTOM,