UX Update for user profile screen and room member details (#2822)

This commit is contained in:
Mauro
2024-05-09 17:41:09 +02:00
committed by GitHub
parent 1166400312
commit 783eab2a8a
56 changed files with 243 additions and 147 deletions
@@ -22,19 +22,22 @@ struct FormActionButtonStyle: ButtonStyle {
let title: String
func makeBody(configuration: Configuration) -> some View {
VStack(spacing: 8) {
VStack(spacing: 4) {
configuration.label
.buttonStyle(.plain)
.foregroundColor(.compound.textPrimary)
.scaledFrame(size: 54)
.background {
RoundedRectangle(cornerRadius: 16)
.fill(configuration.isPressed ? Color.compound.bgSubtlePrimary : .compound.bgCanvasDefaultLevel1)
}
.foregroundColor(.compound.iconSecondary)
.scaledFrame(size: 24)
Text(title)
.foregroundColor(.compound.textSecondary)
.font(.compound.bodyMD)
.foregroundColor(.compound.textPrimary)
.font(.compound.bodyLG)
}
.padding(.horizontal, 4)
.padding(.vertical, 8)
.frame(maxWidth: .infinity)
.background {
RoundedRectangle(cornerRadius: 14)
.fill(configuration.isPressed ? Color.compound.bgSubtlePrimary : .compound.bgCanvasDefaultLevel1)
}
}
}
@@ -106,6 +106,10 @@ struct AvatarHeaderView<Footer: View>: View {
}
.frame(maxWidth: .infinity, alignment: .center)
.listRowBackground(Color.clear)
.listRowInsets(EdgeInsets(top: 11,
leading: 0,
bottom: 11,
trailing: 0))
}
}