Skip to content

Commit

Permalink
Roll back Background Thumbnail show close on hover behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
mallexxx committed Oct 30, 2024
1 parent 3c9fc95 commit 330a454
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ extension HomePage.Views {
let customBackground: CustomBackground?
@ViewBuilder let content: () -> Content

@State var isHovering = false
@EnvironmentObject var model: HomePage.Models.SettingsModel

init(
Expand Down Expand Up @@ -113,13 +114,17 @@ extension HomePage.Views {
model.customImagesManager?.deleteImage(image)
}
.colorScheme(image.colorScheme)
.visibility(isHovering ? .visible : .gone)
Spacer()
}
}
.padding([.top, .trailing], 4)
}
}
.contentShape(Rectangle())
.onHover { isHovering in
self.isHovering = isHovering
}
}

@ViewBuilder
Expand Down

0 comments on commit 330a454

Please sign in to comment.