Don't dim the search entry when blurring the search field

This commit is contained in:
Christian Rocha 2020-11-11 16:14:51 -05:00 committed by Christian Rocha
parent 759b8707f8
commit 7b7a398c74

View file

@ -794,10 +794,7 @@ func stashView(m stashModel) string {
logoOrSearch := glowLogoView(" Glow ")
// If we're filtering we replace the logo with the search field
if m.state == stashStateSearchNotes {
logoOrSearch = textinput.View(m.searchInput)
} else if m.state == stashStateShowFiltered {
m.searchInput.TextColor = m.searchInput.PlaceholderColor
if m.state == stashStateSearchNotes || m.state == stashStateShowFiltered {
logoOrSearch = textinput.View(m.searchInput)
}