1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-23 11:47:39 +00:00

better colors

This commit is contained in:
kepler155c@gmail.com
2017-09-28 18:52:57 -04:00
parent 2af6f098c8
commit 9cb7180f10
8 changed files with 62 additions and 30 deletions

View File

@@ -27,7 +27,6 @@ local page = UI.Page({
prompt = UI.TextEntry({
y = 2,
shadowText = 'enter command',
backgroundFocusColor = colors.black,
limit = 256,
accelerators = {
enter = 'command_enter',

View File

@@ -254,6 +254,7 @@ function page.container:setCategory(categoryName)
y = 4,
text = title,
backgroundColor = self.backgroundColor,
--backgroundFocusColor = colors.gray,
width = #title + 2,
event = 'button',
app = program,
@@ -414,7 +415,7 @@ function page:eventHandler(event)
return true
end
local formWidth = math.max(UI.term.width - 14, 26)
local formWidth = math.max(UI.term.width - 8, 26)
local editor = UI.Dialog {
height = 11,

View File

@@ -15,10 +15,7 @@ local env = {
}
Config.load('shell', env)
UI.TextEntry.defaults.backgroundFocusColor = colors.black
local systemPage = UI.Page {
backgroundColor = colors.cyan,
tabs = UI.Tabs {
pathTab = UI.Window {
tabTitle = 'Path',
@@ -80,7 +77,6 @@ local systemPage = UI.Page {
x = 9, y = 2, rex = -4,
limit = 32,
value = os.getComputerLabel(),
backgroundFocusColor = colors.black,
accelerators = {
enter = 'update_label',
},
@@ -97,7 +93,6 @@ local systemPage = UI.Page {
{ name = 'Day', value = tostring(os.day()) },
},
selectable = false,
--backgroundColor = colors.blue,
columns = {
{ key = 'name', width = 12 },
{ key = 'value', width = UI.term.width - 15 },

View File

@@ -114,7 +114,7 @@ local function draw()
parentTerm.setTextColor(_colors.focusTextColor)
parentTerm.setBackgroundColor(_colors.backgroundColor)
parentTerm.setCursorPos( w, 1 )
parentTerm.write('*')
parentTerm.write('\215')
end
if currentTab then