summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-06-02 16:46:28 +0200
committerDave Davenport <qball@gmpclient.org>2017-06-02 16:46:28 +0200
commit1d622aa59c7e80cdfa71c24331dc2255b66960f4 (patch)
tree1427105e0ee05fa41a8b2c811835637750f5ce18 /test
parent3e4622807425d9ca9964591a9c7c5b8e0fdd7c18 (diff)
Change ThemeHighlight to RofiHighlightColorStyle
Diffstat (limited to 'test')
-rw-r--r--test/theme-parser-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/theme-parser-test.c b/test/theme-parser-test.c
index 45880b6f..6629c83f 100644
--- a/test/theme-parser-test.c
+++ b/test/theme-parser-test.c
@@ -366,7 +366,7 @@ START_TEST ( test_properties_style)
wid.name = "blaat";
wid.state = NULL;
rofi_theme_parse_string ( "* { none: none; bold: bold; underline: underline; italic: italic; st: italic strikethrough;}");
- ThemeHighlight th = { ROFI_HL_BOLD, {0.0,0.0,0.0,0.0}};
+ RofiHighlightColorStyle th = { ROFI_HL_BOLD, {0.0,0.0,0.0,0.0}};
th = rofi_theme_get_highlight ( &wid, "none", th);
ck_assert_int_eq ( th.style , ROFI_HL_NONE );
th = rofi_theme_get_highlight ( &wid, "underline", th);
@@ -386,7 +386,7 @@ START_TEST ( test_properties_style2 )
wid.state = NULL;
rofi_theme_parse_string ( "* { boldu: bold underline ; boldi: bold italic; underlinei: underline italic; italicu: italic underline;}");
- ThemeHighlight th = { ROFI_HL_BOLD, {0.0,0.0,0.0,0.0}};
+ RofiHighlightColorStyle th = { ROFI_HL_BOLD, {0.0,0.0,0.0,0.0}};
th = rofi_theme_get_highlight ( &wid, "boldu", th);
ck_assert_int_eq ( th.style , (ROFI_HL_UNDERLINE|ROFI_HL_BOLD));
th = rofi_theme_get_highlight ( &wid, "boldi", th);
@@ -403,7 +403,7 @@ START_TEST ( test_properties_style_color )
wid.name = "blaat";
wid.state = NULL;
rofi_theme_parse_string ( "* { comb: bold #123; }");
- ThemeHighlight th = { ROFI_HL_BOLD, {0.0,0.0,0.0,0.0}};
+ RofiHighlightColorStyle th = { ROFI_HL_BOLD, {0.0,0.0,0.0,0.0}};
th = rofi_theme_get_highlight ( &wid, "comb", th);
ck_assert_int_eq ( th.style , (ROFI_HL_BOLD|ROFI_HL_COLOR));
ck_assert_double_eq ( th.color.red , (1/15.0));