Skip to content

Commit

Permalink
Inactive title text chosen by inactive title color (#2544)
Browse files Browse the repository at this point in the history
  • Loading branch information
lededev authored Nov 17, 2024
1 parent 086642d commit af86e37
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 af86e37

Please sign in to comment.