Skip to content

Commit df5ea5b

Browse files
committed
ui
1 parent 1246f05 commit df5ea5b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Sources/TextDiff/TextDiffView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ public struct TextDiffView: View {
4848
.frame(width: 500)
4949
}
5050

51-
#Preview("Custom Style") {
51+
#Preview("TextDiffView") {
5252
let style = TextDiffStyle(
53-
additionFillColor: NSColor.systemGreen.withAlphaComponent(0.28),
54-
additionStrokeColor: NSColor.systemGreen.withAlphaComponent(0.75),
53+
additionFillColor: .systemGreen.withAlphaComponent(0.28),
54+
additionStrokeColor: .systemGreen.withAlphaComponent(0.75),
5555
additionTextColorOverride: .labelColor,
56-
deletionFillColor: NSColor.systemRed.withAlphaComponent(0.24),
57-
deletionStrokeColor: NSColor.systemRed.withAlphaComponent(0.75),
56+
deletionFillColor: .systemRed.withAlphaComponent(0.24),
57+
deletionStrokeColor: .systemRed.withAlphaComponent(0.75),
5858
deletionTextColorOverride: .secondaryLabelColor,
5959
unchangedTextColor: .labelColor,
6060
font: .systemFont(ofSize: 16, weight: .regular),

0 commit comments

Comments
 (0)