MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / isColorLight

Function isColorLight

FastCopyShellExtension/IconProvider.cpp:6–9  ·  view source on GitHub ↗

Copied from https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/apply-windows-themes

Source from the content-addressed store, hash-verified

4
5//Copied from https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/apply-windows-themes
6inline static bool isColorLight(winrt::Windows::UI::Color clr)
7{
8 return (((5 * clr.G) + (2 * clr.R) + clr.B) > (8 * 128));
9}
10
11IconProvider const& IconProvider::GetForCurrentTheme()
12{

Callers 1

IconProvider.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected