6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-06-27 09:18:22 +00:00

Improve the UX colors

This commit is contained in:
James Mills 2022-03-20 13:57:20 +10:00
parent ffcf845965
commit d7fd0ddde3
2 changed files with 3 additions and 3 deletions

@ -59,11 +59,10 @@ func NewChatClient(key *keys.EdX25519Key, uri string, me Addr, inbox, user strin
config: config,
palette: map[string]string{
"background": "C5C3C6",
"background": "000000",
"border": "4C5C68",
"title": "46494C",
"date": "E76F51",
"name": "1985A1",
"text": "577399",
},
}, nil
@ -135,7 +134,7 @@ func (cc *chatClient) SetScreen(inCh <-chan string, outCh chan<- string) {
// Layout the widgets in flex view.
flex := tview.NewFlex().SetDirection(tview.FlexRow).
AddItem(chatBox, 0, 1, false).
AddItem(inputField, 3, 0, false)
AddItem(inputField, 3, 0, true)
go cc.updateChatBox(inCh, app, chatBox)

@ -55,6 +55,7 @@ func NewChatInput(palette map[string]string, handler InputHandler) *tview.InputF
chatInput.SetText("")
}
}).
SetLabel(">>> ").
SetBorder(true).
SetBorderColor(hexToTCell(palette["border"])).
SetBackgroundColor(hexToTCell(palette["background"]))