Skip to content

Commit f48c817

Browse files
Change debug icon colour so I can see what I'm testing
1 parent 2bc23c5 commit f48c817

File tree

8 files changed

+32
-5
lines changed

8 files changed

+32
-5
lines changed

HA Menu.xcodeproj/project.pbxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@
628628
"@executable_path/../Frameworks",
629629
);
630630
MARKETING_VERSION = 2.3.0;
631+
OTHER_SWIFT_FLAGS = "-D DEBUG";
631632
PRODUCT_BUNDLE_IDENTIFIER = "org.codechimp.HA-Menu";
632633
PRODUCT_NAME = "$(TARGET_NAME)";
633634
SWIFT_VERSION = 5.0;

HA Menu/Assets.xcassets/PlayButtonImage.imageset/Contents.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"images" : [
33
{
4-
"filename" : "[email protected]",
4+
"filename" : "video control [email protected]",
55
"idiom" : "universal",
66
"scale" : "1x"
77
},
88
{
9-
"filename" : "[email protected]",
9+
"filename" : "video control [email protected]",
1010
"idiom" : "universal",
1111
"scale" : "2x"
1212
},
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "[email protected]",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"filename" : "[email protected]",
10+
"idiom" : "universal",
11+
"scale" : "2x"
12+
},
13+
{
14+
"idiom" : "universal",
15+
"scale" : "3x"
16+
}
17+
],
18+
"info" : {
19+
"author" : "xcode",
20+
"version" : 1
21+
}
22+
}
1.6 KB
Loading
2.29 KB
Loading

HA Menu/MenuItemController.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,13 @@ final class MenuItemController: NSObject, NSMenuDelegate {
3737
super.init()
3838

3939
if let statusButton = statusItem.button {
40-
let icon = NSImage(named: "StatusBarButtonImage")
41-
icon?.isTemplate = true // best for dark mode
42-
40+
#if DEBUG
41+
let icon = NSImage(named: "StatusBarButtonImageDebug")
42+
#else
43+
let icon = NSImage(named: "StatusBarButtonImage")
44+
icon?.isTemplate = true // best for dark mode
45+
#endif
46+
4347
statusButton.image = icon
4448
// button.action = #selector(self.statusBarButtonClicked(sender:))
4549
statusButton.sendAction(on: [.leftMouseUp, .rightMouseUp])

0 commit comments

Comments
 (0)