mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-13 11:09:06 +00:00
Stop using adaptive theme. Fix #194.
This commit is contained in:
@@ -237,7 +237,6 @@ namespace QuickLook.Plugin.VideoViewer
|
||||
break;
|
||||
case MediaState.Playing:
|
||||
UpdateMeta();
|
||||
DetermineTheme();
|
||||
HasVideo = mediaElement.VlcMediaPlayer.VideoTrackCount > 0;
|
||||
HasAudio = mediaElement.VlcMediaPlayer.AudioTrackCount > 0;
|
||||
IsPlaying = true;
|
||||
@@ -277,20 +276,6 @@ namespace QuickLook.Plugin.VideoViewer
|
||||
: Visibility.Visible;
|
||||
}
|
||||
|
||||
private void DetermineTheme()
|
||||
{
|
||||
if (HasVideo)
|
||||
return;
|
||||
|
||||
if (CoverArt == null)
|
||||
return;
|
||||
|
||||
using (var bitmap = new Bitmap(CoverArt.ToBitmap()))
|
||||
{
|
||||
_context.Theme = bitmap.IsDarkImage() ? Themes.Dark : Themes.Light;
|
||||
}
|
||||
}
|
||||
|
||||
private void ChangeVolume(double delta)
|
||||
{
|
||||
IsMuted = false;
|
||||
|
Reference in New Issue
Block a user