Global dark theme

This commit is contained in:
Paddy Xu
2018-04-18 22:23:28 +03:00
parent 9eea55b7aa
commit 8c4a37e3a6
21 changed files with 100 additions and 52 deletions

View File

@@ -285,13 +285,10 @@ namespace QuickLook.Plugin.VideoViewer
if (CoverArt == null)
return;
var dark = false;
using (var bitmap = new Bitmap(CoverArt.ToBitmap()))
{
dark = bitmap.IsDarkImage();
_context.Theme = bitmap.IsDarkImage() ? Themes.Dark : Themes.Light;
}
_context.UseDarkTheme = dark;
}
private void ChangeVolume(double delta)