package manager update + UI built-in extended char detection

This commit is contained in:
kepler155c@gmail.com
2019-03-26 00:31:25 -04:00
parent 3f9c219f6b
commit daa86d50b2
11 changed files with 57 additions and 71 deletions

View File

@@ -35,6 +35,8 @@ end
local Manager = class()
function Manager:init()
self.devices = { }
self.theme = { }
self.extChars = Util.getVersion() >= 1.76
local function keyFunction(event, code, held)
local ie = Input:translate(event, code, held)
@@ -1195,37 +1197,7 @@ local function loadComponents()
end
loadComponents()
UI.theme = { }
if Util.getVersion() >= 1.76 then
UI.theme = {
ScrollBar = {
lineChar = '|',
sliderChar = '\127',
upArrowChar = '\30',
downArrowChar = '\31',
},
Checkbox = {
checkedIndicator = '\4',
leftMarker = '\124',
rightMarker = '\124',
},
Chooser = {
leftIndicator = '\17',
rightIndicator = '\16',
},
Grid = {
focusIndicator = '\183',
inverseSortIndicator = '\24',
},
TitleBar = {
frameChar = '\140',
closeInd = '\215',
},
}
end
UI:loadTheme('usr/config/ui.theme')
UI:setDefaultDevice(UI.Device({ device = term.current() }))
return UI