fixes enum ==, changes frames
This commit is contained in:
parent
f4d776688b
commit
8a66c368cd
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue