mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 15:38:28 +02:00
Pin DesignKit version and use contantAndAvatars array.
This commit is contained in:
@@ -49,7 +49,7 @@ struct AvatarImage: View {
|
||||
mxContentUri: mxContentUri,
|
||||
matrixItemId: matrixItemId,
|
||||
displayName: displayName,
|
||||
colorCount: theme.colors.namesAndAvatars.count,
|
||||
colorCount: theme.colors.contentAndAvatars.count,
|
||||
avatarSize: size
|
||||
)
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ struct PlaceholderAvatarImage: View {
|
||||
|
||||
var body: some View {
|
||||
ZStack {
|
||||
theme.colors.namesAndAvatars[colorIndex]
|
||||
theme.colors.contentAndAvatars[colorIndex]
|
||||
|
||||
Text(String(firstCharacter))
|
||||
.padding(4)
|
||||
|
||||
@@ -38,7 +38,7 @@ struct SpaceAvatarImage: View {
|
||||
.padding(10)
|
||||
.frame(width: CGFloat(size.rawValue), height: CGFloat(size.rawValue))
|
||||
.foregroundColor(.white)
|
||||
.background(theme.colors.namesAndAvatars[colorIndex])
|
||||
.background(theme.colors.contentAndAvatars[colorIndex])
|
||||
.clipShape(RoundedRectangle(cornerRadius: 8))
|
||||
// Make the text resizable (i.e. Make it large and then allow it to scale down)
|
||||
.font(.system(size: 200))
|
||||
@@ -55,7 +55,7 @@ struct SpaceAvatarImage: View {
|
||||
mxContentUri: mxContentUri,
|
||||
matrixItemId: matrixItemId,
|
||||
displayName: value,
|
||||
colorCount: theme.colors.namesAndAvatars.count,
|
||||
colorCount: theme.colors.contentAndAvatars.count,
|
||||
avatarSize: size
|
||||
)
|
||||
})
|
||||
@@ -65,7 +65,7 @@ struct SpaceAvatarImage: View {
|
||||
mxContentUri: mxContentUri,
|
||||
matrixItemId: matrixItemId,
|
||||
displayName: displayName,
|
||||
colorCount: theme.colors.namesAndAvatars.count,
|
||||
colorCount: theme.colors.contentAndAvatars.count,
|
||||
avatarSize: size
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user