Skip to content

Commit

Permalink
Fix text color when cursor color is set
Browse files Browse the repository at this point in the history
  • Loading branch information
vE5li committed Sep 27, 2023
1 parent 1243dca commit 5f954df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/widgets/textbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ static void textbox_draw(widget *wid, cairo_t *draw) {
tb->cursor_x_pos = x + cursor_x;
}
if (tb->blink) {
cairo_save(draw);
// use text color as fallback for themes that don't specify the cursor
// color
rofi_theme_get_color(WIDGET(tb), "cursor-color", draw);
Expand All @@ -555,6 +556,7 @@ static void textbox_draw(widget *wid, cairo_t *draw) {
} else {
cairo_fill(draw);
}
cairo_restore(draw);
}
}

Expand Down

0 comments on commit 5f954df

Please sign in to comment.