GammaRay API Documentation  2.8.0
Functions
GammaRay::Utils Namespace Reference

GammaRay UI utilities. More...

Functions

bool isDarkColor (const QColor &color)
 
bool isLightColor (const QColor &color)
 

Detailed Description

GammaRay UI utilities.

Function Documentation

◆ isDarkColor()

bool GammaRay::Utils::isDarkColor ( const QColor color)

Returns true if the given color is dark, else false.

Parameters
coloris the color to check.
Returns
a bool telling if the given color is dark or not.

◆ isLightColor()

bool GammaRay::Utils::isLightColor ( const QColor color)

Returns true if the given color is ligth, else false.

Parameters
coloris the color to check.
Returns
a bool telling if the given color is light or not.

Klarälvdalens Datakonsult AB (KDAB)
"The Qt Experts"
https://www.kdab.com/
GammaRay
Qt-application inspection and manipulation tool
https://www.kdab.com/gammaray/