Skip to content

Commit

Permalink
feat: make menu bar icon larger (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski authored May 12, 2023
1 parent 162c7bd commit 8d9da89
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
21 changes: 21 additions & 0 deletions MiniSim/Assets.xcassets/menu_icon.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "menu_icon.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion MiniSim/MiniSim.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ class MiniSim: NSObject {
}
if let button = statusItem.button {
button.toolTip = "MiniSim"
let itemImage = NSImage(systemSymbolName: "iphone", accessibilityDescription: "iPhone")
let itemImage = NSImage(named: "menu_icon")
itemImage?.size = NSSize(width: 9, height: 16)
itemImage?.isTemplate = true
button.image = itemImage
}
populateSections()
Expand Down

0 comments on commit 8d9da89

Please sign in to comment.