mirror of
https://github.com/rivo/tview.git
synced 2024-11-11 01:10:41 +00:00
Temporary dropdown colour fix. Resolves #1026
This commit is contained in:
parent
1ad6daede2
commit
a64fc48d76
@ -380,9 +380,6 @@ func (d *DropDown) Draw(screen tcell.Screen) {
|
||||
fieldWidth = rightLimit - x
|
||||
}
|
||||
fieldStyle := tcell.StyleDefault.Background(d.fieldBackgroundColor)
|
||||
if d.HasFocus() && !d.open {
|
||||
fieldStyle = fieldStyle.Background(d.fieldTextColor)
|
||||
}
|
||||
if d.disabled {
|
||||
fieldStyle = fieldStyle.Background(d.backgroundColor)
|
||||
}
|
||||
@ -408,9 +405,6 @@ func (d *DropDown) Draw(screen tcell.Screen) {
|
||||
text = d.currentOptionPrefix + d.options[d.currentOption].Text + d.currentOptionSuffix
|
||||
}
|
||||
// Just show the current selection.
|
||||
if d.HasFocus() && !d.open && !d.disabled {
|
||||
color = d.fieldBackgroundColor
|
||||
}
|
||||
Print(screen, text, x, y, fieldWidth, AlignLeft, color)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user