Skip to content

Commit

Permalink
Fix checkboxes in settings dialog with custom themes (#1630)
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0rdi committed Aug 16, 2023
1 parent 4b26b4d commit 4047d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Lib/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ void CSettingsManager::ResetSettings( void )
HIMAGELIST CSettingsManager::GetImageList( HWND tree )
{
if (m_ImageList) return m_ImageList;
HTHEME theme=OpenThemeData(tree,L"button");
HTHEME theme=OpenThemeData(GetParent(tree),L"button");
HDC hdc=CreateCompatibleDC(NULL);
int iconSize=(TreeView_GetItemHeight(tree)<32)?16:32;
int checkSize=16;
Expand Down

0 comments on commit 4047d72

Please sign in to comment.