summaryrefslogtreecommitdiff
path: root/swaynag/render.c
diff options
context:
space:
mode:
authoroliver-giersch <[email protected]>2020-09-02 15:03:48 +0200
committerSimon Ser <[email protected]>2020-09-04 18:17:42 +0200
commita543fa35ffc93b832770988121209d4e939a2237 (patch)
tree24e1123ea087439d4dfdba3770bdcfc8bf16800e /swaynag/render.c
parent08095e99f3cc1697bc3f20d166a2c19374537afd (diff)
swaynag: adds option to separately specify the text color for buttons
Diffstat (limited to 'swaynag/render.c')
-rw-r--r--swaynag/render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/swaynag/render.c b/swaynag/render.c
index f6507e67..4537ec04 100644
--- a/swaynag/render.c
+++ b/swaynag/render.c
@@ -47,7 +47,7 @@ static void render_details_scroll_button(cairo_t *cairo,
button->width - (border * 2), button->height - (border * 2));
cairo_fill(cairo);
- cairo_set_source_u32(cairo, swaynag->type->text);
+ cairo_set_source_u32(cairo, swaynag->type->button_text);
cairo_move_to(cairo, button->x + border + padding,
button->y + border + (button->height - text_height) / 2);
pango_printf(cairo, swaynag->type->font, swaynag->scale, true,
@@ -199,7 +199,7 @@ static uint32_t render_button(cairo_t *cairo, struct swaynag *swaynag,
button->width, button->height);
cairo_fill(cairo);
- cairo_set_source_u32(cairo, swaynag->type->text);
+ cairo_set_source_u32(cairo, swaynag->type->button_text);
cairo_move_to(cairo, button->x + padding, button->y + padding);
pango_printf(cairo, swaynag->type->font, swaynag->scale, true,
"%s", button->text);