From e774c39c76379738e383e23938f3762b1a57e3b2 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Sun, 19 Nov 2023 13:10:54 +0100 Subject: Add per-button colors --- src/button.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/button.c') diff --git a/src/button.c b/src/button.c index 11ca2b7..b2155ed 100644 --- a/src/button.c +++ b/src/button.c @@ -10,6 +10,13 @@ Button *button_create(const char *text, PangoAlignment align) return btn; } +void button_set_colors(Button *btn, Color background, Color foreground, Color stroke) +{ + btn->background = background; + btn->foreground = foreground; + btn->stroke = stroke; +} + void button_set_action(Button *btn, ButtonAction action) { btn->action = action; -- cgit v1.2.3