diff --git a/ScreenJumper/AppDelegate.swift b/ScreenJumper/AppDelegate.swift index 4c2232d..ed8e3df 100644 --- a/ScreenJumper/AppDelegate.swift +++ b/ScreenJumper/AppDelegate.swift @@ -50,10 +50,11 @@ class AppDelegate: NSObject, NSApplicationDelegate { } func applicationDidFinishLaunching(_ aNotification: Notification) { - clearData() + //clearData() ShortcutRepository.shared.register() statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength) statusItem?.button?.title = Bundle.main.infoDictionary![kCFBundleNameKey as String] as! String + statusItem?.button?.image = NSImage.init(named: "ic_status_bar") if let menu = menu { statusItem?.menu = menu } diff --git a/ScreenJumper/Assets.xcassets/AppIcon.appiconset/Contents.json b/ScreenJumper/Assets.xcassets/AppIcon.appiconset/Contents.json index 3f00db4..76c7e5b 100644 --- a/ScreenJumper/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/ScreenJumper/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -46,6 +46,7 @@ "size" : "512x512" }, { + "filename" : "ic_app.png", "idiom" : "mac", "scale" : "2x", "size" : "512x512" diff --git a/ScreenJumper/Assets.xcassets/AppIcon.appiconset/ic_app.png b/ScreenJumper/Assets.xcassets/AppIcon.appiconset/ic_app.png new file mode 100644 index 0000000..8cf83d0 Binary files /dev/null and b/ScreenJumper/Assets.xcassets/AppIcon.appiconset/ic_app.png differ diff --git a/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/Contents.json b/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/Contents.json new file mode 100644 index 0000000..4fabef0 --- /dev/null +++ b/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/Contents.json @@ -0,0 +1,56 @@ +{ + "images" : [ + { + "filename" : "ic_status_bar.pdf", + "idiom" : "universal", + "scale" : "1x" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "filename" : "ic_status_bar-1.pdf", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "ic_status_bar@2x.pdf", + "idiom" : "universal", + "scale" : "2x" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "filename" : "ic_status_bar@2x-1.pdf", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "ic_status_bar@3x.pdf", + "idiom" : "universal", + "scale" : "3x" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "filename" : "ic_status_bar@3x-1.pdf", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar-1.pdf b/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar-1.pdf new file mode 100644 index 0000000..970b30c Binary files /dev/null and b/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar-1.pdf differ diff --git a/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar.pdf b/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar.pdf new file mode 100644 index 0000000..6c07547 Binary files /dev/null and b/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar.pdf differ diff --git a/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar@2x-1.pdf b/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar@2x-1.pdf new file mode 100644 index 0000000..8b23b22 Binary files /dev/null and b/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar@2x-1.pdf differ diff --git a/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar@2x.pdf b/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar@2x.pdf new file mode 100644 index 0000000..2bb31e9 Binary files /dev/null and b/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar@2x.pdf differ diff --git a/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar@3x-1.pdf b/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar@3x-1.pdf new file mode 100644 index 0000000..561ada6 Binary files /dev/null and b/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar@3x-1.pdf differ diff --git a/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar@3x.pdf b/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar@3x.pdf new file mode 100644 index 0000000..3068b6d Binary files /dev/null and b/ScreenJumper/Assets.xcassets/ic_status_bar.imageset/ic_status_bar@3x.pdf differ