SP3.1: Update room settings for Spaces #5231

- Update after review
This commit is contained in:
Gil Eluard
2022-02-28 16:07:09 +01:00
parent 2d8995d33a
commit 5387a96f1a
52 changed files with 878 additions and 519 deletions
@@ -32,8 +32,8 @@ struct AddRoomSelector: View {
var body: some View {
MatrixItemChooser(viewModel: viewModel, listBottomPadding: nil)
.background(theme.colors.background)
.navigationBarItems(leading: cancelButton,
trailing: doneButton)
.navigationBarItems(leading: cancelButton, trailing: doneButton)
.accentColor(theme.colors.accent)
}
// MARK: Private
@@ -43,7 +43,6 @@ struct AddRoomSelector: View {
viewModel.send(viewAction: .cancel)
})
.font(theme.fonts.body)
.foregroundColor(theme.colors.accent)
}
private var doneButton: some View {
@@ -51,7 +50,6 @@ struct AddRoomSelector: View {
viewModel.send(viewAction: .done)
})
.font(theme.fonts.body)
.foregroundColor(viewModel.viewState.selectedItemIds.isEmpty ? theme.colors.quarterlyContent : theme.colors.accent)
.opacity(viewModel.viewState.selectedItemIds.isEmpty ? 0.7 : 1)
.disabled(viewModel.viewState.selectedItemIds.isEmpty)
}