Skip to content

Commit

Permalink
[win] online-installer: comment out unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplestStudio committed Sep 17, 2024
1 parent 1754bb6 commit b0cc0e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions win-linux/extras/online-installer/src/uiclasses/baseutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
// }
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down

0 comments on commit b0cc0e6

Please sign in to comment.