Qx v0.5.8
Qt Extensions Library
|
The Color class is a collection of static functions pertaining to colors.
#include <qx/gui/qx-color.h>
Static Public Member Functions | |
static QColor | textFromBackground (QColor bgColor) |
Returns a pure black or pure white, whichever is more ideal for maximum visibility when displayed on top of bgColor.
The choice is calculated according to version 2.0 of the WC3 Web Content Accessibility Guidelines.