diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-05-18 07:59:37 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-05-18 07:59:37 +0200 |
commit | 72afc7b0399834bc2b6c3a45f761b548f47b3cab (patch) | |
tree | ae1eb158807ee04553d359d948f7b0a060c09030 /source | |
parent | bcea55c398c9f9a77aeb045d264c67fee3bfba09 (diff) |
Add strikethrough highlight method.
Diffstat (limited to 'source')
-rw-r--r-- | source/helper.c | 6 | ||||
-rw-r--r-- | source/theme.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/source/helper.c b/source/helper.c index d31a4e20..e14a5e68 100644 --- a/source/helper.c +++ b/source/helper.c @@ -423,6 +423,12 @@ PangoAttrList *helper_token_match_get_pango_attr ( ThemeHighlight th, GRegex **t pa->end_index = end; pango_attr_list_insert ( retv, pa ); } + if ( th.style & HL_STRIKETHROUGH ) { + PangoAttribute *pa = pango_attr_strikethrough_new ( TRUE ); + pa->start_index = start; + pa->end_index = end; + pango_attr_list_insert ( retv, pa ); + } if ( th.style & HL_ITALIC ) { PangoAttribute *pa = pango_attr_style_new ( PANGO_STYLE_ITALIC ); pa->start_index = start; diff --git a/source/theme.c b/source/theme.c index 03f3e859..601738ea 100644 --- a/source/theme.c +++ b/source/theme.c @@ -169,6 +169,9 @@ static void rofi_theme_print_property_index ( size_t pnl, int depth, Property *p if ( p->value.highlight.style & HL_UNDERLINE ) { printf ( "underline " ); } + if ( p->value.highlight.style & HL_STRIKETHROUGH ) { + printf ( "strikethrough " ); + } if ( p->value.highlight.style & HL_ITALIC ) { printf ( "italic " ); } |