mirror of
https://git.mills.io/saltyim/saltyim.git
synced 2024-06-29 18:21:06 +00:00
Improve the UX colors
This commit is contained in:
parent
ffcf845965
commit
d7fd0ddde3
@ -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)
|
||||
|
||||
|
1
tview.go
1
tview.go
@ -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"]))
|
||||
|
Loading…
Reference in New Issue
Block a user