diff options
Diffstat (limited to 'src/comet.c')
| -rw-r--r-- | src/comet.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/comet.c b/src/comet.c index a1bc605..53f4eff 100644 --- a/src/comet.c +++ b/src/comet.c @@ -63,26 +63,35 @@ 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); + Drawable *draw = draw_create("Hack 13 Bold", height, x_padding, x_padding, y_padding, 1, 0); State *state = state_create(win, draw); + // purple + Color background = { 0.502, 0.168, 0.886, 1 }; + Color foreground = { 0.8, 0.8, 0.8, 1 }; + Color stroke = { 0.8, 0.8, 0.8, 1 }; + for (int i = 0; i < 9; ++i) { char text[] = { '1' + i, '\0' }; Button *btn = button_create(text, PANGO_ALIGN_LEFT); + button_set_colors(btn, background, foreground, stroke); button_set_action(btn, action); state_add_button(state, btn); } Button *long_btn = button_create("long button", PANGO_ALIGN_CENTER); + button_set_colors(long_btn, background, foreground, stroke); button_set_action(long_btn, action); state_add_button(state, long_btn); Button *date_btn = button_create("date = today", PANGO_ALIGN_RIGHT); + button_set_colors(date_btn, background, foreground, stroke); button_set_action(date_btn, action); state_add_button(state, date_btn); Button *u_btn = button_create("U", PANGO_ALIGN_RIGHT); + button_set_colors(u_btn, background, foreground, stroke); button_set_action(u_btn, action); state_add_button(state, u_btn); |
