PWD-1: revert button changes
This commit is contained in:
parent
4887f42b1f
commit
bb4cb2a0d3
1 changed files with 14 additions and 11 deletions
|
@ -17,19 +17,22 @@ struct PwdButton<Label: View>: View {
|
|||
var action: () -> Void
|
||||
|
||||
var body: some View {
|
||||
Button(action: action) {
|
||||
HStack{
|
||||
label
|
||||
}
|
||||
.buttonStyle(PlainButtonStyle())
|
||||
.padding(size.padding)
|
||||
.background(variant.backgroundColor(colorScheme))
|
||||
.foregroundColor(variant.foregroundColor(colorScheme))
|
||||
.font(size.font)
|
||||
.cornerRadius(size.cornerRadius)
|
||||
.overlay(
|
||||
RoundedRectangle(cornerRadius: size.cornerRadius)
|
||||
.stroke(variant.borderColor(colorScheme), lineWidth: variant.borderWidth)
|
||||
)
|
||||
.buttonStyle(PlainButtonStyle())
|
||||
.padding(size.padding)
|
||||
.background(variant.backgroundColor(colorScheme))
|
||||
.foregroundColor(variant.foregroundColor(colorScheme))
|
||||
.font(size.font)
|
||||
.cornerRadius(size.cornerRadius)
|
||||
.overlay(
|
||||
RoundedRectangle(cornerRadius: size.cornerRadius)
|
||||
.stroke(variant.borderColor(colorScheme), lineWidth: variant.borderWidth)
|
||||
)
|
||||
.onTapGesture {
|
||||
action()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue