aboutsummaryrefslogtreecommitdiff
path: root/Sources/NorgUI/Views/TreeNodesView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sources/NorgUI/Views/TreeNodesView.swift')
-rw-r--r--Sources/NorgUI/Views/TreeNodesView.swift4
1 files changed, 3 insertions, 1 deletions
diff --git a/Sources/NorgUI/Views/TreeNodesView.swift b/Sources/NorgUI/Views/TreeNodesView.swift
index a509138..a6df972 100644
--- a/Sources/NorgUI/Views/TreeNodesView.swift
+++ b/Sources/NorgUI/Views/TreeNodesView.swift
@@ -5,9 +5,11 @@ struct TreeNodesView: View {
let nodes: [NorgNode]
let onSetStatus: (Int, TaskStatus) -> Void
+ @Environment(\.norgTheme) private var theme
+
var body: some View {
let siblingOrdinals = ordinals(forSiblings: nodes)
- VStack(alignment: .leading, spacing: 10) {
+ VStack(alignment: .leading, spacing: theme.blockSpacing) {
ForEach(Array(nodes.enumerated()), id: \.offset) { index, node in
NodeView(node: node, ordinal: siblingOrdinals[index], onSetStatus: onSetStatus)
.id(node.block.line)