summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2019-11-20 11:18:53 +0100
committerDave Davenport <qball@gmpclient.org>2019-11-20 11:18:53 +0100
commitc4a4243616464fb442c5bde4becc11bee7b4e506 (patch)
treebe3cbf01fe4d0b6e727093d41185e3eec081ac83
parent5a457022e98c0106c1037ecaa8b1901830bc3de7 (diff)
[Theme] Add alpha channel to highlight color.
Fixes: 1033
-rw-r--r--source/helper.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/helper.c b/source/helper.c
index 070a983c..fd70f8af 100644
--- a/source/helper.c
+++ b/source/helper.c
@@ -432,6 +432,13 @@ PangoAttrList *helper_token_match_get_pango_attr ( RofiHighlightColorStyle th, r
pa->start_index = start;
pa->end_index = end;
pango_attr_list_insert ( retv, pa );
+
+ if ( th.color.alpha < 1.0 ){
+ pa = pango_attr_foreground_alpha_new(th.color.alpha*65535);
+ pa->start_index = start;
+ pa->end_index = end;
+ pango_attr_list_insert ( retv, pa );
+ }
}
}
g_match_info_next ( gmi, NULL );