Skip to content

Commit

Permalink
use more descriptive label text
Browse files Browse the repository at this point in the history
  • Loading branch information
TymurGubayev authored Oct 8, 2023
1 parent 937e6d2 commit e2bd30f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gui/job-details.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand All @@ -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,
},
Expand Down

0 comments on commit e2bd30f

Please sign in to comment.