fixes enum ==, changes frames

This commit is contained in:
Stuart Breckenridge
2020-07-13 22:51:09 +08:00
parent f4d776688b
commit 8a66c368cd
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)
}
}
}