Qx v0.5.8
Qt Extensions Library
Loading...
Searching...
No Matches
Qx::Color Class Reference

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)
 

Member Function Documentation

◆ textFromBackground()

QColor Qx::Color::textFromBackground ( QColor bgColor)
static

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.


The documentation for this class was generated from the following files: