Skip to content

Commit

Permalink
feat: add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
douo committed Jun 30, 2020
1 parent 54c0a11 commit 994cb2b
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ScreenJumper/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"size" : "512x512"
},
{
"filename" : "ic_app.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions ScreenJumper/Assets.xcassets/ic_status_bar.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -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" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 994cb2b

Please sign in to comment.