Skip to content

Commit 4a06db2

Browse files
authored
Merge pull request #118 from zenibako/feat/overview-mode-app-logo
2 parents 4f36629 + 459ebb4 commit 4a06db2

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

Sources/App/Views/MenuContentView.swift

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,23 @@ struct MenuContentView: View {
231231

232232
private var headerView: some View {
233233
HStack(spacing: 12) {
234-
// Custom Provider Icon - changes based on selected provider
234+
// Custom Provider Icon - shows AppLogo in overview mode, provider icon otherwise
235235
// Avoid animation on provider icon to prevent constraint update loops in MenuBarExtra
236236
ZStack {
237-
ProviderIconView(providerId: selectedProviderId, size: 38)
237+
if settings.overviewModeEnabled, let logo = NSImage(named: "AppLogo") {
238+
Image(nsImage: logo)
239+
.resizable()
240+
.aspectRatio(contentMode: .fill)
241+
.frame(width: 38, height: 38)
242+
.clipShape(Circle())
243+
.overlay(
244+
Circle()
245+
.stroke(theme.accentPrimary.opacity(0.3), lineWidth: 2)
246+
)
247+
.shadow(color: theme.accentPrimary.opacity(0.15), radius: 3, y: 1)
248+
} else {
249+
ProviderIconView(providerId: selectedProviderId, size: 38)
250+
}
238251

239252
// Christmas star sparkle overlay
240253
if theme.id == "christmas" {

0 commit comments

Comments
 (0)