diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2026-06-21 19:35:23 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2026-06-21 19:36:16 +0200 |
| commit | ab1d7a447c87509136edfff2202ef2c012a4c11a (patch) | |
| tree | 3833883298a0c5faaf32966d3ba7e70fc10fa260 /Sources/NorgUI/Views/Blocks/ListItemView.swift | |
| parent | 49b0f4a3fb0064313d16782839865b763ef760ce (diff) | |
Update list styles1.2.1
Diffstat (limited to 'Sources/NorgUI/Views/Blocks/ListItemView.swift')
| -rw-r--r-- | Sources/NorgUI/Views/Blocks/ListItemView.swift | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Sources/NorgUI/Views/Blocks/ListItemView.swift b/Sources/NorgUI/Views/Blocks/ListItemView.swift index ffff2eb..3429a42 100644 --- a/Sources/NorgUI/Views/Blocks/ListItemView.swift +++ b/Sources/NorgUI/Views/Blocks/ListItemView.swift @@ -5,6 +5,7 @@ struct ListItemView: View { @Environment(\.norgTheme) private var theme let marker: String + let showsMarkerWithTask: Bool let status: TaskStatus? let content: [InlineSpan] let line: Int @@ -13,6 +14,11 @@ struct ListItemView: View { var body: some View { HStack(alignment: .firstTextBaseline, spacing: 8) { if let status { + if showsMarkerWithTask { + Text(marker) + .foregroundStyle(.secondary) + .monospacedDigit() + } BlockTaskRow( status: status, content: content, font: theme.body, line: line, onSetStatus: onSetStatus ) |