summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-05-18 18:04:52 +0200
committerDave Davenport <qball@gmpclient.org>2017-05-18 18:04:52 +0200
commit421f84285faffde1def20fe08c4173d129ae4dfd (patch)
tree1732e3965ed21416df78606fc3561aad5e669cbe
parentfa125cb45601bd8fbee817215cee32dc63479c27 (diff)
Add strikethrough to theme manpage.
- extend theme test to hit all rgba rules.
-rw-r--r--doc/rofi-theme-manpage.markdown2
-rw-r--r--doc/rofi-theme.52
-rw-r--r--test/theme-parser-test.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/doc/rofi-theme-manpage.markdown b/doc/rofi-theme-manpage.markdown
index 27bec018..7faf9cb6 100644
--- a/doc/rofi-theme-manpage.markdown
+++ b/doc/rofi-theme-manpage.markdown
@@ -287,7 +287,7 @@ text: SeaGreen;
## Text style
-* Format: `(bold|italic|underline|none)`
+* Format: `(bold|italic|underline|strikethrough|none)`
Text style indicates how the text should be displayed. None indicates no style
should be applied.
diff --git a/doc/rofi-theme.5 b/doc/rofi-theme.5
index a13702a6..d698656a 100644
--- a/doc/rofi-theme.5
+++ b/doc/rofi-theme.5
@@ -438,7 +438,7 @@ text: SeaGreen;
.SH "Text style"
.
.IP "\(bu" 4
-Format: \fB(bold|italic|underline|none)\fR
+Format: \fB(bold|italic|underline|strikethrough|none)\fR
.
.IP "" 0
.
diff --git a/test/theme-parser-test.c b/test/theme-parser-test.c
index 713f8726..2dbd8312 100644
--- a/test/theme-parser-test.c
+++ b/test/theme-parser-test.c
@@ -567,7 +567,7 @@ START_TEST ( test_properties_color_rgba_percent_p )
widget wid;
wid.name = "blaat";
wid.state = NULL;
- rofi_theme_parse_string ( "* { red: rgba(100%,0%,0%,30%); green: rgba(0%,100%,0%,20%); blue: rgba(0%,0%,100%,70.0%); }");
+ rofi_theme_parse_string ( "* { red: rgba(100%,0%,0%,30%); green: rgba(0%,100%,0%,20%); blue: rgba(0% 0% 100%/70.0%); }");
ThemeWidget *twid = rofi_theme_find_widget ( wid.name, wid.state, FALSE );
Property *p = rofi_theme_find_property ( twid, P_COLOR, "red", FALSE );
ck_assert_ptr_nonnull ( p );
@@ -618,7 +618,7 @@ START_TEST ( test_properties_color_rgba )
widget wid;
wid.name = "blaat";
wid.state = NULL;
- rofi_theme_parse_string ( "* { red: rgba(255,0,0,0.3); green: rgba(0,255,0,0.2); blue: rgba(0,0,255,0.7); }");
+ rofi_theme_parse_string ( "* { red: rgba(255,0,0,0.3); green: rgba(0,255,0,0.2); blue: rgba(0 0 255 /0.7); }");
ThemeWidget *twid = rofi_theme_find_widget ( wid.name, wid.state, FALSE );
Property *p = rofi_theme_find_property ( twid, P_COLOR, "red", FALSE );
ck_assert_ptr_nonnull ( p );