Falkon Develop
Cross-platform Qt-based web browser
Colors Namespace Reference

Functions

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

Function Documentation

◆ bg()

const QColor & Colors::bg ( const QPalette &  pal,
const QWidget *  w 
)

Definition at line 29 of file colors.cpp.

◆ contrast()

int Colors::contrast ( const QColor &  a,
const QColor &  b 
)

Definition at line 48 of file colors.cpp.

◆ counterRole() [1/2]

bool Colors::counterRole ( QPalette::ColorRole &  from,
QPalette::ColorRole &  to,
QPalette::ColorRole  defFrom = QPalette::WindowText,
QPalette::ColorRole  defTo = QPalette::Window 
)

Definition at line 93 of file colors.cpp.

◆ counterRole() [2/2]

QPalette::ColorRole Colors::counterRole ( QPalette::ColorRole  role)

Definition at line 68 of file colors.cpp.

◆ emphasize()

QColor Colors::emphasize ( const QColor &  c,
int  value = 10 
)

Definition at line 130 of file colors.cpp.

◆ haveContrast()

bool Colors::haveContrast ( const QColor &  a,
const QColor &  b 
)

Definition at line 165 of file colors.cpp.

◆ light()

QColor Colors::light ( const QColor &  c,
int  value 
)

Definition at line 184 of file colors.cpp.

◆ mid()

QColor Colors::mid ( const QColor &  oc1,
const QColor &  c2,
int  w1 = 1,
int  w2 = 1 
)

Definition at line 210 of file colors.cpp.

◆ value()

int Colors::value ( const QColor &  c)

Definition at line 238 of file colors.cpp.