Falkon Develop
Cross-platform Qt-based web browser
colors.h File Reference
#include <QColor>
#include <QPalette>

Go to the source code of this file.

Namespaces

namespace  Colors
 

Functions

const QColor & Colors::bg (const QPalette &pal, const QWidget *w)
 
int Colors::contrast (const QColor &a, const QColor &b)
 
QPalette::ColorRole Colors::counterRole (QPalette::ColorRole role)
 
bool Colors::counterRole (QPalette::ColorRole &from, QPalette::ColorRole &to, QPalette::ColorRole defFrom=QPalette::WindowText, QPalette::ColorRole defTo=QPalette::Window)
 
QColor Colors::emphasize (const QColor &c, int value=10)
 
bool Colors::haveContrast (const QColor &a, const QColor &b)
 
QColor Colors::light (const QColor &c, int value)
 
QColor Colors::mid (const QColor &oc1, const QColor &c2, int w1=1, int w2=1)
 
int Colors::value (const QColor &c)