40 static qreal
constrastRatio(
const QColor &color1,
const QColor &color2);
45 static bool isDark(
const QColor &color);
53 static QColor
mix(
const QColor &a,
const QColor &b, qreal ratio = 0.5);
58 static QColor
darken(
const QColor &c,
int percent);
63 static QColor
lighten(
const QColor &c,
int percent);
71 static QColor
withAlpha(
const QColor &c,
int alpha);
75 static QColor
withAlphaF(
const QColor &c, qreal alpha);
95 static QColor
disabled(
const QColor &c,
const QColor &background);
99 static QColor
hoverBg(
const QColor &c,
const QColor &background);
Definition color_math.h:29
static bool isDark(const QColor &color)
Definition color_math.cpp:51
static qreal constrastRatio(const QColor &color1, const QColor &color2)
Definition color_math.cpp:42
static QColor withAlpha(const QColor &c, int alpha)
Definition color_math.cpp:113
static QColor contrastingTextOver(const QColor &surface, const QColor &backdrop)
Definition color_math.cpp:164
static QColor lighten(const QColor &c, int percent)
Definition color_math.cpp:95
static QColor disabled(const QColor &c, const QColor &background)
Definition color_math.cpp:182
static QColor mix(const QColor &a, const QColor &b, qreal ratio=0.5)
Definition color_math.cpp:60
static QColor darken(const QColor &c, int percent)
Definition color_math.cpp:81
static QColor withAlphaF(const QColor &c, qreal alpha)
Definition color_math.cpp:125
static QColor contrastingText(const QColor &surface)
Definition color_math.cpp:141
static double relativeLuminance(const QColor &color)
Definition color_math.cpp:34
static QColor hoverBg(const QColor &c, const QColor &background)
Definition color_math.cpp:192
Definition theme_manager.h:39