From 64b35c9457bf5de8ff58967316aaca01daab4e89 Mon Sep 17 00:00:00 2001 From: lededev <30518126+lededev@users.noreply.github.com> Date: Sun, 17 Nov 2024 19:41:32 +0800 Subject: [PATCH] Inactive title text chosen by inactive title color --- Src/TitleBarHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/TitleBarHelper.cpp b/Src/TitleBarHelper.cpp index 5135a78a63d..4d47fc070a6 100644 --- a/Src/TitleBarHelper.cpp +++ b/Src/TitleBarHelper.cpp @@ -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);