From a8fa5c21f0bc81f3f144ee29e16deab3f91296d4 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 15 Jun 2021 17:51:04 +0300 Subject: Fixed visual artifact during sidebar animation The sidebars are not supposed to have borders or background fades. --- src/ui/util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ui/util.c') diff --git a/src/ui/util.c b/src/ui/util.c index 3a9bc400..e0b05a44 100644 --- a/src/ui/util.c +++ b/src/ui/util.c @@ -710,7 +710,8 @@ iWidget *makeMenu_Widget(iWidget *parent, const iMenuItem *items, size_t n) { menu, iClob(newKeyMods_LabelWidget(labelText, item->key, item->kmods, item->command)), noBackground_WidgetFlag | frameless_WidgetFlag | alignLeft_WidgetFlag | - drawKey_WidgetFlag | (isInfo ? wrapText_WidgetFlag : 0) | itemFlags); + drawKey_WidgetFlag | itemFlags); + setWrap_LabelWidget(label, isInfo); haveIcons |= checkIcon_LabelWidget(label); updateSize_LabelWidget(label); /* drawKey was set */ if (isInfo) { @@ -776,7 +777,7 @@ void openMenuFlags_Widget(iWidget *d, iInt2 windowCoord, iBool postCommands) { if (isInstance_Object(i.object, &Class_LabelWidget)) { iLabelWidget *label = i.object; const iBool isCaution = startsWith_String(text_LabelWidget(label), uiTextCaution_ColorEscape); - if (flags_Widget(as_Widget(label)) & wrapText_WidgetFlag) { + if (isWrapped_LabelWidget(label)) { continue; } if (deviceType_App() == desktop_AppDeviceType) { -- cgit v1.2.3