Skip to content

Commit

Permalink
chore: adjust conversation listing colors
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Sep 20, 2023
1 parent 9e279c6 commit 635eeea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ func listConversations() error {
fmt.Fprintf(
os.Stdout,
"%s %s %s %s\n",
stdoutStyles().Comment.Render("•"),
stdoutStyles().Bullet,
stdoutStyles().SHA1.Render(conversation.ID[:sha1short]),
conversation.Title,
stdoutStyles().Timeago.Render(timeago.Of(conversation.UpdatedAt)),
Expand Down
4 changes: 3 additions & 1 deletion styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type styles struct {
Pipe,
Quote,
SHA1,
Bullet,
Timeago lipgloss.Style
}

Expand All @@ -37,7 +38,8 @@ func makeStyles(r *lipgloss.Renderer) (s styles) {
s.Link = r.NewStyle().Foreground(lipgloss.Color("#00AF87")).Underline(true)
s.Quote = r.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "#FF71D0", Dark: "#FF78D2"})
s.Pipe = r.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "#8470FF", Dark: "#745CFF"})
s.SHA1 = r.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "#5DD6C0", Dark: "#427C72"})
s.SHA1 = r.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "#00B594", Dark: "#11d4b1"}).Bold(true)
s.Bullet = r.NewStyle().SetString("•").Foreground(lipgloss.AdaptiveColor{Light: "#757575", Dark: "#777"})
s.Timeago = r.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "#999", Dark: "#555"})
return s
}

0 comments on commit 635eeea

Please sign in to comment.