better startup

This commit is contained in:
kepler155c@gmail.com
2017-09-25 22:49:44 -04:00
parent ea56ac325b
commit 80f3ba1fb0
5 changed files with 82 additions and 21 deletions

View File

@@ -10,13 +10,24 @@ local function runDir(directory, desc, open)
table.sort(files)
for _,file in ipairs(files) do
--print(desc .. file)
os.sleep(0)
local result, err = open(directory .. '/' .. file)
if not result then
printError(err)
if result then
term.setTextColor(colors.green)
term.write('[PASS] ')
term.setTextColor(colors.white)
term.write(fs.combine(directory, file))
else
term.setTextColor(colors.red)
term.write('[FAIL] ')
term.setTextColor(colors.white)
term.write(fs.combine(directory, file))
if err then
printError(err)
end
success = false
end
print()
end
return success

View File

@@ -1500,7 +1500,7 @@ UI.Grid.defaults = {
textSelectedColor = colors.white,
backgroundColor = colors.black,
backgroundSelectedColor = colors.gray,
headerBackgroundColor = colors.blue,
headerBackgroundColor = colors.cyan,
headerTextColor = colors.white,
unfocusedTextSelectedColor = colors.white,
unfocusedBackgroundSelectedColor = colors.gray,
@@ -2032,7 +2032,7 @@ end
UI.ViewportWindow = class(UI.Window)
UI.ViewportWindow.defaults = {
UIElement = 'ViewportWindow',
backgroundColor = colors.blue,
backgroundColor = colors.cyan,
accelerators = {
down = 'scroll_down',
up = 'scroll_up',
@@ -2163,7 +2163,7 @@ UI.MenuBar.defaults = {
UIElement = 'MenuBar',
buttons = { },
height = 1,
backgroundColor = colors.lightBlue,
backgroundColor = colors.lightGray,
textColor = colors.black,
spacing = 2,
showBackButton = false,
@@ -2311,7 +2311,7 @@ end
UI.TabBar = class(UI.MenuBar)
UI.TabBar.defaults = {
UIElement = 'TabBar',
selectedBackgroundColor = colors.blue,
selectedBackgroundColor = colors.cyan,
focusBackgroundColor = colors.green,
}
function UI.TabBar:init(args)