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

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)")
} }
@ -265,7 +264,7 @@ func (m *conversationsModel) renderConversationList() string {
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)