summaryrefslogtreecommitdiffhomepage
path: root/config/menus/settings.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/menus/settings.lua')
-rw-r--r--config/menus/settings.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/config/menus/settings.lua b/config/menus/settings.lua
index 96c12cd..59f9234 100644
--- a/config/menus/settings.lua
+++ b/config/menus/settings.lua
@@ -1,4 +1,4 @@
-local menu = ...
+local menu, background = ...
local Button = require "not.Button"
local Selector = require "not.Selector"
@@ -64,7 +64,12 @@ local controlreleased = function(self, set, action, key)
end
end
+if background == nil or not background:is(require "not.MenuBackground") then
+ background = require "not.MenuBackground"(menu)
+end
+
local a = {
+ background,
Button(menu)
:setText("Keyboard 1")
:setPosition(bx,80)
@@ -111,4 +116,4 @@ local a = {
dimmer
}
-return a \ No newline at end of file
+return a