Change summary
ui/pages/selection/item.go | 6 +-----
ui/styles/styles.go | 3 +--
2 files changed, 2 insertions(+), 7 deletions(-)
Detailed changes
@@ -122,12 +122,8 @@ func (d ItemDelegate) Render(w io.Writer, m list.Model, index int, listItem list
}
if isFiltered {
- unmatched := lipgloss.NewStyle().Inline(true)
+ unmatched := styles.Title.Copy().Inline(true)
matched := unmatched.Copy().Underline(true)
- if isSelected {
- unmatched = unmatched.Bold(true)
- matched = matched.Bold(true)
- }
title = lipgloss.StyleRunes(title, matchedRunes, matched, unmatched)
}
title = styles.Title.Render(title)
@@ -192,8 +192,7 @@ func DefaultStyles() *Styles {
BorderForeground(lipgloss.Color("212"))
s.RepoSelector.Active.Title = s.RepoSelector.Normal.Title.Copy().
- Foreground(lipgloss.Color("212")).
- Bold(true)
+ Foreground(lipgloss.Color("212"))
s.RepoSelector.Active.Desc = s.RepoSelector.Normal.Desc.Copy().
Foreground(lipgloss.Color("246"))