adjust font size

pull/891/head
ryanzhao 2 years ago
parent f5e086dee1
commit e2856dfb97

@ -26,7 +26,7 @@ public struct SessionTextField: View {
ZStack(alignment: .topLeading) { ZStack(alignment: .topLeading) {
if text.isEmpty { if text.isEmpty {
Text(placeholder) Text(placeholder)
.font(.system(size: Values.mediumFontSize)) .font(.system(size: Values.smallFontSize))
.foregroundColor(themeColor: .textSecondary) .foregroundColor(themeColor: .textSecondary)
} }
@ -38,7 +38,7 @@ public struct SessionTextField: View {
} }
} }
) )
.font(.system(size: Values.mediumFontSize)) .font(.system(size: Values.smallFontSize))
.foregroundColor(themeColor: (error?.isEmpty == false) ? .danger : .textPrimary) .foregroundColor(themeColor: (error?.isEmpty == false) ? .danger : .textPrimary)
} }
.padding(.horizontal, Values.largeSpacing) .padding(.horizontal, Values.largeSpacing)
@ -59,7 +59,7 @@ public struct SessionTextField: View {
ZStack { ZStack {
Text(error ?? "") Text(error ?? "")
.bold() .bold()
.font(.system(size: Values.mediumFontSize)) .font(.system(size: Values.smallFontSize))
.foregroundColor(themeColor: .danger) .foregroundColor(themeColor: .danger)
.multilineTextAlignment(.center) .multilineTextAlignment(.center)
} }

Loading…
Cancel
Save