#include "xcolor.h"
Go to the source code of this file.
Functions | |
void | set_dark_theme (Xputty *main) |
set_dark_theme - init the XColor_t struct to the default dark theme More... | |
void | set_light_theme (Xputty *main) |
set_light_theme - init the XColor_t struct to the default light theme More... | |
Colors * | get_color_scheme (Xputty *main, Color_state st) |
get_color_scheme - get pointer to the Colors struct to use in relation to the Color_state More... | |
Color_state | get_color_state (Widget_t *wid) |
get_color_state - get the Color_state to use in relation to the Widget_t state More... | |
void | use_fg_color_scheme (Widget_t *w, Color_state st) |
use_fg_color_scheme - use forground Colors to paint on Widget_t More... | |
void | use_bg_color_scheme (Widget_t *w, Color_state st) |
use_bg_color_scheme - use background Colors to paint on Widget_t More... | |
void | use_base_color_scheme (Widget_t *w, Color_state st) |
use_base_color_scheme - use base Colors to paint on Widget_t More... | |
void | use_text_color_scheme (Widget_t *w, Color_state st) |
use_text_color_scheme - use text Colors to paint on Widget_t More... | |
void | use_shadow_color_scheme (Widget_t *w, Color_state st) |
use_shadow_color_scheme - use shadow Colors to paint on Widget_t More... | |
void | use_frame_color_scheme (Widget_t *w, Color_state st) |
use_frame_color_scheme - use frame Colors to paint on Widget_t More... | |
void | use_light_color_scheme (Widget_t *w, Color_state st) |
use_light_color_scheme - use light Colors to paint on Widget_t More... | |
void | set_pattern (Widget_t *w, Colors *from, Colors *to, Color_mod mod) |
set_pattern - set pattern for the selected Colors More... | |
Colors* get_color_scheme | ( | Xputty * | main, |
Color_state | st | ||
) |
get_color_scheme - get pointer to the Colors struct to use in relation to the Color_state
*st | - the Color state to use |
Definition at line 130 of file xcolor.c.
References XColor_t::active, ACTIVE_, Xputty::color_scheme, XColor_t::insensitive, INSENSITIVE_, XColor_t::normal, NORMAL_, XColor_t::prelight, PRELIGHT_, XColor_t::selected, and SELECTED_.
Color_state get_color_state | ( | Widget_t * | wid | ) |
get_color_state - get the Color_state to use in relation to the Widget_t state
*wid | - pointer to the Widget_t |
Definition at line 155 of file xcolor.c.
References ACTIVE_, INSENSITIVE_, NORMAL_, PRELIGHT_, SELECTED_, and Widget_t::state.
void set_dark_theme | ( | Xputty * | main | ) |
set_dark_theme - init the XColor_t struct to the default dark theme
*main | - pointer to the main Xputty struct |
Definition at line 24 of file xcolor.c.
References XColor_t::active, Xputty::color_scheme, Colors::fg, XColor_t::insensitive, XColor_t::normal, XColor_t::prelight, and XColor_t::selected.
void set_light_theme | ( | Xputty * | main | ) |
set_light_theme - init the XColor_t struct to the default light theme
*main | - pointer to the main Xputty struct |
Definition at line 77 of file xcolor.c.
References XColor_t::active, Xputty::color_scheme, Colors::fg, XColor_t::insensitive, XColor_t::normal, XColor_t::prelight, and XColor_t::selected.
set_pattern - set pattern for the selected Colors
*w_ | - pointer to the Widget_t to set the pattern |
*from | - the Colors set to pattern from (0) |
*to | - the Colors set to pattern to (1) |
mod | - the Color_mod to use |
Definition at line 227 of file xcolor.c.
References Widget_t::app, BACKGROUND_, Colors::base, BASE_, Colors::bg, Widget_t::cr, Widget_t::crb, Xputty::dpy, Colors::fg, FORGROUND_, Colors::frame, FRAME_, Colors::light, LIGHT_, Colors::shadow, SHADOW_, Colors::text, TEXT_, and Widget_t::widget.
void use_base_color_scheme | ( | Widget_t * | w, |
Color_state | st | ||
) |
use_base_color_scheme - use base Colors to paint on Widget_t
Definition at line 192 of file xcolor.c.
References Widget_t::app, Colors::base, Widget_t::cr, Widget_t::crb, and get_color_scheme().
void use_bg_color_scheme | ( | Widget_t * | w, |
Color_state | st | ||
) |
use_bg_color_scheme - use background Colors to paint on Widget_t
Definition at line 185 of file xcolor.c.
References Widget_t::app, Colors::bg, Widget_t::cr, Widget_t::crb, and get_color_scheme().
void use_fg_color_scheme | ( | Widget_t * | w, |
Color_state | st | ||
) |
use_fg_color_scheme - use forground Colors to paint on Widget_t
Definition at line 178 of file xcolor.c.
References Widget_t::app, Widget_t::cr, Widget_t::crb, Colors::fg, and get_color_scheme().
void use_frame_color_scheme | ( | Widget_t * | w, |
Color_state | st | ||
) |
use_frame_color_scheme - use frame Colors to paint on Widget_t
Definition at line 213 of file xcolor.c.
References Widget_t::app, Widget_t::cr, Widget_t::crb, Colors::frame, and get_color_scheme().
void use_light_color_scheme | ( | Widget_t * | w, |
Color_state | st | ||
) |
use_light_color_scheme - use light Colors to paint on Widget_t
Definition at line 220 of file xcolor.c.
References Widget_t::app, Widget_t::cr, Widget_t::crb, get_color_scheme(), and Colors::light.
void use_shadow_color_scheme | ( | Widget_t * | w, |
Color_state | st | ||
) |
use_shadow_color_scheme - use shadow Colors to paint on Widget_t
Definition at line 206 of file xcolor.c.
References Widget_t::app, Widget_t::cr, Widget_t::crb, get_color_scheme(), and Colors::shadow.
void use_text_color_scheme | ( | Widget_t * | w, |
Color_state | st | ||
) |
use_text_color_scheme - use text Colors to paint on Widget_t
Definition at line 199 of file xcolor.c.
References Widget_t::app, Widget_t::cr, Widget_t::crb, get_color_scheme(), and Colors::text.