mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-03-24 01:07:43 +08:00
Fix #56#issuecomment-342538426: use colourful icon on pre Windows 10 OSs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user