MCPcopy Create free account
hub / github.com/KDE/kdevelop / isBrightBackgroundColor

Function isBrightBackgroundColor

kdevplatform/util/widgetcolorizer.cpp:130–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130bool isBrightBackgroundColor(const QColor& color)
131{
132 // NOTE that foreground contrast and background contrast work differently
133 return color.valueF() > 0.3;
134}
135
136bool canInvertDarkColor(const QColor& color)
137{

Callers 2

canInvertDarkColorFunction · 0.85
collectRangesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected