Decouple some plugins from QuickLook

This commit is contained in:
ema
2024-12-28 05:51:16 +08:00
parent bdbac0b5e7
commit f50eb6448b
6 changed files with 217 additions and 7 deletions

View File

@@ -62,6 +62,7 @@ public partial class ViewerPanel : UserControl, IDisposable, INotifyPropertyChan
public ViewerPanel(ContextObject context)
{
InitializeComponent();
LoadAndInsertGlassLayer();
// apply global theme
Resources.MergedDictionaries[0].MergedDictionaries.Clear();
@@ -100,6 +101,8 @@ public partial class ViewerPanel : UserControl, IDisposable, INotifyPropertyChan
PreviewMouseWheel += (sender, e) => ChangeVolume((double)e.Delta / 120 * 0.04);
}
private partial void LoadAndInsertGlassLayer();
public bool HasVideo
{
get => _hasVideo;