mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[UPDATE] AppPillButton dimensions and expiration text
This commit is contained in:
@@ -25,7 +25,7 @@ struct PillButtonStyle: ButtonStyle {
|
||||
}
|
||||
.frame(minWidth: 40)
|
||||
.padding(.horizontal, 16)
|
||||
.padding(.vertical, 8)
|
||||
.padding(.vertical, 6)
|
||||
.background(background)
|
||||
.foregroundColor(self.progress == nil ? .white : Color(tintColor))
|
||||
.clipShape(Capsule())
|
||||
@@ -44,3 +44,16 @@ struct PillButtonStyle: ButtonStyle {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
struct PillButtonStyle_Previews: PreviewProvider {
|
||||
|
||||
static var previews: some View {
|
||||
SwiftUI.Button {
|
||||
|
||||
} label: {
|
||||
Text("Label").bold()
|
||||
}
|
||||
.buttonStyle(PillButtonStyle(tintColor: Asset.accentColor.color))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user