From 9fd5249abd2aee3dfa08bf4ca4f029fef69078c0 Mon Sep 17 00:00:00 2001 From: nakst <> Date: Wed, 29 Dec 2021 10:20:25 +0000 Subject: [PATCH] fix theme designer --- util/designer2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/designer2.cpp b/util/designer2.cpp index 31c75df..3c1d896 100644 --- a/util/designer2.cpp +++ b/util/designer2.cpp @@ -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);