1.79+ theme

This commit is contained in:
kepler155c@gmail.com 2017-05-20 03:43:19 -04:00
parent 558d271ae0
commit 7954c79d66
4 changed files with 17 additions and 11 deletions

View File

@ -46,13 +46,12 @@ process:newThread('telnet_read', function()
ct[v.f](unpack(v.args))
end
end
print('telnet_read exiting')
end)
ct.clear()
ct.setCursorPos(1, 1)
local filter = Util.invert({
local filter = Util.transpose({
'char', 'paste', 'key', 'key_up', 'mouse_scroll', 'mouse_click', 'mouse_drag',
})

View File

@ -3323,7 +3323,7 @@ end
UI:loadTheme('config/ui.theme')
if os.getVersion() >= 1.79 then
UI:loadTheme('config/ext.theme')
UI:loadTheme('sys/etc/ext.theme')
end
UI:setDefaultDevice(UI.Device({ device = term.current() }))

View File

@ -118,14 +118,6 @@ function Util.keys(t)
return keys
end
function Util.invert(t)
local nt = { }
for k,v in pairs(t) do
nt[v] = k
end
return nt
end
function Util.merge(obj, args)
if args then
for k,v in pairs(args) do

15
sys/etc/ext.theme Normal file
View File

@ -0,0 +1,15 @@
{
ScrollingGrid = {
lineChar = '|',
sliderChar = '\127',
upArrowChar = '\30',
downArrowChar = '\31',
},
Button = {
focusIndicator = '\183',
},
Grid = {
focusIndicator = '\183',
inverseSortIndicator = '\24',
},
}