Skip to content

Commit

Permalink
Inactive title text chosen by inactive title color
Browse files Browse the repository at this point in the history
  • Loading branch information
lededev committed Nov 17, 2024
1 parent 44f94c0 commit 64b35c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/TitleBarHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ COLORREF CTitleBarHelper::GetTextColor(bool bActive)
return GetSysColor(COLOR_BTNTEXT);
if (!bActive)
{
COLORREF clr = GetSysColor(COLOR_3DFACE);
const COLORREF clr = GetBackColor(false);
if (GetRValue(clr) < 128 && GetGValue(clr) < 128 && GetBValue(clr) < 128)
return RGB(245, 245, 245);
return RGB(10, 10, 10);
Expand Down

0 comments on commit 64b35c9

Please sign in to comment.