diff options
author | QC <qball@gmpclient.org> | 2015-04-05 10:40:35 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2015-04-05 10:40:35 +0200 |
commit | 808eee4b85c2fb7c4ab4d1ff77fa0f837acf6cef (patch) | |
tree | e89db835dcad6d464fdf924e8cdbfda23b8254dd | |
parent | 8cc553ebaf31da31da152e8f12e788e2e740e488 (diff) |
Try to improve coloring of urgent/active rows that are selected.
-rw-r--r-- | source/textbox.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/source/textbox.c b/source/textbox.c index b1a3344a..8a352104 100644 --- a/source/textbox.c +++ b/source/textbox.c @@ -147,10 +147,20 @@ void textbox_font ( textbox *tb, TextBoxFontType tbft ) } if ( ( tbft & FMOD_MASK ) ) { if ( ( tbft & ACTIVE ) ) { - tb->color_fg = color_fg_active; + if(tbft&HIGHLIGHT) { + tb->color_fg = color_hlfg; + tb->color_bg = color_fg_active; + }else { + tb->color_fg = color_fg_active; + } } else if ( ( tbft & URGENT ) ) { - tb->color_fg = color_fg_urgent; + if(tbft&HIGHLIGHT) { + tb->color_fg = color_hlfg; + tb->color_bg = color_fg_urgent; + }else { + tb->color_fg = color_fg_urgent; + } } } tb->tbft = tbft; |