Skip to content

Commit

Permalink
Fix Plain style background, use .clear
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnordh committed Oct 7, 2024
1 parent 22ea27e commit 8b3aea4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Sources/BitcoinUI/ButtonStyles.swift
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,11 @@ public struct BitcoinPlain: ButtonStyle {
.font(Font.body.bold())
.padding()
.frame(width: width, height: height)
.background(stateBackgroundColor())
.background(Color.clear)
.foregroundColor(stateTextColor())
.scaleEffect(configuration.isPressed ? 0.95 : 1)
.animation(.easeOut(duration: 0.1), value: configuration.isPressed)
}
private func stateBackgroundColor() -> Color {
return colorScheme == .dark ? .bitcoinBlack : .bitcoinWhite
}
private func stateBorderColor(configuration: Configuration) -> Color {
return isEnabled
? configuration.isPressed ? tintColor.opacity(0.8) : tintColor : disabledColor
Expand Down

0 comments on commit 8b3aea4

Please sign in to comment.