Fix home settings buttons colors

This commit is contained in:
Arkadiusz Fal 2023-05-26 23:30:44 +02:00
parent 1d61dec8eb
commit 166482601d

View File

@ -124,6 +124,8 @@ struct FavoriteItemEditor: View {
@State private var presentingRemoveAlert = false
@Default(.favorites) private var favorites
var body: some View {
VStack(alignment: .leading) {
HStack {
@ -132,13 +134,13 @@ struct FavoriteItemEditor: View {
Spacer()
HStack(spacing: 10) {
FavoriteItemEditorButton {
FavoriteItemEditorButton(color: model.canMoveUp(item) ? .accentColor : .secondary) {
Label("Move Up", systemImage: "arrow.up")
} onTapGesture: {
model.moveUp(item)
}
FavoriteItemEditorButton {
FavoriteItemEditorButton(color: model.canMoveDown(item) ? .accentColor : .secondary) {
Label("Move Down", systemImage: "arrow.down")
} onTapGesture: {
model.moveDown(item)