Skip to content

Commit 2b86abb

Browse files
committed
Update the style of copy button
1 parent 53a5d3e commit 2b86abb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Tool/Sources/SharedUIComponents/CopyButton.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public struct CopyButton: View {
2222
}
2323
}
2424
}) {
25-
Image(systemName: isCopied ? "checkmark.circle" : "doc.on.doc")
25+
Image(systemName: isCopied ? "checkmark.circle.fill" : "doc.on.doc.fill")
2626
.resizable()
2727
.aspectRatio(contentMode: .fit)
2828
.frame(width: 14, height: 14)
@@ -32,6 +32,10 @@ public struct CopyButton: View {
3232
.regularMaterial,
3333
in: RoundedRectangle(cornerRadius: 4, style: .circular)
3434
)
35+
.background {
36+
RoundedRectangle(cornerRadius: 4, style: .circular)
37+
.fill(Color.primary.opacity(0.1))
38+
}
3539
.padding(4)
3640
}
3741
.buttonStyle(.borderless)

0 commit comments

Comments
 (0)