From e2bd30fa848789a1b580555c5983937cde42ed42 Mon Sep 17 00:00:00 2001 From: Timur Kelman Date: Sun, 8 Oct 2023 14:47:31 +0200 Subject: [PATCH] use more descriptive label text --- gui/job-details.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gui/job-details.lua b/gui/job-details.lua index 055b245ed6..3a4624d66a 100644 --- a/gui/job-details.lua +++ b/gui/job-details.lua @@ -366,17 +366,18 @@ end -- DetailsHotkeyOverlay -- -local focusStrings = 'dwarfmode/JobDetails' +local LABEL_TEXT = 'Configure job inputs' +local LABEL_TEXT_LENGTH = string.len( LABEL_TEXT ) DetailsHotkeyOverlay = defclass(DetailsHotkeyOverlay, overlay.OverlayWidget) DetailsHotkeyOverlay.ATTRS{ default_pos={x=0,y=0}, default_enabled=true, - viewscreens=focusStrings, + viewscreens="override this in a subclass", frame={w= 1 -- [ + 6 -- Ctrl+d + 2 -- :_ - + (7) -- details + + LABEL_TEXT_LENGTH -- LABEL_TEXT + 1 -- ] , h= 1 }, @@ -387,7 +388,7 @@ function DetailsHotkeyOverlay:init() widgets.TextButton{ view_id = 'button', frame={t=0, l=0, r=0, h=1}, - label='details', + label=LABEL_TEXT, key='CUSTOM_CTRL_D', on_activate=show_job_details, },