Skip to content

Commit

Permalink
bugfix: proper menuIcon highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzturc committed May 8, 2020
1 parent 6417ca8 commit e431a23
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ThinkpadAssistant/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ class AppDelegate: NSObject, NSApplicationDelegate {

func setupMenuBar() {
statusItem.button?.image = NSImage(named: "menuIcon")
statusItem.button?.alternateImage = NSImage(named: "menuIcon-light")

statusItem.button?.image?.size = NSSize(width: 20, height: 20)
statusItem.button?.alternateImage?.size = NSSize(width: 20, height: 20)

statusItem.menu = statusBarMenu

let foundHelper = NSWorkspace.shared.runningApplications.contains {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "thinkpadkeyboard.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Binary file not shown.

0 comments on commit e431a23

Please sign in to comment.