fixing coloring of the header and some ui stuff

This commit is contained in:
talksik
2021-12-14 17:42:38 -08:00
parent 532f8cd50a
commit c3aa79fef1
2 changed files with 34 additions and 25 deletions
+5 -2
View File
@@ -26,12 +26,15 @@ struct HeaderView: View {
.aspectRatio(contentMode: .fill)
.frame(width: 40, height: 40)
.clipShape(Circle())
.padding()
.padding(5)
.shadow(radius:5)
}
}
.background(Color(self.averageColor))
.frame(maxWidth: .infinity)
// .background(Color(self.averageColor)) // color based on user's profilepicture dominant color
.background(NirvanaColor.solidBlue)
.cornerRadius(100)
.padding(.horizontal)
.onAppear{
// set background color based on profile picture tint
if authStore.sessionState == SessionState.isAuthenticated {