Cairo-Dock
3.4.0
|
Data Structures | |
struct | _GldiTextDescription |
Description of the rendering of a text. More... | |
Macros | |
#define | GLDI_COLOR_SHADE_LIGHT |
A light shade level (dock background, ...) | |
#define | GLDI_COLOR_SHADE_MEDIUM |
A medium shade level (selected menu-item, widget inside a dialog/menu, separator, ...) | |
#define | GLDI_COLOR_SHADE_STRONG |
A strong shade level (child widget inside a dialog/menu, ...) | |
Enumerations | |
enum | GldiStyleColors |
Available types of color. | |
Functions | |
void | gldi_style_color_shade (GldiColor *icolor, double shade, GldiColor *ocolor) |
This file provides a few functions dealing with style elements like colors and text.
void gldi_style_color_shade | ( | GldiColor * | icolor, |
double | shade, | ||
GldiColor * | ocolor | ||
) |
Shade a color, making it darker if it's light, and lighter if it's dark. Note that the opposite behavior can be obtained by passing a negative shade value. Alpha is copied unchanged. Both pointers can be the same.
icolor | input color |
shade | amount of light to add/remove, <= 1. |
ocolor | output color |