Pārlūkot izejas kodu

Change message InputField default placeholder background

ayntgl 4 gadi atpakaļ
vecāks
revīzija
3fe05ad40f
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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)
 		}).