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
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