Skip to content

Commit

Permalink
次要 UI bug修复与改动
Browse files Browse the repository at this point in the history
  • Loading branch information
GaiZhenbiao committed Jan 27, 2023
1 parent db26140 commit a9d6042
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ChuanhuWallpaper/ChuanhuWallpaperApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct ChuanhuWallpaperApp: App {
var body: some Scene {
WindowGroup {
ContentView()
.frame(minWidth: 550, minHeight: 200, maxHeight: .infinity)
.frame(minWidth: 550, minHeight: 350, maxHeight: .infinity)
}
// .defaultSize(CGSize(width: 350, height: 500))
.windowToolbarStyle(UnifiedCompactWindowToolbarStyle())
Expand Down
2 changes: 1 addition & 1 deletion ChuanhuWallpaper/TimeWallpaperView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,6 @@ extension TimeWallpaperView {

struct TimeWallpaperView_Previews: PreviewProvider {
static var previews: some View {
TimeWallpaperView(wallpapers: [WallpaperImage(fileName: "/Users/treediagram/Downloads/appletv.jpeg")])
TimeWallpaperView(wallpapers: [WallpaperImage(fileName: "/Users/treediagram/Downloads/HelloDark_Mac.png")])
}
}
2 changes: 2 additions & 0 deletions ChuanhuWallpaper/WallPaperView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ struct WallPaperView: View {
withAnimation {
_ = wallpapers.remove(at: index)
}
let loc = NSEvent.mouseLocation
NSAnimationEffect.poof.show(centeredAt: NSPoint(x: loc.x, y: loc.y), size: NSSize(width: 40, height: 40))
} label: {
Text("Trash")
}
Expand Down

0 comments on commit a9d6042

Please sign in to comment.