Minor UI fixes for macOS Big Sur

This commit is contained in:
Arkadiusz Fal
2021-12-02 20:22:55 +01:00
parent c4b5c7ce41
commit dd995105b5
10 changed files with 22 additions and 9 deletions

View File

@@ -14,6 +14,7 @@ struct InstancesSettings: View {
@State private var frontendURL = ""
@Environment(\.colorScheme) private var colorScheme
@EnvironmentObject<AccountsModel> private var accounts
@Default(.instances) private var instances
@@ -54,7 +55,7 @@ struct InstancesSettings: View {
Button("Remove") {
presentingAccountRemovalConfirmation = true
}
.foregroundColor(.red)
.foregroundColor(colorScheme == .dark ? .white : .red)
.opacity(account == selectedAccount ? 1 : 0)
}
.tag(account)