mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-11 17:59:17 +00:00
Handle .svga files separately in image viewer
This commit is contained in:
@@ -114,8 +114,7 @@ public class Plugin : IViewer
|
|||||||
|
|
||||||
public void Prepare(string path, ContextObject context)
|
public void Prepare(string path, ContextObject context)
|
||||||
{
|
{
|
||||||
if (path.EndsWith(".svg", StringComparison.OrdinalIgnoreCase)
|
if (path.EndsWith(".svg", StringComparison.OrdinalIgnoreCase))
|
||||||
|| path.EndsWith(".svga", StringComparison.OrdinalIgnoreCase))
|
|
||||||
{
|
{
|
||||||
if (SettingHelper.Get("RenderSvgWeb", true, "QuickLook.Plugin.ImageViewer"))
|
if (SettingHelper.Get("RenderSvgWeb", true, "QuickLook.Plugin.ImageViewer"))
|
||||||
{
|
{
|
||||||
@@ -131,6 +130,14 @@ public class Plugin : IViewer
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (path.EndsWith(".svga", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
_metaSvg = new SvgMetaProvider(path);
|
||||||
|
|
||||||
|
context.PreferredSize = new Size(800, 600);
|
||||||
|
context.Theme = (Themes)SettingHelper.Get("LastTheme", 1, "QuickLook.Plugin.ImageViewer");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_meta = new MetaProvider(path);
|
_meta = new MetaProvider(path);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user