diff --git a/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml b/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml
index 8221f4e..b286e48 100644
--- a/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml
+++ b/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml
@@ -52,7 +52,7 @@
- {
- if (string.IsNullOrWhiteSpace(m.Key) || string.IsNullOrWhiteSpace(m.Value))
- return;
-
- if (m.Key == "File name" || m.Key == "File size" || m.Key == "MIME type" || m.Key == "Exif comment"
- || m.Key == "Thumbnail" || m.Key == "Exif comment")
- return;
-
- textMeta.Inlines.Add(new Run(m.Key) {FontWeight = FontWeights.SemiBold});
- textMeta.Inlines.Add(": ");
- textMeta.Inlines.Add(m.Value);
- textMeta.Inlines.Add("\r\n");
- });
- textMeta.Inlines.Remove(textMeta.Inlines.LastInline);
- }
-
public bool ShowZoomLevelInfo
{
get => _showZoomLevelInfo;
@@ -142,6 +123,16 @@ namespace QuickLook.Plugin.ImageViewer
}
}
+ public Visibility MetaIconVisibility
+ {
+ get => _metaIconVisibility;
+ set
+ {
+ _metaIconVisibility = value;
+ OnPropertyChanged();
+ }
+ }
+
public Visibility BackgroundVisibility
{
get => _backgroundVisibility;
@@ -242,6 +233,26 @@ namespace QuickLook.Plugin.ImageViewer
public event PropertyChangedEventHandler PropertyChanged;
+ private void ShowMeta()
+ {
+ textMeta.Inlines.Clear();
+ Meta.GetSummary().ForEach(m =>
+ {
+ if (string.IsNullOrWhiteSpace(m.Key) || string.IsNullOrWhiteSpace(m.Value))
+ return;
+
+ if (m.Key == "File name" || m.Key == "File size" || m.Key == "MIME type" || m.Key == "Exif comment"
+ || m.Key == "Thumbnail" || m.Key == "Exif comment")
+ return;
+
+ textMeta.Inlines.Add(new Run(m.Key) {FontWeight = FontWeights.SemiBold});
+ textMeta.Inlines.Add(": ");
+ textMeta.Inlines.Add(m.Value);
+ textMeta.Inlines.Add("\r\n");
+ });
+ textMeta.Inlines.Remove(textMeta.Inlines.LastInline);
+ }
+
public event EventHandler ImageScrolled;
public event EventHandler DelayedReRender;
@@ -352,7 +363,7 @@ namespace QuickLook.Plugin.ImageViewer
public void DoZoomToFit()
{
UpdateZoomToFitFactor();
-
+
Zoom(ZoomToFitFactor, false, true);
}
diff --git a/QuickLook.Plugin/QuickLook.Plugin.PDFViewer/PdfViewerControl.xaml b/QuickLook.Plugin/QuickLook.Plugin.PDFViewer/PdfViewerControl.xaml
index c7cf7bd..3fa27a8 100644
--- a/QuickLook.Plugin/QuickLook.Plugin.PDFViewer/PdfViewerControl.xaml
+++ b/QuickLook.Plugin/QuickLook.Plugin.PDFViewer/PdfViewerControl.xaml
@@ -63,7 +63,7 @@
+ BackgroundVisibility="Collapsed" MetaIconVisibility="Collapsed" />
\ No newline at end of file