Add vpad to keyboard

This commit is contained in:
Gabriel Tofvesson 2024-10-26 00:38:29 +02:00
parent da7bbe21c2
commit 3e69183f78

View File

@ -450,13 +450,14 @@ local PAGES = {
}) })
end end
return List:new{ return List:new{
bgColor = colors.cyan, bgColor = KEYBOARD_BG_COLOR,
[Orientation:getId()] = Orientation.HORIZONTAL, [Orientation:getId()] = Orientation.HORIZONTAL,
[Children:getId()] = keys [Children:getId()] = keys
} }
end end
local KEYBOARD_HPAD = 1 local KEYBOARD_HPAD = 1
local KEYBOARD_VPAD = 1
local keyboardWidth = KEYBOARD_HPAD * 2 local keyboardWidth = KEYBOARD_HPAD * 2
for _,line in ipairs(keyboardLines.lines) do for _,line in ipairs(keyboardLines.lines) do
local keyLineList = charInputKeyList(line[1], line.backspace) local keyLineList = charInputKeyList(line[1], line.backspace)
@ -473,7 +474,7 @@ local PAGES = {
} }
table.insert(keyboardLines.elements, 1, paddedFilterText) 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, bgColor = KEYBOARD_BG_COLOR,
[Orientation:getId()] = Orientation.VERTICAL, [Orientation:getId()] = Orientation.VERTICAL,
[Children:getId()] = keyboardLines.elements [Children:getId()] = keyboardLines.elements