diff --git a/SelfieCam/Features/Settings/LicensesView.swift b/SelfieCam/Features/Settings/LicensesView.swift index 33a7397..ca5fb61 100644 --- a/SelfieCam/Features/Settings/LicensesView.swift +++ b/SelfieCam/Features/Settings/LicensesView.swift @@ -38,33 +38,33 @@ struct LicensesView: View { } private func licenseCard(name: String, url: String, license: String, description: String) -> some View { - VStack(alignment: .leading, spacing: Design.Spacing.small) { - Text(name) - .font(.system(size: Design.BaseFontSize.medium, weight: .bold)) - .foregroundStyle(.white) + SettingsCard(backgroundColor: AppSurface.card, borderColor: AppBorder.subtle) { + VStack(alignment: .leading, spacing: Design.Spacing.small) { + Text(name) + .font(.system(size: Design.BaseFontSize.medium, weight: .bold)) + .foregroundStyle(.white) - Text(description) - .font(.system(size: Design.BaseFontSize.caption)) - .foregroundStyle(.white.opacity(Design.Opacity.strong)) + Text(description) + .font(.system(size: Design.BaseFontSize.caption)) + .foregroundStyle(.white.opacity(Design.Opacity.strong)) - HStack { - Label(license, systemImage: "doc.text") - .font(.system(size: Design.BaseFontSize.xSmall)) - .foregroundStyle(AppAccent.primary) + HStack { + Label(license, systemImage: "doc.text") + .font(.system(size: Design.BaseFontSize.xSmall)) + .foregroundStyle(AppAccent.primary) - Spacer() + Spacer() - if let linkURL = URL(string: url) { - Link(destination: linkURL) { - Label(String(localized: "View on GitHub"), systemImage: "arrow.up.right.square") - .font(.system(size: Design.BaseFontSize.xSmall)) - .foregroundStyle(AppAccent.primary) + if let linkURL = URL(string: url) { + Link(destination: linkURL) { + Label(String(localized: "View on GitHub"), systemImage: "arrow.up.right.square") + .font(.system(size: Design.BaseFontSize.xSmall)) + .foregroundStyle(AppAccent.primary) + } } } + .padding(.top, Design.Spacing.xSmall) } - .padding(.top, Design.Spacing.xSmall) } - .padding(Design.Spacing.medium) - .background(AppSurface.primary, in: RoundedRectangle(cornerRadius: Design.CornerRadius.medium)) } }