2020-09-06 13:40:28 -07:00
|
|
|
#ifndef _COLORS_H__
|
|
|
|
#define _COLORS_H__ 1
|
2012-06-12 03:10:01 -07:00
|
|
|
|
2013-01-20 08:48:18 -08:00
|
|
|
#include <Evas.h>
|
2014-03-17 14:32:25 -07:00
|
|
|
#include "config.h"
|
2012-06-12 03:10:01 -07:00
|
|
|
|
2020-09-09 12:32:46 -07:00
|
|
|
typedef struct _Color_Scheme Color_Scheme;
|
2020-10-29 11:38:55 -07:00
|
|
|
typedef struct _Color_Block Color_Block;
|
|
|
|
|
|
|
|
struct _Color_Block
|
|
|
|
{
|
|
|
|
Color def;
|
|
|
|
Color black;
|
|
|
|
Color red;
|
|
|
|
Color green;
|
|
|
|
Color yellow;
|
|
|
|
Color blue;
|
|
|
|
Color magenta;
|
|
|
|
Color cyan;
|
|
|
|
Color white;
|
|
|
|
Color inverse_fg;
|
|
|
|
Color inverse_bg;
|
2020-11-02 14:20:51 -08:00
|
|
|
uint32_t _padding;
|
2020-10-29 11:38:55 -07:00
|
|
|
};
|
2020-09-09 12:32:46 -07:00
|
|
|
|
|
|
|
struct _Color_Scheme
|
|
|
|
{
|
|
|
|
int version;
|
|
|
|
struct {
|
|
|
|
int version;
|
|
|
|
const char *name;
|
|
|
|
const char *author;
|
|
|
|
const char *website;
|
|
|
|
const char *license;
|
|
|
|
} md;
|
|
|
|
|
|
|
|
Color bg;
|
|
|
|
Color main;
|
|
|
|
Color hl;
|
|
|
|
Color end_sel;
|
|
|
|
|
|
|
|
Color tab_missed_1;
|
|
|
|
Color tab_missed_2;
|
|
|
|
Color tab_missed_3;
|
|
|
|
Color tab_missed_over_1;
|
|
|
|
Color tab_missed_over_2;
|
|
|
|
Color tab_missed_over_3;
|
|
|
|
|
|
|
|
Color tab_title_2;
|
|
|
|
|
2020-10-29 11:38:55 -07:00
|
|
|
Color_Block normal;
|
|
|
|
Color_Block bright;
|
|
|
|
Color_Block faint;
|
2020-11-02 14:20:51 -08:00
|
|
|
Color_Block brightfaint;
|
2020-09-09 12:32:46 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-08-19 10:23:00 -07:00
|
|
|
void
|
|
|
|
colors_term_init(Evas_Object *textgrid,
|
2020-11-02 14:20:51 -08:00
|
|
|
const Evas_Object *bg);
|
2020-08-19 10:23:00 -07:00
|
|
|
void
|
|
|
|
colors_standard_get(int set,
|
|
|
|
int col,
|
|
|
|
unsigned char *r,
|
|
|
|
unsigned char *g,
|
|
|
|
unsigned char *b,
|
|
|
|
unsigned char *a);
|
|
|
|
|
|
|
|
void
|
|
|
|
colors_256_get(int col,
|
|
|
|
unsigned char *r,
|
|
|
|
unsigned char *g,
|
|
|
|
unsigned char *b,
|
|
|
|
unsigned char *a);
|
2013-01-20 08:48:18 -08:00
|
|
|
|
2020-09-01 10:11:34 -07:00
|
|
|
|
|
|
|
void
|
2020-10-06 09:50:16 -07:00
|
|
|
color_scheme_apply_from_config(Evas_Object *edje,
|
|
|
|
const Config *config);
|
2020-10-17 14:24:59 -07:00
|
|
|
void
|
|
|
|
color_scheme_apply(Evas_Object *edje,
|
|
|
|
const Color_Scheme *cs);
|
2020-09-01 10:11:34 -07:00
|
|
|
|
2020-10-11 14:35:11 -07:00
|
|
|
Eina_List *
|
|
|
|
color_scheme_list(void);
|
|
|
|
|
2020-09-09 12:32:46 -07:00
|
|
|
void
|
|
|
|
colors_init(void);
|
|
|
|
|
|
|
|
void
|
|
|
|
colors_shutdown(void);
|
|
|
|
|
|
|
|
|
2013-01-20 08:48:18 -08:00
|
|
|
#endif
|