From 3e69183f7863fd33e61fb640d341bb1c32f29bce Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Sat, 26 Oct 2024 00:38:29 +0200 Subject: [PATCH] Add vpad to keyboard --- itemcontroller.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/itemcontroller.lua b/itemcontroller.lua index 1e08d92..1966ea2 100644 --- a/itemcontroller.lua +++ b/itemcontroller.lua @@ -450,13 +450,14 @@ local PAGES = { }) end return List:new{ - bgColor = colors.cyan, + bgColor = KEYBOARD_BG_COLOR, [Orientation:getId()] = Orientation.HORIZONTAL, [Children:getId()] = keys } end local KEYBOARD_HPAD = 1 + local KEYBOARD_VPAD = 1 local keyboardWidth = KEYBOARD_HPAD * 2 for _,line in ipairs(keyboardLines.lines) do local keyLineList = charInputKeyList(line[1], line.backspace) @@ -473,7 +474,7 @@ local PAGES = { } table.insert(keyboardLines.elements, 1, paddedFilterText) - local keyboardList = Padding:new{ bgColor = KEYBOARD_BG_COLOR, left = KEYBOARD_HPAD, right = KEYBOARD_HPAD, element = List:new{ + local keyboardList = Padding:new{ bgColor = KEYBOARD_BG_COLOR, left = KEYBOARD_HPAD, right = KEYBOARD_HPAD, top = KEYBOARD_VPAD, bottom = KEYBOARD_VPAD, element = List:new{ bgColor = KEYBOARD_BG_COLOR, [Orientation:getId()] = Orientation.VERTICAL, [Children:getId()] = keyboardLines.elements