Skip to content

Commit

Permalink
add a frame around the control panel help text
Browse files Browse the repository at this point in the history
for better visibility
  • Loading branch information
myk002 committed Mar 31, 2024
1 parent 723ed7d commit 983dc99
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions gui/control-panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ConfigPanel.ATTRS{

function ConfigPanel:init()
local main_panel = widgets.Panel{
frame={t=0, b=7},
frame={t=0, b=9},
autoarrange_subviews=true,
autoarrange_gap=1,
subviews={
Expand Down Expand Up @@ -81,11 +81,17 @@ function ConfigPanel:init()

self:addviews{
main_panel,
widgets.WrappedLabel{
view_id='desc',
frame={b=4, h=2},
auto_height=false,
text_to_wrap='', -- updated in on_select
widgets.Panel{
frame={b=4, h=4},
frame_style=gui.FRAME_INTERIOR,
subviews={
widgets.WrappedLabel{
frame={l=0, h=2},
view_id='desc',
auto_height=false,
text_to_wrap='', -- updated in on_select
},
},
},
footer,
}
Expand Down Expand Up @@ -870,7 +876,7 @@ end
ControlPanel = defclass(ControlPanel, widgets.Window)
ControlPanel.ATTRS {
frame_title='DFHack Control Panel',
frame={w=74, h=44},
frame={w=74, h=45},
resizable=true,
resize_min={h=39},
autoarrange_subviews=true,
Expand Down

0 comments on commit 983dc99

Please sign in to comment.