Fix background color for InputField

Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
moson-mo 2023-12-02 11:01:48 +01:00
parent 6d27cc1b14
commit b4533bdcc9
No known key found for this signature in database
GPG Key ID: 4A4760AB4EE15296
1 changed files with 1 additions and 0 deletions

View File

@ -248,6 +248,7 @@ func (i *InputField) SetAutocompleteStyles(background tcell.Color, main, selecte
// SetFormAttributes sets attributes shared by all form items. // SetFormAttributes sets attributes shared by all form items.
func (i *InputField) SetFormAttributes(labelWidth int, labelColor, bgColor, fieldTextColor, fieldBgColor tcell.Color) FormItem { func (i *InputField) SetFormAttributes(labelWidth int, labelColor, bgColor, fieldTextColor, fieldBgColor tcell.Color) FormItem {
i.backgroundColor = bgColor
i.textArea.SetFormAttributes(labelWidth, labelColor, bgColor, fieldTextColor, fieldBgColor) i.textArea.SetFormAttributes(labelWidth, labelColor, bgColor, fieldTextColor, fieldBgColor)
return i return i
} }