ソースを参照

Change message InputField default placeholder background

ayntgl 4 年 前
コミット
3fe05ad40f
1 ファイル変更1 行追加0 行削除
  1. 1 0
      ui/views.go

+ 1 - 0
ui/views.go

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