Refactor LicensesView to use SettingsCard from Bedrock
This commit is contained in:
parent
845367fa87
commit
44512e923c
@ -38,6 +38,7 @@ struct LicensesView: View {
|
||||
}
|
||||
|
||||
private func licenseCard(name: String, url: String, license: String, description: String) -> some View {
|
||||
SettingsCard(backgroundColor: AppSurface.card, borderColor: AppBorder.subtle) {
|
||||
VStack(alignment: .leading, spacing: Design.Spacing.small) {
|
||||
Text(name)
|
||||
.font(.system(size: Design.BaseFontSize.medium, weight: .bold))
|
||||
@ -64,7 +65,6 @@ struct LicensesView: View {
|
||||
}
|
||||
.padding(.top, Design.Spacing.xSmall)
|
||||
}
|
||||
.padding(Design.Spacing.medium)
|
||||
.background(AppSurface.primary, in: RoundedRectangle(cornerRadius: Design.CornerRadius.medium))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user