소스 검색

Set message input field background color as background color

ayn2op 3 년 전
부모
커밋
a8ecb13367
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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))