From ba6efbe8eaf93f92fe2692ba2d515e96381699ba Mon Sep 17 00:00:00 2001 From: Paddy Xu Date: Tue, 7 Nov 2017 18:39:21 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20#56#issuecomment-342538426=EF=BC=9A=20use?= =?UTF-8?q?=20colourful=20icon=20on=20pre=20Windows=2010=20OSs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QuickLook/TrayIconManager.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/QuickLook/TrayIconManager.cs b/QuickLook/TrayIconManager.cs index a60bd96..a745f9c 100644 --- a/QuickLook/TrayIconManager.cs +++ b/QuickLook/TrayIconManager.cs @@ -69,12 +69,12 @@ namespace QuickLook private Icon GetTrayIconByDPI() { - var isWin7 = Environment.OSVersion.Version < new Version(6, 2); + var isWin10 = Environment.OSVersion.Version >= new Version(10, 0); var scale = DpiHelper.GetCurrentScaleFactor().Vertical; - if (isWin7) - return scale > 1 ? Resources.app : Resources.app_16; - return scale > 1 ? Resources.app_white : Resources.app_white_16; + if (isWin10) + return scale > 1 ? Resources.app_white : Resources.app_white_16; + return scale > 1 ? Resources.app : Resources.app_16; } public static void ShowNotification(string title, string content, bool isError = false, int timeout = 5000,