File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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) ,
You can’t perform that action at this time.
0 commit comments