Skip to content

Commit

Permalink
Fix build errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Aug 19, 2022
1 parent 2c3d382 commit c94631e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ struct LiveLocationSharingViewer: View {
HStack(spacing: 10) {
Image(uiImage: Asset.Images.locationLiveCellIcon.image)
.renderingMode(.template)
.foregroundColor(theme.colors.quaternaryContent)
.foregroundColor(theme.colors.quarterlyContent)
.frame(width: 40, height: 40)
Text(VectorL10n.liveLocationSharingEnded)
.font(theme.fonts.body)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct OnboardingCongratulationsViewState: BindableState {
let attributedMessage = NSMutableAttributedString(string: message)
let range = (message as NSString).range(of: userId)
if range.location != NSNotFound {
attributedMessage.addAttributes([.font: UIFont.element.body.bold], range: range)
attributedMessage.addAttributes([.font: UIFont.preferredFont(forTextStyle: .body).vc_bold], range: range)
}

return attributedMessage
Expand Down
1 change: 1 addition & 0 deletions changelog.d/pr-6586.api
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Reverts #6275, bringing the local DesignKit package back.
2 changes: 1 addition & 1 deletion docs/Customisation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ Various features of Element iOS can be enabled/disabled/configured via flags in

## Theme

Element iOS has a [dependency](https:/vector-im/element-ios/blob/92fc7046ede2720d4b46bffd07d97ce59b50d95f/project.yml#L42-L44) on our DesignKit package which supplies the fonts, colours and some common components we use across multiple apps. The fonts are defined [directly](https:/vector-im/element-x-ios/tree/develop/DesignKit/Sources/Fonts) in this package. The colours come from a [dependency](https:/vector-im/element-x-ios/blob/2f69c9978231b6e7cf0b0c3126846f2369e999bb/Package.swift#L13) on our [Design Tokens](https:/vector-im/element-design-tokens) repo which is a style dictionary that allows to us share definitions across multiple platforms.
The themes used in Element iOS can be found in `Riot/Managers/Theme/Themes`. A newer theming system is available as nested `colors` and `fonts` properties on these themes and can be found in `DesignKit/Variants/Colors` and `DesignKit/Variants/Fonts` respectively. The newer system is used for screens built in UIKit with Swift and all of the SwiftUI screens.

For logos, they're currently regular assets that can be found either in [Images.xcassets](https:/vector-im/element-ios/tree/develop/Riot/Assets/Images.xcassets) or [SharedImages.xcassets](https:/vector-im/element-ios/tree/develop/Riot/Assets/SharedImages.xcassets).

0 comments on commit c94631e

Please sign in to comment.