cell highlighting

This commit is contained in:
Ian Gulliver
2026-10-17 09:47:48 -07:00
parent e64200ac48
commit 3541abb1b1
7 changed files with 74 additions and 22 deletions
+3 -1
View File
@@ -60,6 +60,7 @@ extension MDMark {
case .ok: Palette.ok
case .warn: Palette.warn
case .danger: Palette.danger
case .muted: Palette.muted
}
}
@@ -68,6 +69,7 @@ extension MDMark {
case .ok: Palette.okTint
case .warn: Palette.warnTint
case .danger: Palette.dangerTint
case .muted: Palette.surface
}
}
}
@@ -676,7 +678,7 @@ private struct TableBlock: View {
}
private func tint(_ cell: [MDInline]) -> Color? {
guard cell.count == 1, case .mark(let mark, _) = cell[0] else {
guard case .mark(let mark, _) = cell.first else {
return nil
}
return mark.tint