Skip to content

Commit e936c10

Browse files
committed
use app icon on mac landing page
1 parent a5c112a commit e936c10

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

macOS/ScriptWidgetMac/App/EmptyHelloView.swift

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,11 @@ struct EmptyHelloView: View {
5252

5353
private var hero: some View {
5454
VStack(alignment: .leading, spacing: 12) {
55-
Image(systemName: "sparkles.square.filled.on.square")
56-
.font(.system(size: 52))
57-
.foregroundStyle(
58-
LinearGradient(colors: [.purple, .blue],
59-
startPoint: .topLeading,
60-
endPoint: .bottomTrailing)
61-
)
55+
Image(nsImage: NSApplication.shared.applicationIconImage)
56+
.resizable()
57+
.scaledToFit()
58+
.frame(width: 88, height: 88)
59+
.accessibilityLabel("ScriptWidget app icon")
6260
Text("Build widgets with JavaScript")
6361
.font(.title).bold()
6462
Text("Pick a template, preview it instantly on your desktop, then add it anywhere widgets go.")

0 commit comments

Comments
 (0)