From 17f2c966f12a2dd879b7b2e13096e5d978d7dc1e Mon Sep 17 00:00:00 2001 From: Amr Shawqy Date: Fri, 24 Jul 2026 21:58:21 +0300 Subject: [PATCH] Add a branded Speaky menu bar icon --- Speaky/AppState.swift | 9 --------- .../SpeakyMenuBarIcon.imageset/Contents.json | 16 ++++++++++++++++ .../SpeakyMenuBarIcon.svg | 19 +++++++++++++++++++ Speaky/SpeakyApp.swift | 3 ++- 4 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 Speaky/Resources/Assets.xcassets/SpeakyMenuBarIcon.imageset/Contents.json create mode 100644 Speaky/Resources/Assets.xcassets/SpeakyMenuBarIcon.imageset/SpeakyMenuBarIcon.svg diff --git a/Speaky/AppState.swift b/Speaky/AppState.swift index 9f2b9fc..8bd9386 100644 --- a/Speaky/AppState.swift +++ b/Speaky/AppState.swift @@ -89,15 +89,6 @@ final class AppState { coordinator.observeSystemWake() } - var menuBarIconName: String { - switch state { - case .idle: "mic.fill" - case .recording: "mic.badge.waveform.fill" - case .transcribing: "ellipsis.circle" - case .error: "exclamationmark.triangle" - } - } - var isRecording: Bool { state == .recording } var isTranscribing: Bool { state == .transcribing } diff --git a/Speaky/Resources/Assets.xcassets/SpeakyMenuBarIcon.imageset/Contents.json b/Speaky/Resources/Assets.xcassets/SpeakyMenuBarIcon.imageset/Contents.json new file mode 100644 index 0000000..a0cc248 --- /dev/null +++ b/Speaky/Resources/Assets.xcassets/SpeakyMenuBarIcon.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "filename" : "SpeakyMenuBarIcon.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "preserves-vector-representation" : true, + "template-rendering-intent" : "template" + } +} diff --git a/Speaky/Resources/Assets.xcassets/SpeakyMenuBarIcon.imageset/SpeakyMenuBarIcon.svg b/Speaky/Resources/Assets.xcassets/SpeakyMenuBarIcon.imageset/SpeakyMenuBarIcon.svg new file mode 100644 index 0000000..267d581 --- /dev/null +++ b/Speaky/Resources/Assets.xcassets/SpeakyMenuBarIcon.imageset/SpeakyMenuBarIcon.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/Speaky/SpeakyApp.swift b/Speaky/SpeakyApp.swift index 37fe2c1..c289670 100644 --- a/Speaky/SpeakyApp.swift +++ b/Speaky/SpeakyApp.swift @@ -26,7 +26,8 @@ struct SpeakyApp: App { MenuBarView() .environment(appState) } label: { - Image(systemName: appState.menuBarIconName) + Image("SpeakyMenuBarIcon") + .accessibilityLabel("Speaky") } }