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 8b36e0faa5
commit 5bb2ceedf4
100 changed files with 185 additions and 178 deletions
@@ -32,7 +32,7 @@ struct RoomMembersListScreen: View {
} header: {
Text(L10n.commonMemberCount(context.viewState.members.count))
.foregroundColor(.element.secondaryContent)
.font(.element.body)
.font(.compound.bodyLG)
.padding(.vertical, 12)
}
.padding(.horizontal)
@@ -35,7 +35,7 @@ struct RoomMembersListScreenMemberCell: View {
.accessibilityHidden(true)
Text(member.name ?? "")
.font(.element.calloutBold)
.font(.compound.bodyMDSemibold)
.foregroundColor(.element.primaryContent)
.lineLimit(1)