diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-19 13:10:54 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-19 13:10:54 +0100 |
| commit | e774c39c76379738e383e23938f3762b1a57e3b2 (patch) | |
| tree | d9b15c5a4695efc513f23057c8d326c02905811d /src/button.c | |
| parent | a8a1c47f4c22497c983856c04c099058a42e518b (diff) | |
Add per-button colors
Diffstat (limited to 'src/button.c')
| -rw-r--r-- | src/button.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; |
