[win] online-installer: comment out unused code

This commit is contained in:
SimplestStudio
2024-09-17 10:39:22 +03:00
parent 1754bb6f87
commit b0cc0e608b
2 changed files with 5 additions and 5 deletions

View File

@ -120,7 +120,7 @@ COLORREF Utils::getColorizationColor(bool isActive, COLORREF topColor)
return RGB(res, res, res);
}
bool Utils::isColorDark(COLORREF color)
{
return int(0.299 * GetRValue(color) + 0.587 * GetGValue(color) + 0.114 * GetBValue(color)) < 128;
}
// bool Utils::isColorDark(COLORREF color)
// {
// return int(0.299 * GetRValue(color) + 0.587 * GetGValue(color) + 0.114 * GetBValue(color)) < 128;
// }

View File

@ -10,7 +10,7 @@ namespace Utils
Undef, WinXP, WinVista, Win7, Win8, Win8_1, Win10, Win11
};
WinVer getWinVersion();
bool isColorDark(COLORREF color);
// bool isColorDark(COLORREF color);
COLORREF getColorizationColor(bool isActive = true, COLORREF topColor = 0x00ffffff);
};