27 .
fg = { 0.85, 0.85, 0.85, 1.0},
28 .bg = { 0.1, 0.1, 0.1, 1.0},
29 .base = { 0.0, 0.0, 0.0, 1.0},
30 .text = { 0.9, 0.9, 0.9, 1.0},
31 .shadow = { 0.0, 0.0, 0.0, 0.2},
32 .frame = { 0.0, 0.0, 0.0, 1.0},
33 .light = { 0.1, 0.1, 0.1, 1.0}
37 .
fg = { 1.0, 0.0, 1.0, 1.0},
38 .bg = { 0.25, 0.25, 0.25, 1.0},
39 .base = { 0.3, 0.3, 0.3, 1.0},
40 .text = { 1.0, 1.0, 1.0, 1.0},
41 .shadow = { 0.1, 0.1, 0.1, 0.4},
42 .frame = { 0.3, 0.3, 0.3, 1.0},
43 .light = { 0.3, 0.3, 0.3, 1.0}
47 .
fg = { 0.9, 0.9, 0.9, 1.0},
48 .bg = { 0.2, 0.2, 0.2, 1.0},
49 .base = { 0.5, 0.18, 0.18, 1.0},
50 .text = { 1.0, 1.0, 1.0, 1.0},
51 .shadow = { 0.8, 0.18, 0.18, 0.2},
52 .frame = { 0.5, 0.18, 0.18, 1.0},
53 .light = { 0.5, 0.18, 0.18, 1.0}
57 .
fg = { 0.0, 1.0, 1.0, 1.0},
58 .bg = { 0.0, 0.0, 0.0, 1.0},
59 .base = { 0.18, 0.38, 0.38, 1.0},
60 .text = { 0.75, 0.75, 0.75, 1.0},
61 .shadow = { 0.18, 0.38, 0.38, 0.5},
62 .frame = { 0.18, 0.38, 0.38, 1.0},
63 .light = { 0.18, 0.38, 0.38, 1.0}
67 .
fg = { 0.85, 0.85, 0.85, 0.5},
68 .bg = { 0.1, 0.1, 0.1, 0.5},
69 .base = { 0.0, 0.0, 0.0, 0.5},
70 .text = { 0.9, 0.9, 0.9, 0.5},
71 .shadow = { 0.0, 0.0, 0.0, 0.1},
72 .frame = { 0.0, 0.0, 0.0, 0.5},
73 .light = { 0.1, 0.1, 0.1, 0.5}
80 .
fg = { 0.15, 0.15, 0.15, 1.0},
81 .bg = { 0.85, 0.85, 0.85, 1.0},
82 .base = { 0.9, 0.9, 0.9, 1.0},
83 .text = { 0.25, 0.25, 0.25, 1.0},
84 .shadow = { 0.0, 0.0, 0.0, 0.2},
85 .frame = { 0.2, 0.2, 0.2, 1.0},
86 .light = { 0.9, 0.9, 0.9, 1.0}
90 .
fg = { 0.25, 0.25, 0.25, 1.0},
91 .bg = { 1.0, 1.0, 1.0, 1.0},
92 .base = { 0.75, 0.75, 0.75, 1.0},
93 .text = { 0.15, 0.15, 0.15, 1.0},
94 .shadow = { 0.1, 0.1, 0.1, 0.4},
95 .frame = { 0.3, 0.3, 0.3, 1.0},
96 .light = { 0.75, 0.75, 0.75, 1.0}
100 .
fg = { 0.2, 0.2, 0.2, 1.0},
101 .bg = { 0.9, 0.9, 0.9, 1.0},
102 .base = { 0.0, 0.5, 0.65, 1.0},
103 .text = { 0.8, 0.8, 0.8, 1.0},
104 .shadow = { 0.8, 0.18, 0.18, 0.2},
105 .frame = { 0.5, 0.18, 0.18, 1.0},
106 .light = { 0.5, 0.5, 0.5, 1.0}
110 .
fg = { 0.0, 0.0, 0.0, 1.0},
111 .bg = { 1.0, 1.0, 1.0, 1.0},
112 .base = { 0.0, 0.3, 0.65, 1.0},
113 .text = { 0.8, 0.8, 0.8, 1.0},
114 .shadow = { 0.18, 0.38, 0.38, 0.5},
115 .frame = { 0.18, 0.38, 0.38, 1.0},
116 .light = { 0.3, 0.3, 0.3, 1.0}
120 .
fg = { 0.15, 0.15, 0.15, 0.5},
121 .bg = { 0.85, 0.85, 0.85, 0.5},
122 .base = { 0.9, 0.9, 0.9, 0.5},
123 .text = { 0.25, 0.25, 0.25, 0.5},
124 .shadow = { 0.0, 0.0, 0.0, 0.1},
125 .frame = { 0.2, 0.2, 0.2, 0.5},
126 .light = { 0.9, 0.9, 0.9, 0.5}
181 cairo_set_source_rgba(w->
cr, c->
fg[0], c->
fg[1], c->
fg[2], c->
fg[3]);
182 cairo_set_source_rgba(w->
crb, c->
fg[0], c->
fg[1], c->
fg[2], c->
fg[3]);
188 cairo_set_source_rgba(w->
cr, c->
bg[0], c->
bg[1], c->
bg[2], c->
bg[3]);
189 cairo_set_source_rgba(w->
crb, c->
bg[0], c->
bg[1], c->
bg[2], c->
bg[3]);
228 double *col_from = NULL;
229 double *col_to = NULL;
240 col_from = from->
base;
244 col_from = from->
text;
252 col_from = from->
frame;
256 col_from = from->
light;
260 XWindowAttributes attrs;
261 XGetWindowAttributes(w->
app->
dpy, (Window)w->
widget, &attrs);
262 int width = attrs.width;
263 int height = attrs.height;
264 cairo_pattern_t *pat = cairo_pattern_create_linear (0, 0, width, height);
265 cairo_pattern_add_color_stop_rgba(pat, 0.0, col_from[0], col_from[1], col_from[2], col_from[3]);
266 cairo_pattern_add_color_stop_rgba(pat, 1.0, col_to[0], col_to[1], col_to[2], col_to[3]);
267 cairo_set_source(w->
crb, pat);
268 cairo_set_source(w->
cr, pat);
269 cairo_pattern_destroy (pat);