Compound Fonts (#834)

* Use CompoundFonts in DesignKit (deprecate ElementFonts).

* Use compound fonts everywhere.

* Update Authentication snapshots.

* Update RoomMembersListScreen snapshots.

Delete unused snapshots.

* Fix tests.
This commit is contained in:
Doug
2023-04-25 16:42:06 +01:00
committed by GitHub
parent 832fcf19f3
commit 1109eaff79
100 changed files with 185 additions and 178 deletions

View File

@@ -45,7 +45,7 @@ struct TemplateScreen: View {
var mainContent: some View {
VStack(spacing: 36) {
Text(context.viewState.promptType.title)
.font(.element.title2Bold)
.font(.compound.headingMDBold)
.multilineTextAlignment(.center)
.foregroundColor(.element.primaryContent)
.accessibilityIdentifier("title")
@@ -57,7 +57,7 @@ struct TemplateScreen: View {
HStack {
Text("Counter: \(context.viewState.count)")
.font(.element.body)
.font(.compound.bodyLG)
.multilineTextAlignment(.center)
.foregroundColor(counterColor)