mirror of
https://github.com/swaywm/sway.git
synced 2026-03-28 07:58:38 -04:00
swaynag: adds option to separately specify the text color for buttons
This commit is contained in:
parent
08095e99f3
commit
a543fa35ff
6 changed files with 50 additions and 27 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue