50 #ifndef LEGATO_SCHEME_H 51 #define LEGATO_SCHEME_H 66 enum leSchemeColorModes
68 LE_SCHM_COLOR_MODE_GS_8 = LE_COLOR_MODE_GS_8,
69 LE_SCHM_COLOR_MODE_RGB_332 = LE_COLOR_MODE_RGB_332,
70 LE_SCHM_COLOR_MODE_RGB_565 = LE_COLOR_MODE_RGB_565,
71 LE_SCHM_COLOR_MODE_RGBA_5551 = LE_COLOR_MODE_RGBA_5551,
72 LE_SCHM_COLOR_MODE_RGB_888 = LE_COLOR_MODE_RGB_888,
73 LE_SCHM_COLOR_MODE_RGBA_8888 = LE_COLOR_MODE_RGBA_8888,
74 LE_SCHM_COLOR_MODE_ARGB_8888 = LE_COLOR_MODE_ARGB_8888,
75 LE_SCHM_COLOR_MODE_GLOBALPALETTE = LE_COLOR_MODE_PALETTE,
76 LE_SCHM_COLOR_MODE_MONOCHROME = LE_COLOR_MODE_MONOCHROME,
79 typedef enum leSchemeColor
83 LE_SCHM_HIGHLIGHTLIGHT,
87 LE_SCHM_FOREGROUND_INACTIVE,
88 LE_SCHM_FOREGROUND_DISABLED,
90 LE_SCHM_BACKGROUND_INACTIVE,
91 LE_SCHM_BACKGROUND_DISABLED,
93 LE_SCHM_TEXT_HIGHLIGHT,
94 LE_SCHM_TEXT_HIGHLIGHTTEXT,
95 LE_SCHM_TEXT_INACTIVE,
99 #define LE_SCHEME_COLOR_COUNT 16 100 #define LE_SCHEME_COLOR_MODE_COUNT LE_COLOR_MODE_COUNT 121 leColor highlightLight;
125 leColor foregroundInactive;
126 leColor foregroundDisabled;
128 leColor backgroundInactive;
129 leColor backgroundDisabled;
131 leColor textHighlight;
132 leColor textHighlightText;
133 leColor textInactive;
134 leColor textDisabled;
136 leColor values[LE_SCHEME_COLOR_COUNT];
157 uint32_t blendTableCount;
161 extern const struct leScheme leDefaultScheme;
231 #endif // LEGATO_SCHEME_H Color definitions and functions.
Common macros and definitions used by Legato.
leColor leScheme_GetRenderColor(const leScheme *schm, leSchemeColor clr)
Gets a scheme render color for the current layer color mode.
Definition: legato_scheme.c:71
This struct represents a blend color lookup table.
Definition: legato_color.h:293
leColor leScheme_GetColor(const leScheme *schm, leSchemeColor clr, leColorMode mode)
Gets a scheme color.
Definition: legato_scheme.c:57
Definition: legato_scheme.h:115
void leScheme_Initialize(leScheme *scheme)
Initialize scheme.
Definition: legato_scheme.c:49
leColorMode
This enum represents the supported RGB color formats.
Definition: legato_color.h:148
Definition: legato_scheme.h:154