40 static qreal
contrastRatio(
const QColor &color1,
const QColor &color2);
52 static QColor
ensureContrast(
const QColor &c,
const QColor &bg, qreal minRatio);
57 static bool isDark(
const QColor &color);
65 static QColor
mix(
const QColor &a,
const QColor &b, qreal ratio = 0.5);
70 static QColor
darken(
const QColor &c,
int percent);
75 static QColor
lighten(
const QColor &c,
int percent);
83 static QColor
withAlpha(
const QColor &c,
int alpha);
87 static QColor
withAlphaF(
const QColor &c, qreal alpha);
107 static QColor
disabled(
const QColor &c,
const QColor &background);
111 static QColor
hoverBg(
const QColor &c,
const QColor &background);
Definition color_math.h:29
static bool isDark(const QColor &color)
Definition color_math.cpp:71
static QColor withAlpha(const QColor &c, int alpha)
Definition color_math.cpp:133
static QColor contrastingTextOver(const QColor &surface, const QColor &backdrop)
Definition color_math.cpp:184
static QColor ensureContrast(const QColor &c, const QColor &bg, qreal minRatio)
Definition color_math.cpp:51
static QColor lighten(const QColor &c, int percent)
Definition color_math.cpp:115
static QColor disabled(const QColor &c, const QColor &background)
Definition color_math.cpp:202
static QColor mix(const QColor &a, const QColor &b, qreal ratio=0.5)
Definition color_math.cpp:80
static QColor darken(const QColor &c, int percent)
Definition color_math.cpp:101
static qreal contrastRatio(const QColor &color1, const QColor &color2)
Definition color_math.cpp:42
static QColor withAlphaF(const QColor &c, qreal alpha)
Definition color_math.cpp:145
static QColor contrastingText(const QColor &surface)
Definition color_math.cpp:161
static double relativeLuminance(const QColor &color)
Definition color_math.cpp:34
static QColor hoverBg(const QColor &c, const QColor &background)
Definition color_math.cpp:212
Definition theme_manager.h:39