Unify card background styles
This commit is contained in:
@@ -76,9 +76,8 @@ public struct ConnectionView: View {
|
||||
}
|
||||
.foregroundColor(.textColor)
|
||||
#if !os(tvOS)
|
||||
.padding(EdgeInsets(top: 10, leading: 13, bottom: 10, trailing: 13))
|
||||
.background(backgroundColor)
|
||||
.cornerRadius(10)
|
||||
.padding(16)
|
||||
.cardStyle()
|
||||
#endif
|
||||
}
|
||||
.background(.clear)
|
||||
@@ -99,16 +98,6 @@ public struct ConnectionView: View {
|
||||
}
|
||||
}
|
||||
|
||||
private var backgroundColor: Color {
|
||||
#if os(iOS)
|
||||
return Color(uiColor: .secondarySystemGroupedBackground)
|
||||
#elseif os(macOS)
|
||||
return Color(nsColor: .textBackgroundColor)
|
||||
#elseif os(tvOS)
|
||||
return Color.black
|
||||
#endif
|
||||
}
|
||||
|
||||
private nonisolated func closeConnection() async {
|
||||
do {
|
||||
try await LibboxNewStandaloneCommandClient()!.closeConnection(connection.id)
|
||||
|
||||
Reference in New Issue
Block a user