We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22ea27e commit 00cf697Copy full SHA for 00cf697
Sources/BitcoinUI/ButtonStyles.swift
@@ -199,14 +199,11 @@ public struct BitcoinPlain: ButtonStyle {
199
.font(Font.body.bold())
200
.padding()
201
.frame(width: width, height: height)
202
- .background(stateBackgroundColor())
+ .background(Color.clear)
203
.foregroundColor(stateTextColor())
204
.scaleEffect(configuration.isPressed ? 0.95 : 1)
205
.animation(.easeOut(duration: 0.1), value: configuration.isPressed)
206
}
207
- private func stateBackgroundColor() -> Color {
208
- return colorScheme == .dark ? .bitcoinBlack : .bitcoinWhite
209
- }
210
private func stateBorderColor(configuration: Configuration) -> Color {
211
return isEnabled
212
? configuration.isPressed ? tintColor.opacity(0.8) : tintColor : disabledColor
0 commit comments