DesignKit: Update fonts to match Figma.

This commit is contained in:
Doug
2022-09-14 19:43:08 +01:00
committed by Doug
parent b30712b931
commit 252b52afbf
10 changed files with 88 additions and 118 deletions
@@ -68,7 +68,7 @@ struct AnalyticsPrompt: View {
.padding(.bottom, 25)
Text(ElementL10n.analyticsOptInTitle(ElementInfoPlist.cfBundleName))
.font(.element.title2B)
.font(.element.title2Bold)
.multilineTextAlignment(.center)
.foregroundColor(.element.primaryContent)
.padding(.bottom, 2)
@@ -104,14 +104,14 @@ struct AnalyticsPrompt: View {
VStack {
Button { context.send(viewAction: .enable) } label: {
Text(ElementL10n.actionEnable)
.font(.element.bodySB)
.font(.element.bodyBold)
}
.buttonStyle(.elementAction(.xLarge))
.accessibilityIdentifier("enableButton")
Button { context.send(viewAction: .disable) } label: {
Text(ElementL10n.actionNotNow)
.font(.element.bodySB)
.font(.element.bodyBold)
.padding(12)
}
.accessibilityIdentifier("disableButton")
@@ -65,7 +65,7 @@ struct LoginScreen: View {
/// The header containing a Welcome Back title.
var header: some View {
Text(ElementL10n.authenticationLoginTitle)
.font(.element.title2B)
.font(.element.title2Bold)
.multilineTextAlignment(.center)
.foregroundColor(.element.primaryContent)
}
@@ -53,7 +53,7 @@ struct ServerSelectionScreen: View {
.padding(.bottom, 8)
Text(ElementL10n.serverSelectionTitle)
.font(.element.title2B)
.font(.element.title2Bold)
.multilineTextAlignment(.center)
.foregroundColor(.element.primaryContent)
@@ -39,7 +39,7 @@ struct SplashScreenPageView: View {
VStack(spacing: 8) {
Text(content.title)
.font(.element.title2B)
.font(.element.title2Bold)
.foregroundColor(.element.primaryContent)
Text(content.message)
.font(.element.body)