@@ -15,31 +15,31 @@ final class StatusBarManager: StatusBarManagerType {
1515 weak var delegate : StatusBarDelegate ?
1616 private var themeObserver : NSObjectProtocol ?
1717 private var isRecording = false
18-
18+
1919 init ( ) {
2020 setupStatusItem ( )
2121 setupThemeObserver ( )
2222 }
23-
23+
2424 var statusButton : NSStatusBarButton ? {
2525 statusItem? . button
2626 }
27-
27+
2828 private func setupStatusItem( ) {
2929 statusItem = NSStatusBar . system. statusItem ( withLength: NSStatusItem . variableLength)
30-
30+
3131 if let button = statusItem? . button {
3232 updateIconForCurrentTheme ( )
3333 button. target = self
3434 button. action = #selector( handleButtonClick ( _: ) )
3535 button. sendAction ( on: [ . leftMouseUp, . rightMouseUp] )
3636 }
3737 }
38-
38+
3939 private func setupThemeObserver( ) {
4040 themeObserver = nil
4141 }
42-
42+
4343 private func updateIconForCurrentTheme( ) {
4444 guard let button = statusItem? . button else { return }
4545
@@ -72,7 +72,7 @@ final class StatusBarManager: StatusBarManagerType {
7272 } else {
7373 // Use original image
7474 let workingImage = fallback. copy ( ) as! NSImage
75- workingImage. isTemplate = false
75+ workingImage. isTemplate = true
7676 button. image = workingImage
7777 button. contentTintColor = nil
7878 print ( " 🎨 Applied normal fallback image " )
@@ -104,7 +104,7 @@ final class StatusBarManager: StatusBarManagerType {
104104 updateIconForCurrentTheme ( )
105105 print ( " 🎯 Icon updated, isRecording = \( isRecording) " )
106106 }
107-
107+
108108 @objc private func handleButtonClick( _ sender: NSStatusBarButton ) {
109109 let event = NSApp . currentEvent
110110 if event? . type == . rightMouseUp {
@@ -113,7 +113,7 @@ final class StatusBarManager: StatusBarManagerType {
113113 showMainMenu ( )
114114 }
115115 }
116-
116+
117117 private func showMainMenu( ) {
118118 let mainMenu = NSMenu ( )
119119
@@ -158,7 +158,7 @@ final class StatusBarManager: StatusBarManagerType {
158158 contextMenu. popUp ( positioning: nil , at: NSPoint ( x: 0 , y: button. bounds. maxY) , in: button)
159159 }
160160 }
161-
161+
162162 @objc private func recordingMenuItemClicked( ) {
163163 DispatchQueue . main. async { [ weak self] in
164164 guard let self = self else { return }
@@ -187,7 +187,7 @@ final class StatusBarManager: StatusBarManagerType {
187187 self ? . delegate? . quitRequested ( )
188188 }
189189 }
190-
190+
191191 deinit {
192192 if let observer = themeObserver {
193193 DistributedNotificationCenter . default. removeObserver ( observer)
0 commit comments