mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 09:32:52 +02:00
MESSENGER-5706 change appearance and use wellknown
This commit is contained in:
@@ -59,7 +59,8 @@ struct RoomFederationDecisionView: View {
|
||||
var roomAvatarImage: UIImage
|
||||
let imageStackScale = 0.30
|
||||
let imageStackShift = 5.0
|
||||
let lineWith = 7.0
|
||||
let outerLineWith = 5.0
|
||||
let innerLineWith = 1.0
|
||||
let spacing = 16.0
|
||||
|
||||
|
||||
@@ -73,14 +74,17 @@ struct RoomFederationDecisionView: View {
|
||||
ZStack(alignment: .center) {
|
||||
Circle()
|
||||
.fill(Color(theme.colors.quinaryContent))
|
||||
.overlay(Circle()
|
||||
.stroke(Color(theme.colors.background), lineWidth: lineWith))
|
||||
.padding(outerLineWith)
|
||||
.offset(x:((getImageSize(width: geo.size.width, height: geo.size.height) * imageStackScale) / imageStackShift))
|
||||
Image(uiImage: roomAvatarImage)
|
||||
.resizable()
|
||||
.clipShape(Circle())
|
||||
.overlay(Circle()
|
||||
.stroke(Color(theme.colors.background), lineWidth: lineWith))
|
||||
.padding(innerLineWith)
|
||||
.background(Color(theme.colors.quinaryContent))
|
||||
.clipShape(Circle())
|
||||
.padding(outerLineWith)
|
||||
.background(Color(ThemeService.shared().theme.backgroundColor))
|
||||
.clipShape(Circle())
|
||||
.offset(x:-((getImageSize(width: geo.size.width, height: geo.size.height) * imageStackScale) / imageStackShift))
|
||||
}
|
||||
.frame(width: getImageSize(width: geo.size.width, height: geo.size.height) * imageStackScale, height: getImageSize(width: geo.size.width, height: geo.size.height) * imageStackScale)
|
||||
|
||||
Reference in New Issue
Block a user