aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/widget/tree.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/gui/widget/tree.go b/gui/widget/tree.go
index 633d440..9e4af13 100644
--- a/gui/widget/tree.go
+++ b/gui/widget/tree.go
@@ -9,8 +9,6 @@ import (
"volute/gui/layout"
)
-const INDENT = 2
-
type Node[T any] struct {
Label string
Value T
@@ -53,7 +51,7 @@ func Tree[T any](trees []Node[T], r image.Rectangle, focus FocusSlave, mux *gui.
func flatten[T any](root Node[T], depth int) []string {
indent := string(populate(
- make([]rune, INDENT*depth),
+ make([]rune, depth),
'─'))
nodes := []string{indent + root.Label}
root.expanded = true // TODO: remove me