From a64fc48d7654432f71922c8b908280cdb525805c Mon Sep 17 00:00:00 2001 From: Oliver <480930+rivo@users.noreply.github.com> Date: Sat, 21 Sep 2024 14:24:03 +0200 Subject: [PATCH] Temporary dropdown colour fix. Resolves #1026 --- dropdown.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dropdown.go b/dropdown.go index 3bef0ac..3808067 100644 --- a/dropdown.go +++ b/dropdown.go @@ -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) }