Set message input field background color as background color

This commit is contained in:
ayn2op 2023-01-07 14:22:01 +05:30
parent 087e4391ed
commit a8ecb13367

View file

@ -20,9 +20,8 @@ func newMessageInput() *MessageInput {
InputField: tview.NewInputField(),
}
mi.SetFieldBackgroundColor(tview.Styles.PrimitiveBackgroundColor)
mi.SetInputCapture(mi.onInputCapture)
mi.SetFieldBackgroundColor(tcell.GetColor(cfg.Theme.MessageInput.BackgroundColor))
mi.SetBackgroundColor(tcell.GetColor(cfg.Theme.MessageInput.BackgroundColor))
mi.SetTitleColor(tcell.GetColor(cfg.Theme.MessageInput.TitleColor))