Skip to content

Commit

Permalink
Merge pull request #1585 from planetary-social/update-FlagViews-font
Browse files Browse the repository at this point in the history
Update flag views and NavigationBarTitle font
  • Loading branch information
pelumy authored Oct 4, 2024
2 parents 963ef98 + a273966 commit 909d57b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 deletions Nos/Views/Components/FlagOptionPicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ private struct FlagPickerRow: View {
VStack(alignment: .leading, spacing: 8) {
Text(flag.title)
.foregroundColor(.primaryTxt)
.font(.clarity(.regular))
.font(.body)

if let description = flag.description {
Text(description)
.foregroundColor(.secondaryTxt)
.font(.clarity(.regular, textStyle: .footnote))
.font(.footnote)
.lineSpacing(8)
.multilineTextAlignment(.leading)
.fixedSize(horizontal: false, vertical: true) // this enables the text view expand as needed
Expand All @@ -141,7 +141,7 @@ private struct FlagPickerRow: View {
VStack {
Text(text)
.foregroundColor(.primaryTxt)
.font(.clarity(.regular, textStyle: .subheadline))
.font(.subheadline)
.multilineTextAlignment(.leading)
.padding(EdgeInsets(
top: 13,
Expand All @@ -165,7 +165,8 @@ private struct HeaderView: View {
Text(text)
.lineSpacing(5)
.foregroundColor(.primaryTxt)
.font(.clarity(.bold))
.font(.headline)
.fontWeight(.semibold)
.padding(.bottom, 10)
}
}
Expand Down
3 changes: 2 additions & 1 deletion Nos/Views/Components/NosNavigationBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ struct NosNavigationBarModifier: ViewModifier {
.toolbar {
ToolbarItem(placement: .principal) {
Text(title)
.font(.clarity(.bold, textStyle: .title3))
.font(.title3)
.fontWeight(.bold)
.foregroundColor(.primaryTxt)
.tint(.primaryTxt)
.allowsHitTesting(false)
Expand Down
4 changes: 2 additions & 2 deletions Nos/Views/Moderation/FlagSuccessView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ struct FlagSuccessView: View {

Text(String(localized: .localizable.thanksForTag))
.foregroundColor(.primaryTxt)
.font(.clarity(.regular, textStyle: .title2))
.font(.title2)
.padding(.horizontal, 25)

Text(String(localized: .localizable.keepOnHelpingUs))
.padding(.horizontal, 25)
.foregroundColor(.secondaryTxt)
.multilineTextAlignment(.center)
.lineSpacing(6)
.font(.clarity(.regular, textStyle: .subheadline))
.font(.body)
}
}
}
Expand Down

0 comments on commit 909d57b

Please sign in to comment.