mirror of
https://github.com/kepler155c/opus
synced 2024-06-18 11:20:01 +00:00
1.79+ theme
This commit is contained in:
parent
558d271ae0
commit
7954c79d66
|
@ -46,13 +46,12 @@ process:newThread('telnet_read', function()
|
||||||
ct[v.f](unpack(v.args))
|
ct[v.f](unpack(v.args))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
print('telnet_read exiting')
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
ct.clear()
|
ct.clear()
|
||||||
ct.setCursorPos(1, 1)
|
ct.setCursorPos(1, 1)
|
||||||
|
|
||||||
local filter = Util.invert({
|
local filter = Util.transpose({
|
||||||
'char', 'paste', 'key', 'key_up', 'mouse_scroll', 'mouse_click', 'mouse_drag',
|
'char', 'paste', 'key', 'key_up', 'mouse_scroll', 'mouse_click', 'mouse_drag',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -3323,7 +3323,7 @@ end
|
||||||
|
|
||||||
UI:loadTheme('config/ui.theme')
|
UI:loadTheme('config/ui.theme')
|
||||||
if os.getVersion() >= 1.79 then
|
if os.getVersion() >= 1.79 then
|
||||||
UI:loadTheme('config/ext.theme')
|
UI:loadTheme('sys/etc/ext.theme')
|
||||||
end
|
end
|
||||||
|
|
||||||
UI:setDefaultDevice(UI.Device({ device = term.current() }))
|
UI:setDefaultDevice(UI.Device({ device = term.current() }))
|
||||||
|
|
|
@ -118,14 +118,6 @@ function Util.keys(t)
|
||||||
return keys
|
return keys
|
||||||
end
|
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)
|
function Util.merge(obj, args)
|
||||||
if args then
|
if args then
|
||||||
for k,v in pairs(args) do
|
for k,v in pairs(args) do
|
||||||
|
|
15
sys/etc/ext.theme
Normal file
15
sys/etc/ext.theme
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
ScrollingGrid = {
|
||||||
|
lineChar = '|',
|
||||||
|
sliderChar = '\127',
|
||||||
|
upArrowChar = '\30',
|
||||||
|
downArrowChar = '\31',
|
||||||
|
},
|
||||||
|
Button = {
|
||||||
|
focusIndicator = '\183',
|
||||||
|
},
|
||||||
|
Grid = {
|
||||||
|
focusIndicator = '\183',
|
||||||
|
inverseSortIndicator = '\24',
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user