tui: Update conversation list category heading colour

This commit is contained in:
Matt Low 2024-04-03 07:06:25 +00:00
parent 69d3265b64
commit b06e031ee0
1 changed files with 3 additions and 4 deletions

View File

@ -209,7 +209,7 @@ func (m *conversationsModel) renderConversationList() string {
categoryStyle := lipgloss.NewStyle(). categoryStyle := lipgloss.NewStyle().
MarginBottom(1). MarginBottom(1).
Foreground(lipgloss.Color("170")). Foreground(lipgloss.Color("12")).
PaddingLeft(1). PaddingLeft(1).
Bold(true) Bold(true)
@ -248,7 +248,6 @@ func (m *conversationsModel) renderConversationList() string {
} }
tStyle := titleStyle.Copy() tStyle := titleStyle.Copy()
padding := " "
if c.conv.Title == "" { if c.conv.Title == "" {
tStyle = tStyle.Inherit(untitledStyle).SetString("(untitled)") tStyle = tStyle.Inherit(untitledStyle).SetString("(untitled)")
} }
@ -263,9 +262,9 @@ func (m *conversationsModel) renderConversationList() string {
m.itemOffsets[i] = currentOffset m.itemOffsets[i] = currentOffset
item := itemStyle.Render(fmt.Sprintf( item := itemStyle.Render(fmt.Sprintf(
"%s\n%s", "%s\n %s",
title, title,
padding+ageStyle.Render(util.HumanTimeElapsedSince(lastReplyAge)), ageStyle.Render(util.HumanTimeElapsedSince(lastReplyAge)),
)) ))
sb.WriteString(item) sb.WriteString(item)
currentOffset += height(item) currentOffset += height(item)