Skip to content

Commit

Permalink
chore(tree): improve var names in rounded example
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed May 22, 2024
1 parent ca29a10 commit 9f80573
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/tree/rounded/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
)

func main() {
pink := lipgloss.NewStyle().MarginRight(1)
gray := lipgloss.NewStyle().Foreground(lipgloss.Color("8")).MarginRight(1)
itemStyle := lipgloss.NewStyle().MarginRight(1)
enumeratorStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("8")).MarginRight(1)

t := tree.New().
Root("Groceries").
Expand All @@ -35,7 +35,7 @@ func main() {
"Leek",
"Artichoke",
),
).ItemStyle(pink).EnumeratorStyle(gray).Enumerator(tree.RoundedEnumerator)
).ItemStyle(itemStyle).EnumeratorStyle(enumeratorStyle).Enumerator(tree.RoundedEnumerator)

fmt.Println(t)
}

0 comments on commit 9f80573

Please sign in to comment.