ENH: Better looking status bar icon
This commit is contained in:
parent
1a40bf1065
commit
bcd9af6e8c
5 changed files with 24 additions and 1 deletions
BIN
MSG Desktop/Assets.xcassets/AppStatusBar.imageset/1024.png
vendored
Normal file
BIN
MSG Desktop/Assets.xcassets/AppStatusBar.imageset/1024.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 207 KiB |
BIN
MSG Desktop/Assets.xcassets/AppStatusBar.imageset/512@1x.png
vendored
Normal file
BIN
MSG Desktop/Assets.xcassets/AppStatusBar.imageset/512@1x.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 100 KiB |
BIN
MSG Desktop/Assets.xcassets/AppStatusBar.imageset/512@2x.png
vendored
Normal file
BIN
MSG Desktop/Assets.xcassets/AppStatusBar.imageset/512@2x.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 207 KiB |
23
MSG Desktop/Assets.xcassets/AppStatusBar.imageset/Contents.json
vendored
Normal file
23
MSG Desktop/Assets.xcassets/AppStatusBar.imageset/Contents.json
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "512@1x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "512@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "1024.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
|
@ -93,7 +93,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||
if let button = statusBarItem.button {
|
||||
//button.title = "MSG"
|
||||
button.toolTip = "MSG App"
|
||||
if let image = NSImage(named: "AppIcon") {
|
||||
if let image = NSImage(named: "AppStatusBar") {
|
||||
let newSize = NSSize(width: 18, height: 18)
|
||||
image.size = newSize
|
||||
image.isTemplate = true // Important: so it adapts to dark/light mode but we need to get B&W icons..
|
||||
|
|
Loading…
Add table
Reference in a new issue