From d7fd0ddde36d593096bd286d99666ee8745c6466 Mon Sep 17 00:00:00 2001 From: James Mills Date: Sun, 20 Mar 2022 13:57:20 +1000 Subject: [PATCH] Improve the UX colors --- client.go | 5 ++--- tview.go | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client.go b/client.go index 0b54a4d..04b44e9 100644 --- a/client.go +++ b/client.go @@ -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) diff --git a/tview.go b/tview.go index 64ccb6f..a0592eb 100644 --- a/tview.go +++ b/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"]))