Pad keyboard horizontal borders

This commit is contained in:
Gabriel Tofvesson 2024-10-12 18:17:31 +02:00
parent b12510a4ac
commit e9a68f4614

View File

@ -539,7 +539,8 @@ local PAGES = {
}
end
local keyboardWidth = 0
local KEYBOARD_HPAD = 1
local keyboardWidth = KEYBOARD_HPAD * 2
for _,line in ipairs(keyboardLines.lines) do
local keyLineList = charInputKeyList(line[1], line.backspace)
keyboardWidth = math.max(keyboardWidth, keyLineList:getWidth())
@ -548,10 +549,10 @@ local PAGES = {
table.insert(keyboardLines, 1, Text:new{ id = ID_FILTER_DISPLAY, text = "" })
local keyboardList = List:new{
local keyboardList = Padding:new{ bgColor = colors.black, left = KEYBOARD_HPAD, right = KEYBOARD_HPAD, element = List:new{
[Orientation:getId()] = Orientation.Vertical,
[Children:getId()] = keyboardLines
}
}}
local screenContainer = Container:new{
[Children:getId()] = {