fix theme designer

This commit is contained in:
nakst 2021-12-29 10:20:25 +00:00
parent ca856b74cf
commit 9fd5249abd
1 changed files with 1 additions and 1 deletions

View File

@ -2606,7 +2606,7 @@ void CanvasDrawStyle(Object *object, UIRectangle bounds, UIPainter *painter, int
EsTextStyle textStyle = {};
textStyle.font.family = GraphGetIntegerFromProperty(PropertyFindOrInherit(object, "fontFamily"));
textStyle.font.weight = GraphGetIntegerFromProperty(PropertyFindOrInherit(object, "fontWeight"));
textStyle.font.italic = GraphGetIntegerFromProperty(PropertyFindOrInherit(object, "isItalic"));
textStyle.font.flags = (GraphGetIntegerFromProperty(PropertyFindOrInherit(object, "isItalic"))) ? ES_FONT_ITALIC : ES_FLAGS_DEFAULT;
textStyle.size = GraphGetIntegerFromProperty(PropertyFindOrInherit(object, "textSize")) * canvas->zoom;
textStyle.color = GraphGetColorFromProperty(PropertyFindOrInherit(object, "textColor"));
EsDrawTextSimple((_EsPainter *) &themePainter, ui.instance->window, bounds, "Sample", -1, textStyle, ES_TEXT_H_CENTER | ES_TEXT_V_CENTER);