Skip to content

Commit

Permalink
Add Neewer RGB176 support. (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
keefo committed Feb 22, 2022
1 parent 6f58559 commit a3cb1cc
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 10 deletions.
6 changes: 0 additions & 6 deletions NeewerLite/NeewerLite/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,13 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {

func applicationDidFinishLaunching(_ aNotification: Notification) {
NSApp.setActivationPolicy(.accessory)

appMenu.delegate = self
self.statusItem.menu = appMenu

if let button = statusItem.button {
button.image = NSImage(named: "statusItemOffIcon")
}

self.window.minSize = NSMakeSize(580, 400)
updateUI()

cbCentralManager = CBCentralManager(delegate: self, queue: nil)

NSAppleEventManager.shared().setEventHandler(self, andSelector: #selector(handleURLEvent(_:withReplyEvent:)), forEventClass: AEEventClass(kInternetEventClass), andEventID: AEEventID(kAEGetURL))
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "neewer-rgb176.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"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.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
"scale" : "1x"
},
{
"filename" : "Untitled-2.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Untitled-1.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions NeewerLite/NeewerLite/Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>0.7</string>
<string>0.8</string>
<key>CFBundleVersion</key>
<string>8</string>
<string>9</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
3 changes: 3 additions & 0 deletions NeewerLite/NeewerLite/ViewModels/DeviceViewObject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ class DeviceViewObject
if device.rawName.contains("RGB660") || device.rawName.contains("RGB480") {
img = NSImage(named: "light-rgb660-pro")
}
else if device.rawName.contains("RGB176") {
img = NSImage(named: "light-rgb176")
}
else if device.rawName.contains("SNL660") {
img = NSImage(named: "light-rgb660-pro")
}
Expand Down

0 comments on commit a3cb1cc

Please sign in to comment.