mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-11 17:59:17 +00:00
dark theme for ImageViewer
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
VirtualizingPanel.IsVirtualizing="True" Width="150"
|
||||
SelectedIndex="0"
|
||||
Focusable="False"
|
||||
Margin="0,32,0,0"
|
||||
Background="#00FFFFFF"
|
||||
ItemsSource="{Binding PageIds, ElementName=thisPdfViewer}"
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Disabled" BorderThickness="0,0,1,0"
|
||||
|
@@ -19,6 +19,7 @@ using System;
|
||||
using System.IO;
|
||||
using System.Runtime.ExceptionServices;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using System.Windows.Threading;
|
||||
|
||||
namespace QuickLook.Plugin.PDFViewer
|
||||
@@ -56,7 +57,12 @@ namespace QuickLook.Plugin.PDFViewer
|
||||
|
||||
var desiredSize = PdfViewerControl.GetDesiredControlSizeByFirstPage(path);
|
||||
|
||||
context.SetPreferredSizeFit(desiredSize, 0.8);
|
||||
context.SetPreferredSizeFit(desiredSize, 0.6);
|
||||
|
||||
context.PreferredSize = new Size(context.PreferredSize.Width, context.PreferredSize.Height + 32);
|
||||
|
||||
context.TitlebarBlurVisibility = true;
|
||||
context.TitlebarOverlap = true;
|
||||
}
|
||||
|
||||
public void View(string path, ContextObject context)
|
||||
|
Reference in New Issue
Block a user