Improve App/PE titlebar UI/UX
Some checks are pending
MSBuild / build (push) Waiting to run
MSBuild / publish (push) Blocked by required conditions

This commit is contained in:
ema
2025-06-04 17:37:22 +08:00
parent 743079c5bf
commit 5bc7fecdcf
4 changed files with 12 additions and 2 deletions

View File

@@ -30,7 +30,7 @@
Height="120"
Margin="8"
VerticalAlignment="Top"
Source="/QuickLook.Plugin.AppViewer;component/Resources/uni-app.png"
Source="/QuickLook.Plugin.AppViewer;component/Resources/uni.png"
Stretch="Fill" />
<Grid Grid.Row="1" Grid.Column="1">
<Grid.ColumnDefinitions>

View File

@@ -76,12 +76,17 @@ public class Plugin : IViewer
".apk" => new Size { Width = 560, Height = 505 },
".ipa" => new Size { Width = 560, Height = 510 },
".hap" => new Size { Width = 560, Height = 500 },
".msi" => new Size { Width = 520, Height = 230 },
".msi" => new Size { Width = 560, Height = 230 },
".msix" or ".msixbundle" or ".appx" or ".appxbundle" => new Size { Width = 560, Height = 328 },
".deb" => new Size { Width = 600, Height = 345 },
".wgt" or ".wgtu" => new Size { Width = 600, Height = 345 },
_ => throw new NotSupportedException("Extension is not supported."),
};
context.Title = string.Empty;
context.TitlebarOverlap = false;
context.TitlebarBlurVisibility = false;
context.TitlebarColourVisibility = false;
context.FullWindowDragging = true;
}
public void View(string path, ContextObject context)

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -51,6 +51,11 @@ public class Plugin : IViewer
public void Prepare(string path, ContextObject context)
{
context.PreferredSize = new Size { Width = 520, Height = 192 };
context.Title = string.Empty;
context.TitlebarOverlap = false;
context.TitlebarBlurVisibility = false;
context.TitlebarColourVisibility = false;
context.FullWindowDragging = true;
}
public void View(string path, ContextObject context)