From 28330d7b3468b8adafe8a1fc3caa33f43779ad39 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 11 Apr 2021 08:41:40 +0300 Subject: Added a "Clear Selection" string --- src/ui/documentwidget.c | 4 ++-- src/ui/window.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 105a7158..99767584 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c @@ -2947,7 +2947,7 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e d->copyMenu = makeMenu_Widget(w, (iMenuItem[]){ { clipCopy_Icon " ${menu.copy}", 0, 0, "copy" }, { "---", 0, 0, NULL }, - { close_Icon " Clear Selection", 0, 0, "document.select arg:0" }, + { close_Icon " ${menu.select.clear}", 0, 0, "document.select arg:0" }, }, 3); setFlags_Widget(d->copyMenu, noFadeBackground_WidgetFlag, iTrue); openMenu_Widget(d->copyMenu, pos_Click(&d->click)); @@ -3756,7 +3756,7 @@ static void draw_DocumentWidget_(const iDocumentWidget *d) { if (flags_Widget(w) & touchDrag_WidgetFlag) { iString msg; init_String(&msg); - format_String(&msg, "Selecting: drag and tap"); + format_String(&msg, "Selecting: drag and tap"); /* TODO: Needed? (N bytes selected?) */ fillRect_Paint(&ctx.paint, (iRect){ topLeft_Rect(bounds), init_I2(width_Rect(bounds), lineHeight_Text(uiLabelBold_FontId))}, uiTextAction_ColorId); diff --git a/src/ui/window.c b/src/ui/window.c index 0a5bab6f..716c1d05 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1078,6 +1078,7 @@ static void setupUserInterface_Window(iWindow *d) { { "${menu.page.copysource}", 'c', KMOD_PRIMARY, "copy" }, { download_Icon " " saveToDownloads_Label, SDLK_s, KMOD_PRIMARY, "document.save" } }, 14); + setAlignVisually_LabelWidget((iLabelWidget *) reload, iTrue); } setId_Widget(as_Widget(reload), "reload"); addChildFlags_Widget(as_Widget(url), iClob(reload), embedFlags | moveToParentRightEdge_WidgetFlag); -- cgit v1.2.3