diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-19 14:28:18 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-19 14:28:18 +0100 |
| commit | 89b205f3138b94325458ab121d5adb4a00091860 (patch) | |
| tree | b536773d235ec6ce8be37b2cce781c70441aa523 /src/comet.c | |
| parent | e774c39c76379738e383e23938f3762b1a57e3b2 (diff) | |
Add custom bar color
Diffstat (limited to 'src/comet.c')
| -rw-r--r-- | src/comet.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/comet.c b/src/comet.c index 53f4eff..36d517a 100644 --- a/src/comet.c +++ b/src/comet.c @@ -63,12 +63,13 @@ int main(int argc, char **argv) log_debug("Calculated dimensions [height=%d, x_pad=%d, y_pad=%d]", height, x_padding, y_padding); - Drawable *draw = draw_create("Hack 13 Bold", height, x_padding, x_padding, y_padding, 1, 0); + Color background_all = { 0.3, 0.3, 0.3, 1 }; + Drawable *draw = draw_create("Hack 13 Bold", height, x_padding, x_padding, y_padding, 0); + draw_set_background(draw, background_all); State *state = state_create(win, draw); - // purple - Color background = { 0.502, 0.168, 0.886, 1 }; + Color background = { 0.4, 0.4, 0.4, 1 }; Color foreground = { 0.8, 0.8, 0.8, 1 }; Color stroke = { 0.8, 0.8, 0.8, 1 }; @@ -90,8 +91,10 @@ int main(int argc, char **argv) button_set_action(date_btn, action); state_add_button(state, date_btn); + // purple + Color background2 = { 0.502, 0.168, 0.886, 1 }; Button *u_btn = button_create("U", PANGO_ALIGN_RIGHT); - button_set_colors(u_btn, background, foreground, stroke); + button_set_colors(u_btn, background2, foreground, stroke); button_set_action(u_btn, action); state_add_button(state, u_btn); |
