Skip to content

Commit

Permalink
Merge Transifex and font sizes
Browse files Browse the repository at this point in the history
Merge remote-tracking branch 'origin/main' into release/1.1.0
  • Loading branch information
natlibfi-psams committed Sep 9, 2024
2 parents 3f2fa0f + f99583e commit 2396cce
Show file tree
Hide file tree
Showing 3 changed files with 340 additions and 36 deletions.
8 changes: 7 additions & 1 deletion Palace/Settings/NewSettings/DependentsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ struct DependentsView: View {
} header: {
HStack{
Text(tsx.dependents)
.font(Font(uiFont: UIFont.palaceFont(ofSize: 16)))
Spacer()
.aspectRatio(contentMode: .fit)
.frame(width: 200)
Expand All @@ -98,6 +99,7 @@ struct DependentsView: View {
} label: {
HStack{
Text(tsx.getDependents)
.font(Font(uiFont: UIFont.palaceFont(ofSize: 16)))
Spacer()
Image("ArrowRight")
.padding(.leading, 10)
Expand All @@ -116,6 +118,7 @@ struct DependentsView: View {
// If the user doesn't have any dependents, inform them
if fetchedDependents.isEmpty {
Text(tsx.noDependents).tag(tsx.noDependents)
.font(Font(uiFont: UIFont.palaceFont(ofSize: 16)))
.padding()

// If a list of dependents is returned, show them in a picker
Expand All @@ -135,6 +138,7 @@ struct DependentsView: View {
.alert(isPresented: $showAlert) {
Alert(title: Text(tsxgeneric.error), message: Text(alertMessage), dismissButton: .default(Text(tsxgeneric.ok)))
}
.font(Font(uiFont: UIFont.palaceFont(ofSize: 16)))
}
}
}
Expand All @@ -144,10 +148,11 @@ struct DependentsView: View {
VStack {
Text(tsx.guideText)
.foregroundStyle(Color(uiColor: .lightGray))
.font(.subheadline)
.font(Font(uiFont: UIFont.palaceFont(ofSize: 16)))
.padding()
.frame(maxWidth: .infinity, alignment: .leading)
TextField(tsx.enterEmail, text: $inputEmail)
.font(Font(uiFont: UIFont.palaceFont(ofSize: 16)))
.padding()
.border(Color(uiColor: .lightGray), width: 1)
.cornerRadius(3)
Expand All @@ -162,6 +167,7 @@ struct DependentsView: View {
} label: {
HStack {
Text(tsx.sendButton)
.font(Font(uiFont: UIFont.palaceFont(ofSize: 16)))
Image("ArrowRight")
.padding(.leading, 10)
.foregroundColor(Color(uiColor: .lightGray))
Expand Down
1 change: 1 addition & 0 deletions Palace/Settings/NewSettings/TPPSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ struct TPPSettingsView: View {
DependentsView()){
Text(DisplayStrings.dependentsButton)
}
.font(Font(uiFont: UIFont.palaceFont(ofSize: 16)))
}
}

Expand Down
Loading

0 comments on commit 2396cce

Please sign in to comment.