mirror of https://github.com/rivo/tview.git
Fix background color for InputField
Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
parent
6d27cc1b14
commit
b4533bdcc9
|
@ -248,6 +248,7 @@ func (i *InputField) SetAutocompleteStyles(background tcell.Color, main, selecte
|
|||
|
||||
// SetFormAttributes sets attributes shared by all form items.
|
||||
func (i *InputField) SetFormAttributes(labelWidth int, labelColor, bgColor, fieldTextColor, fieldBgColor tcell.Color) FormItem {
|
||||
i.backgroundColor = bgColor
|
||||
i.textArea.SetFormAttributes(labelWidth, labelColor, bgColor, fieldTextColor, fieldBgColor)
|
||||
return i
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue