forked from enlightenment/efl
efl_style: rename enums (background,strikthrough) from enabled to solid_color
Reviewers: woohyun, segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7942 Differential Revision: https://phab.enlightenment.org/D10967
This commit is contained in:
parent
7c71dc4e2d
commit
e583b9159e
|
@ -2,7 +2,7 @@ enum @beta Efl.Text_Style_Background_Type
|
|||
{
|
||||
[[Whether to add a background colored rectangle (background) to each line of text or not.]]
|
||||
disabled = 0, [[Do not use background.]]
|
||||
enabled, [[Use background.]]
|
||||
solid_color, [[Use solid color background.]]
|
||||
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ enum @beta Efl.Text_Style_Strikethrough_Type
|
|||
{
|
||||
[[Whether to add a strike-through decoration to the displayed text or not.]]
|
||||
disabled = 0, [[Do not use strike-through.]]
|
||||
enabled, [[Use strike-through.]]
|
||||
solid_color, [[Use solid color strike-through.]]
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -4908,7 +4908,7 @@ EFL_START_TEST(efl_canvas_textblock_style)
|
|||
ck_assert_int_eq(efl_text_wrap_get(txt), EFL_TEXT_FORMAT_WRAP_NONE);
|
||||
|
||||
efl_canvas_textblock_style_apply(txt, "backing=on");
|
||||
ck_assert_int_eq(efl_text_background_type_get(txt), EFL_TEXT_STYLE_BACKGROUND_TYPE_ENABLED);
|
||||
ck_assert_int_eq(efl_text_background_type_get(txt), EFL_TEXT_STYLE_BACKGROUND_TYPE_SOLID_COLOR);
|
||||
|
||||
efl_canvas_textblock_style_apply(txt, "style=far_soft_shadow");
|
||||
ck_assert_int_eq(efl_text_effect_type_get(txt), EFL_TEXT_STYLE_EFFECT_TYPE_FAR_SOFT_SHADOW);
|
||||
|
|
Loading…
Reference in New Issue