mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win] online-installer: comment out unused code
This commit is contained in:
@ -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;
|
||||
// }
|
||||
|
||||
@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user