fixes enum ==, changes frames

This commit is contained in:
Stuart Breckenridge 2020-07-13 22:51:09 +08:00
parent f4d776688b
commit 8a66c368cd
No known key found for this signature in database
GPG Key ID: 79BD673276AE83CE
3 changed files with 5 additions and 5 deletions

View File

@ -40,7 +40,7 @@ struct MacPreferencesView: View {
}.foregroundColor(
viewModel.currentPreferencePane == .general ? Color("AccentColor") : Color.gray
)
})
}).frame(width: 70)
Button(action: {
viewModel.currentPreferencePane = .accounts
}, label: {
@ -51,7 +51,7 @@ struct MacPreferencesView: View {
}.foregroundColor(
viewModel.currentPreferencePane == .accounts ? Color("AccentColor") : Color.gray
)
})
}).frame(width: 70)
Button(action: {
viewModel.currentPreferencePane = .advanced
}, label: {
@ -62,7 +62,7 @@ struct MacPreferencesView: View {
}.foregroundColor(
viewModel.currentPreferencePane == .advanced ? Color("AccentColor") : Color.gray
)
})
}).frame(width: 70)
}
}
}

View File

@ -103,7 +103,7 @@ struct ConfiguredAccountRow: View {
if let img = account.smallIcon?.image {
Image(rsImage: img)
.resizable()
.frame(width: 30, height: 30)
.frame(width: 20, height: 20)
.aspectRatio(contentMode: .fit)
}
Text(account.nameForDisplay)

View File

@ -38,7 +38,7 @@ class AddAccountModel: ObservableObject {
case (.other(let lhsError), .other(let rhsError)):
return lhsError.localizedDescription == rhsError.localizedDescription
default:
return lhs == rhs
return false
}
}
}