forked from enlightenment/enventor
syntax_color: Set white to default text color.
Set white to default text color to not change text color when entry is disabled.
This commit is contained in:
parent
12b35145ae
commit
992b50cc9b
|
@ -904,17 +904,14 @@ color_apply(color_data *cd, const char *src, int length, char *from, char *to)
|
|||
if (to && (cur > to)) goto finished;
|
||||
}
|
||||
|
||||
//Same with origin source.
|
||||
if (prev == src)
|
||||
str = src;
|
||||
//Some color syntax is applied.
|
||||
else
|
||||
{
|
||||
finished:
|
||||
//append leftovers.
|
||||
if (prev < cur) eina_strbuf_append(strbuf, prev);
|
||||
str = eina_strbuf_string_get(strbuf);
|
||||
}
|
||||
//append leftovers.
|
||||
if ((prev == src) || (prev < cur)) eina_strbuf_append(strbuf, prev);
|
||||
|
||||
//prepend default color(white).
|
||||
eina_strbuf_prepend(strbuf, "<color=#FFFFFFFF>");
|
||||
eina_strbuf_append(strbuf, "</color>");
|
||||
str = eina_strbuf_string_get(strbuf);
|
||||
|
||||
macro_keys_free(cd);
|
||||
|
||||
|
|
Loading…
Reference in New Issue