mirror of
https://github.com/kepler155c/opus
synced 2024-12-31 19:00:27 +00:00
ui built in theme for ext chars
This commit is contained in:
parent
235e8d11de
commit
7bab4e5bf5
@ -213,7 +213,7 @@ function Manager:loadTheme(filename)
|
||||
if not theme then
|
||||
error(err)
|
||||
end
|
||||
self.theme = theme
|
||||
Util.deepMerge(self.theme, theme)
|
||||
end
|
||||
end
|
||||
|
||||
@ -1197,10 +1197,34 @@ end
|
||||
loadComponents()
|
||||
|
||||
UI.theme = { }
|
||||
UI:loadTheme('usr/config/ui.theme')
|
||||
if Util.getVersion() >= 1.76 then
|
||||
UI:loadTheme('sys/etc/ext.theme')
|
||||
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() }))
|
||||
|
||||
|
@ -72,7 +72,7 @@ function UI.Form:createForm()
|
||||
value = child.formLabel,
|
||||
})
|
||||
end
|
||||
if child.formKey or child.formLabel then
|
||||
if child.formLabel then
|
||||
y = y + 1
|
||||
end
|
||||
end
|
||||
|
@ -1,28 +0,0 @@
|
||||
{
|
||||
ScrollBar = {
|
||||
lineChar = '|',
|
||||
sliderChar = '\127',
|
||||
upArrowChar = '\30',
|
||||
downArrowChar = '\31',
|
||||
},
|
||||
Button = {
|
||||
--focusIndicator = '\183',
|
||||
},
|
||||
Checkbox = {
|
||||
checkedIndicator = '\4',
|
||||
leftMarker = '\124',
|
||||
rightMarker = '\124',
|
||||
},
|
||||
Chooser = {
|
||||
leftIndicator = '\17',
|
||||
rightIndicator = '\16',
|
||||
},
|
||||
Grid = {
|
||||
focusIndicator = '\183',
|
||||
inverseSortIndicator = '\24',
|
||||
},
|
||||
TitleBar = {
|
||||
frameChar = '\140',
|
||||
closeInd = '\215',
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue
Block a user