adjustment to status in footer
This commit is contained in:
@@ -34,6 +34,19 @@ struct CircleFooterView: View {
|
|||||||
.background(NirvanaColor.teal.opacity(0.1))
|
.background(NirvanaColor.teal.opacity(0.1))
|
||||||
.frame(width: 40, height: 40)
|
.frame(width: 40, height: 40)
|
||||||
.clipShape(Circle())
|
.clipShape(Circle())
|
||||||
|
.overlay(alignment: .topTrailing) {
|
||||||
|
// user status
|
||||||
|
switch self.selectedFriend!.userStatus {
|
||||||
|
case .online:
|
||||||
|
Circle()
|
||||||
|
.frame(width: 10, height: 10)
|
||||||
|
.foregroundColor(Color.green)
|
||||||
|
case .offline:
|
||||||
|
Circle()
|
||||||
|
default:
|
||||||
|
Circle()
|
||||||
|
}
|
||||||
|
}
|
||||||
.padding(5)
|
.padding(5)
|
||||||
.contextMenu {
|
.contextMenu {
|
||||||
Button(role: .destructive) {
|
Button(role: .destructive) {
|
||||||
@@ -49,6 +62,7 @@ struct CircleFooterView: View {
|
|||||||
Label("Remove from Circle", systemImage: "person.crop.circle.fill.badge.minus")
|
Label("Remove from Circle", systemImage: "person.crop.circle.fill.badge.minus")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ struct CircleNavigationView: View {
|
|||||||
Image((self.authSessionStore.user?.avatar)!)
|
Image((self.authSessionStore.user?.avatar)!)
|
||||||
.resizable()
|
.resizable()
|
||||||
.scaledToFit()
|
.scaledToFit()
|
||||||
.background(self.innerCircleVM.isRecording ? Color.orange : NirvanaColor.teal.opacity(0.5))
|
.background(self.innerCircleVM.isRecording ? Color.orange : Color.teal.opacity(0.5))
|
||||||
.frame(width: 40, height: 40)
|
.frame(width: 40, height: 40)
|
||||||
.clipShape(Circle())
|
.clipShape(Circle())
|
||||||
.shadow(radius: 10)
|
.shadow(radius: 10)
|
||||||
|
|||||||
Reference in New Issue
Block a user