Skip to content

Commit

Permalink
chore(tree): remove unused styles from ExampleLeaf_SetValue
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbunni committed Jan 10, 2025
1 parent 8cd37f1 commit 78bd2da
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tree/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package tree_test
import (
"fmt"

"github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/lipgloss/tree"
"github.com/charmbracelet/x/ansi"
)
Expand Down Expand Up @@ -69,10 +68,6 @@ func ExampleNewLeaf() {
}

func ExampleLeaf_SetValue() {
enumeratorStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("63")).MarginRight(1)
rootStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("35"))
itemStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("212"))

t := tree.
Root("⁜ Makeup").
Child(
Expand All @@ -86,10 +81,7 @@ func ExampleLeaf_SetValue() {
"Mac",
"Milk",
).
Enumerator(tree.RoundedEnumerator).
EnumeratorStyle(enumeratorStyle).
RootStyle(rootStyle).
ItemStyle(itemStyle)
Enumerator(tree.RoundedEnumerator)
glossier := t.Children().At(0)
glossier.SetValue("Il Makiage")
fmt.Println(ansi.Strip(t.String()))
Expand Down

0 comments on commit 78bd2da

Please sign in to comment.