Skip to content

Commit

Permalink
Fix wrong icon color, update to v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ysc3839 committed Aug 31, 2020
1 parent d123d56 commit f197559
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion AudioPlaybackConnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ void SetupSvgIcon()
void UpdateNotifyIcon()
{
DWORD value = 0, cbValue = sizeof(value);
LOG_IF_WIN32_ERROR(RegGetValueW(HKEY_CURRENT_USER, LR"(Software\Microsoft\Windows\CurrentVersion\Themes\Personalize)", L"AppsUseLightTheme", RRF_RT_REG_DWORD, nullptr, &value, &cbValue));
LOG_IF_WIN32_ERROR(RegGetValueW(HKEY_CURRENT_USER, LR"(Software\Microsoft\Windows\CurrentVersion\Themes\Personalize)", L"SystemUsesLightTheme", RRF_RT_REG_DWORD, nullptr, &value, &cbValue));
g_nid.hIcon = value != 0 ? g_hIconLight : g_hIconDark;

if (!Shell_NotifyIconW(NIM_MODIFY, &g_nid))
Expand Down
8 changes: 4 additions & 4 deletions AudioPlaybackConnector.rc
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,3,0,0
PRODUCTVERSION 1,3,0,0
FILEVERSION 1,3,1,0
PRODUCTVERSION 1,3,1,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -88,12 +88,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "Richard Yu"
VALUE "FileDescription", "AudioPlaybackConnector"
VALUE "FileVersion", "1.3.0.0"
VALUE "FileVersion", "1.3.1.0"
VALUE "InternalName", "AudioPlaybackConnector.exe"
VALUE "LegalCopyright", "Copyright (C) 2020 Richard Yu"
VALUE "OriginalFilename", "AudioPlaybackConnector.exe"
VALUE "ProductName", "AudioPlaybackConnector"
VALUE "ProductVersion", "1.3.0.0"
VALUE "ProductVersion", "1.3.1.0"
END
END
BLOCK "VarFileInfo"
Expand Down

0 comments on commit f197559

Please sign in to comment.