diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-01-09 00:09:02 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-01-09 00:09:02 +0100 |
commit | 713d41f619a1a8b311c3028a97e909e79cf88353 (patch) | |
tree | 8f30db8856307c2ebbc156573fc1dfc54969ba21 /source/view.c | |
parent | baab2047adf24642cbc727b50a77dc544e934a76 (diff) |
Allow matching highlighting to be set. Fixes #522
Diffstat (limited to 'source/view.c')
-rw-r--r-- | source/view.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/view.c b/source/view.c index 814a18c3..e0b5c46c 100644 --- a/source/view.c +++ b/source/view.c @@ -834,7 +834,9 @@ static void update_callback ( textbox *t, unsigned int index, void *udata, TextB else{ list = pango_attr_list_new (); } - token_match_get_pango_attr ( state->tokens, textbox_get_visible_text ( t ), list ); + ThemeHighlight th = { HL_BOLD | HL_UNDERLINE, { 0.0, 0.0, 0.0, 0.0 } }; + th = rofi_theme_get_highlight ( WIDGET ( t ), "highlight", th ); + token_match_get_pango_attr ( th, state->tokens, textbox_get_visible_text ( t ), list ); textbox_set_pango_attributes ( t, list ); pango_attr_list_unref ( list ); } |