diff --git a/library/lua/gui.lua b/library/lua/gui.lua index 3156894d2..20d7526ef 100644 --- a/library/lua/gui.lua +++ b/library/lua/gui.lua @@ -259,6 +259,18 @@ BOUNDARY_FRAME = { signature_pen = { fg = COLOR_BLACK, bg = COLOR_DARKGREY }, } +GREY_LINE_FRAME = { + frame_pen = { ch = 206, fg = COLOR_GREY, bg = COLOR_BLACK }, + h_frame_pen = { ch = 205, fg = COLOR_GREY, bg = COLOR_BLACK }, + v_frame_pen = { ch = 186, fg = COLOR_GREY, bg = COLOR_BLACK }, + lt_frame_pen = { ch = 201, fg = COLOR_GREY, bg = COLOR_BLACK }, + lb_frame_pen = { ch = 200, fg = COLOR_GREY, bg = COLOR_BLACK }, + rt_frame_pen = { ch = 187, fg = COLOR_GREY, bg = COLOR_BLACK }, + rb_frame_pen = { ch = 188, fg = COLOR_GREY, bg = COLOR_BLACK }, + title_pen = { fg = COLOR_BLACK, bg = COLOR_GREY }, + signature_pen = { fg = COLOR_DARKGREY, bg = COLOR_BLACK }, +} + function paint_frame(x1,y1,x2,y2,style,title) local pen = style.frame_pen dscreen.paintTile(style.lt_frame_pen or pen, x1, y1) @@ -283,7 +295,7 @@ end FramedScreen = defclass(FramedScreen, Screen) -FramedScreen.frame_style = GREY_FRAME +FramedScreen.frame_style = BOUNDARY_FRAME local function hint_coord(gap,hint) if hint and hint > 0 then diff --git a/scripts/gui/hello-world.lua b/scripts/gui/hello-world.lua index 48f6675eb..b67e50124 100644 --- a/scripts/gui/hello-world.lua +++ b/scripts/gui/hello-world.lua @@ -5,6 +5,7 @@ local gui = require 'gui' local text = 'Woohoo, lua viewscreen :)' local screen = mkinstance(gui.FramedScreen, { + frame_style = gui.GREY_LINE_FRAME, frame_title = 'Hello World', frame_width = #text+6, frame_height = 3,