Skip to content

Commit 00cf697

Browse files
authored
fix: plain style background to use color clear
1 parent 22ea27e commit 00cf697

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Sources/BitcoinUI/ButtonStyles.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,11 @@ public struct BitcoinPlain: ButtonStyle {
199199
.font(Font.body.bold())
200200
.padding()
201201
.frame(width: width, height: height)
202-
.background(stateBackgroundColor())
202+
.background(Color.clear)
203203
.foregroundColor(stateTextColor())
204204
.scaleEffect(configuration.isPressed ? 0.95 : 1)
205205
.animation(.easeOut(duration: 0.1), value: configuration.isPressed)
206206
}
207-
private func stateBackgroundColor() -> Color {
208-
return colorScheme == .dark ? .bitcoinBlack : .bitcoinWhite
209-
}
210207
private func stateBorderColor(configuration: Configuration) -> Color {
211208
return isEnabled
212209
? configuration.isPressed ? tintColor.opacity(0.8) : tintColor : disabledColor

0 commit comments

Comments
 (0)