9 #ifndef lgrAnnotationColors_H_
10 #define lgrAnnotationColors_H_
36 bool customized =
false;
40 static QString toHex(
const QColor& color);
43 static QColor fromHex(
const QString& hex);
47 static QList<Preset> presets();
50 static QColor defaultPresetColor(
int slot);
54 static bool isPresetCustomized(
int slot);
57 static bool anyPresetCustomized();
62 static bool setPresetColor(
int slot,
const QColor& color);
66 static bool resetPreset(
int slot);
70 static bool resetAllPresets();
74 static QString displayName(
const QColor& color);
77 static QString displayName(
const QColor& color,
const QList<Preset>& presets);
81 static QString describe(
const QColor& color);
84 static QString describe(
const QColor& color,
const QList<Preset>& presets);
87 static qreal relativeLuminance(
const QColor& color);
90 static qreal contrastRatio(
const QColor& first,
const QColor& second);
94 static QColor inkFor(
const QColor& background);
QString name
Definition: lgrAnnotationColors.h:34
A preset color in slot (1 to 8); name is the hex when the user customized the slot.
Definition: lgrAnnotationColors.h:31
Defines INPORT/EXPORT macros for lgrGui library.
const char *const kLgrSettingsApplication
Definition: lgrAnnotationColors.h:22
User-selectable annotation colors and their #RRGGBB file format.
Definition: lgrAnnotationColors.h:27
QColor color
Definition: lgrAnnotationColors.h:35
const char *const kLgrAnnotationPresetGroup
QSettings group of the preset overrides, one "<group>/<slot>" key per slot.
Definition: lgrAnnotationColors.h:24
const char *const kLgrSettingsOrganization
QSettings organization and application of the logger's per-user settings (as "mak-theme").
Definition: lgrAnnotationColors.h:21
#define DT_DLL_LGRANN
Definition: lgrAnn.h:19