A Swiss Army knife for developers.
C# blazorcross-platformcsharpdesktopdesktop-appdesktop-applicationdeveloper-toolsextensiblefluentfluent-designlinuxmacosmicasyntax-highlightingtypescriptwindowswindows-10windows-11winui
Fixed blurry SVG icons (#124)
Etienne Baudoux29f81b7570b6
diff --git a/src/dev/impl/DevToys/ViewModels/Tools/ToolProviderBase.cs b/src/dev/impl/DevToys/ViewModels/Tools/ToolProviderBase.csindex dcf44331a..f2f9bedb2 100644--- a/src/dev/impl/DevToys/ViewModels/Tools/ToolProviderBase.cs+++ b/src/dev/impl/DevToys/ViewModels/Tools/ToolProviderBase.cs@@ -116,8 +116,8 @@ namespace DevToys.ViewModels.Tools}svgSource = new SvgImageSource();- svgSource.RasterizePixelHeight = newSize.Height;- svgSource.RasterizePixelWidth = newSize.Width;+ svgSource.RasterizePixelHeight = newSize.Height * 2; /* Multiply per 2 to to avoid blurry icons */+ svgSource.RasterizePixelWidth = newSize.Width * 2; /* Multiply per 2 to to avoid blurry icons */svgFileContent = ApplyThemeToSvgIcon(imageIcon.ActualTheme, svgFileContent);