Browse Source

Set message input field background color as background color

ayn2op 3 năm trước cách đây
mục cha
commit
a8ecb13367
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      message_input.go

+ 1 - 2
message_input.go

@@ -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))