1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-02-17 15:45:56 -05:00

Add strikethrough to theme manpage.

- extend theme test to hit all rgba rules.
This commit is contained in:
Dave Davenport 2017-05-18 18:04:52 +02:00
parent fa125cb456
commit 421f84285f
3 changed files with 4 additions and 4 deletions

View file

@ -287,7 +287,7 @@ text: SeaGreen;
## Text style ## 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 Text style indicates how the text should be displayed. None indicates no style
should be applied. should be applied.

View file

@ -438,7 +438,7 @@ text: SeaGreen;
.SH "Text style" .SH "Text style"
. .
.IP "\(bu" 4 .IP "\(bu" 4
Format: \fB(bold|italic|underline|none)\fR Format: \fB(bold|italic|underline|strikethrough|none)\fR
. .
.IP "" 0 .IP "" 0
. .

View file

@ -567,7 +567,7 @@ START_TEST ( test_properties_color_rgba_percent_p )
widget wid; widget wid;
wid.name = "blaat"; wid.name = "blaat";
wid.state = NULL; 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 ); ThemeWidget *twid = rofi_theme_find_widget ( wid.name, wid.state, FALSE );
Property *p = rofi_theme_find_property ( twid, P_COLOR, "red", FALSE ); Property *p = rofi_theme_find_property ( twid, P_COLOR, "red", FALSE );
ck_assert_ptr_nonnull ( p ); ck_assert_ptr_nonnull ( p );
@ -618,7 +618,7 @@ START_TEST ( test_properties_color_rgba )
widget wid; widget wid;
wid.name = "blaat"; wid.name = "blaat";
wid.state = NULL; 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 ); ThemeWidget *twid = rofi_theme_find_widget ( wid.name, wid.state, FALSE );
Property *p = rofi_theme_find_property ( twid, P_COLOR, "red", FALSE ); Property *p = rofi_theme_find_property ( twid, P_COLOR, "red", FALSE );
ck_assert_ptr_nonnull ( p ); ck_assert_ptr_nonnull ( p );