diff --git a/Application/Application.rc b/Application/Application.rc index 75659e17..5e841570 100644 --- a/Application/Application.rc +++ b/Application/Application.rc @@ -52,3 +52,4 @@ VS_VERSION_INFO VERSIONINFO // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. IDI_RAINMETER ICON DISCARDABLE "Rainmeter.ico" +IDI_TRAY ICON DISCARDABLE "Tray.ico" diff --git a/Application/Tray.ico b/Application/Tray.ico new file mode 100644 index 00000000..fab618f9 Binary files /dev/null and b/Application/Tray.ico differ diff --git a/Library/TrayWindow.cpp b/Library/TrayWindow.cpp index ee8d2650..4b2a637e 100644 --- a/Library/TrayWindow.cpp +++ b/Library/TrayWindow.cpp @@ -263,7 +263,7 @@ HICON CTrayWindow::CreateTrayIcon(double value) if (loadIconMetric) { HICON icon; - HRESULT hr = loadIconMetric(hExe, MAKEINTRESOURCE(IDI_RAINMETER), LIM_SMALL, &icon); + HRESULT hr = loadIconMetric(hExe, MAKEINTRESOURCE(IDI_TRAY), LIM_SMALL, &icon); if (SUCCEEDED(hr)) { return icon; @@ -271,7 +271,7 @@ HICON CTrayWindow::CreateTrayIcon(double value) } } - return (HICON)LoadImage(hExe, MAKEINTRESOURCE(IDI_RAINMETER), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_SHARED); + return (HICON)LoadImage(hExe, MAKEINTRESOURCE(IDI_TRAY), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_SHARED); } void CTrayWindow::ReadConfig(CConfigParser& parser)