forked from enlightenment/efl
elm - code - fix color multiplies from querying color classes directly
This commit is contained in:
parent
e65ff7e1e6
commit
e971355d26
|
@ -1951,6 +1951,9 @@ _elm_code_widget_setup_palette_item(Evas_Object *grid, int type, const char *nam
|
||||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL))
|
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
r = (r * a) / 255;
|
||||||
|
g = (g * a) / 255;
|
||||||
|
b = (b * a) / 255;
|
||||||
evas_object_textgrid_palette_set(grid, EVAS_TEXTGRID_PALETTE_STANDARD, type,
|
evas_object_textgrid_palette_set(grid, EVAS_TEXTGRID_PALETTE_STANDARD, type,
|
||||||
r * fade, g * fade, b * fade, a * fade);
|
r * fade, g * fade, b * fade, a * fade);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue