Skip to content

Commit cf8d851

Browse files
committed
updated UI for "select an image" msg in detail panel
1 parent eb2ee1f commit cf8d851

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

MacImageManager/MacImageManager/ContentView.swift

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,32 @@ struct ContentView: View {
4646
}
4747
} else {
4848
// Empty state when no file is selected
49-
VStack {
50-
Image(systemName: "photo.on.rectangle")
51-
.font(.system(size: 64))
52-
.foregroundColor(.secondary)
53-
Text("(select a file)")
54-
.font(.title2)
55-
.foregroundColor(.secondary)
49+
VStack(spacing: 24) {
50+
Spacer()
51+
52+
ZStack {
53+
Circle()
54+
.fill(Color.secondary.opacity(0.1))
55+
.frame(width: 120, height: 120)
56+
57+
Image(systemName: "photo.on.rectangle.angled")
58+
.font(.system(size: 48, weight: .light))
59+
.foregroundColor(.secondary)
60+
}
61+
62+
VStack(spacing: 8) {
63+
Text("(select a file)")
64+
.font(.headline)
65+
.foregroundColor(.primary)
66+
67+
Text("Choose an image or video from the browser to view it here.")
68+
.font(.subheadline)
69+
.foregroundColor(.secondary)
70+
.multilineTextAlignment(.center)
71+
.padding(.horizontal, 40)
72+
}
73+
74+
Spacer()
5675
}
5776
.frame(maxWidth: .infinity, maxHeight: .infinity)
5877
.background(Color(NSColor.controlBackgroundColor))

0 commit comments

Comments
 (0)