From eabae64f99804c1c7521ca55d3eb883e7880df4f Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 14 May 2021 12:07:23 +0300 Subject: Show "Line break" help text in input dialog --- src/ui/documentwidget.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/ui/documentwidget.c') diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index a467df10..d2a97371 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c @@ -1615,7 +1615,14 @@ static void checkResponse_DocumentWidget_(iDocumentWidget *d) { : cstr_String(&resp->meta), uiTextCaution_ColorEscape "${dlg.input.send}", format_CStr("!document.input.submit doc:%p", d)); - setId_Widget(addChildPosFlags_Widget(findChild_Widget(dlg, "dialogbuttons"), + iWidget *buttons = findChild_Widget(dlg, "dialogbuttons"); + iLabelWidget *lineBreak = + insertChildAfter_Widget(buttons, iClob(new_LabelWidget("${dlg.input.linebreak}" + uiTextAction_ColorEscape + " " shiftReturn_Icon, + NULL)), 0); + setTextColor_LabelWidget(lineBreak, uiTextDim_ColorId); + setId_Widget(addChildPosFlags_Widget(buttons, iClob(new_LabelWidget("", NULL)), front_WidgetAddPos, frameless_WidgetFlag), "valueinput.counter"); -- cgit v1.2.3