mirror of
https://github.com/yattee/yattee.git
synced 2025-01-07 18:10:33 +05:30
Fix home settings buttons colors
This commit is contained in:
parent
1d61dec8eb
commit
166482601d
@ -124,6 +124,8 @@ struct FavoriteItemEditor: View {
|
|||||||
|
|
||||||
@State private var presentingRemoveAlert = false
|
@State private var presentingRemoveAlert = false
|
||||||
|
|
||||||
|
@Default(.favorites) private var favorites
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
HStack {
|
HStack {
|
||||||
@ -132,13 +134,13 @@ struct FavoriteItemEditor: View {
|
|||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
HStack(spacing: 10) {
|
HStack(spacing: 10) {
|
||||||
FavoriteItemEditorButton {
|
FavoriteItemEditorButton(color: model.canMoveUp(item) ? .accentColor : .secondary) {
|
||||||
Label("Move Up", systemImage: "arrow.up")
|
Label("Move Up", systemImage: "arrow.up")
|
||||||
} onTapGesture: {
|
} onTapGesture: {
|
||||||
model.moveUp(item)
|
model.moveUp(item)
|
||||||
}
|
}
|
||||||
|
|
||||||
FavoriteItemEditorButton {
|
FavoriteItemEditorButton(color: model.canMoveDown(item) ? .accentColor : .secondary) {
|
||||||
Label("Move Down", systemImage: "arrow.down")
|
Label("Move Down", systemImage: "arrow.down")
|
||||||
} onTapGesture: {
|
} onTapGesture: {
|
||||||
model.moveDown(item)
|
model.moveDown(item)
|
||||||
|
Loading…
Reference in New Issue
Block a user