Change message InputField default placeholder background

This commit is contained in:
ayntgl 2022-01-23 22:30:09 +04:00
parent c3e572b8ce
commit 3fe05ad40f

View file

@ -46,6 +46,7 @@ func NewMainFlex(app *App) *tview.Flex {
app.MessageInputField.
SetPlaceholder("Message...").
SetFieldBackgroundColor(tview.Styles.PrimitiveBackgroundColor).
SetPlaceholderStyle(tcell.StyleDefault.Background(tview.Styles.PrimitiveBackgroundColor)).
SetInputCapture(func(e *tcell.EventKey) *tcell.EventKey {
return onMessageInputFieldInputCapture(app, e)
}).