From 3f1b943876feeaa20a8ce2c71be1bd0b4154b846 Mon Sep 17 00:00:00 2001 From: Paddy Xu Date: Sat, 2 Jun 2018 16:34:10 +0300 Subject: [PATCH] fix #70, #126: switch between Light and Dark background --- .../ImagePanel.xaml | 37 ++++++++++++++++--- .../ImagePanel.xaml.cs | 28 +++++++++++--- .../QuickLook.Plugin.ImageViewer/Plugin.cs | 5 ++- 3 files changed, 58 insertions(+), 12 deletions(-) diff --git a/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml b/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml index c18db8a..5f79c01 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml +++ b/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml @@ -5,6 +5,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:QuickLook.Plugin.ImageViewer" xmlns:animatedImage="clr-namespace:QuickLook.Plugin.ImageViewer.AnimatedImage" + xmlns:plugin="clr-namespace:QuickLook.Common.Plugin;assembly=QuickLook.Common" mc:Ignorable="d" x:Name="imagePanel" d:DesignHeight="300" d:DesignWidth="300"> @@ -20,11 +21,32 @@ - - - + + + @@ -56,6 +78,11 @@ Visibility="{Binding ElementName=imagePanel, Path=MetaIconVisibility}" Margin="0,8,8,0" Content="" /> +