mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
Revert "[File Explorer Add-ons] Fix file preview pane flickering on f… (#27093)
* Revert "[File Explorer Add-ons] Fix file preview pane flickering on file selection and resizing (#26660)" This reverts commit9581cd7a27. * Revert "[Build][FileExplorer]Add missing dwmapi.lib to Debug config (#26940)" This reverts commitd190934d61. * Revert "[Build]Fix dwamapi.lib linking error on VS (#26870)" This reverts commitc7f8b696a6.
This commit is contained in:
@@ -47,7 +47,7 @@ namespace SvgPreviewHandler
|
||||
{
|
||||
if (Common.UI.ThemeManager.GetWindowsBaseColor().ToLowerInvariant() == "dark")
|
||||
{
|
||||
return Color.FromArgb(30, 30, 30); // #1e1e1e
|
||||
return ColorTranslator.FromHtml("#1e1e1e");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -20,11 +20,6 @@ namespace Microsoft.PowerToys.PreviewHandler.Svg
|
||||
/// </summary>
|
||||
public class SvgPreviewControl : FormHandlerControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Settings class
|
||||
/// </summary>
|
||||
private readonly SvgPreviewHandler.Settings _settings = new();
|
||||
|
||||
/// <summary>
|
||||
/// Generator for the actual preview file
|
||||
/// </summary>
|
||||
@@ -83,11 +78,6 @@ namespace Microsoft.PowerToys.PreviewHandler.Svg
|
||||
private string _webView2UserDataFolder = System.Environment.GetEnvironmentVariable("USERPROFILE") +
|
||||
"\\AppData\\LocalLow\\Microsoft\\PowerToys\\SvgPreview-Temp";
|
||||
|
||||
public SvgPreviewControl()
|
||||
{
|
||||
this.SetBackgroundColor(_settings.ThemeColor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Start the preview on the Control.
|
||||
/// </summary>
|
||||
@@ -209,7 +199,6 @@ namespace Microsoft.PowerToys.PreviewHandler.Svg
|
||||
private void AddWebViewControl(string svgData)
|
||||
{
|
||||
_browser = new WebView2();
|
||||
_browser.DefaultBackgroundColor = Color.Transparent;
|
||||
_browser.Dock = DockStyle.Fill;
|
||||
|
||||
// Prevent new windows from being opened.
|
||||
|
||||
Reference in New Issue
Block a user