Pārlūkot izejas kodu

Comments on hard-coded dark mode colors

Source commit: 5bcc56e2a93808292a4013f042888fa8ade17ed3
Martin Prikryl 6 gadi atpakaļ
vecāks
revīzija
ccefeeaedb
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      source/windows/Tools.cpp

+ 2 - 0
source/windows/Tools.cpp

@@ -110,6 +110,7 @@ TColor __fastcall GetWindowTextColor(TColor BackgroundColor, TColor Color)
 {
   if (Color == TColor(0))
   {
+    // Could use current theme TMT_TEXTCOLOR - see https://github.com/ysc3839/win32-darkmode/
     Color = (IsDarkColor(BackgroundColor) ? clWhite : clWindowText);
     SetContrast(Color, BackgroundColor, 180);
   }
@@ -120,6 +121,7 @@ TColor __fastcall GetWindowColor(TColor Color)
 {
   if (Color == TColor(0))
   {
+    // Could use current theme TMT_FILLCOLOR - see https://github.com/ysc3839/win32-darkmode/
     Color = (WinConfiguration->UseDarkTheme() ? static_cast<TColor>(RGB(0x20, 0x20, 0x20)) : clWindow);
   }
   return Color;