Skip to content

Commit 03d8486

Browse files
committed
6.8.6
1 parent 2020ddb commit 03d8486

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1242
-1180
lines changed

.gitsecret/paths/mapping.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Lunar/Resources/eddsa_priv:d079018c2b1c003c9e239ea8f8cc999b7d98adfd0616911ba0263
33
Lunar/Modes/SensorMode.swift:63d6565bb8194d89abaa7998c640d3aebe8aa33edcaf687c0f5d385c5ad5f0eb
44
Lunar/Modes/SyncMode.swift:99587e6a44dfd3620f154a34ac83e0a9c0fedc82b778c6cad71bbeacb437864e
55
Lunar/Modes/LocationMode.swift:bef485a1eb39359f19a37599c2fa55fc3a2f448295570f20c7b4e65984a63ec1
6-
Lunar/Data/Pro.swift:f73924de8fef717a3527b83807e80fad2ea2a2fab00b3d2925136d711611e3dd
6+
Lunar/Data/Pro.swift:264f73e4c8434017bfdc070d073e8b52d3b2bbe6559ad9a18bda2def311a6ac8
77
Lunar/Modes/ClockMode.swift:d012d1b6cd91d0527ca6d6d00fd5b7742c3671855fba5d43ab31b6413d8afc84
88
Lunar/DDC/DDC2.h:2413c548ce3cc1681316b52486b66769529ae244ec5c76a160cdc190e7236f61
99
Lunar/DDC/DDC2.c:8488fdfb13ca9525e44db616c773eb67f1f1d52dcf83115d7666b0d79bbeef5a
10-
Lunar/required.swift:d494636f0448a4e0da33d4fd376dfd9f6b1f35c108c9ffec903cbf4ec4f51acf
10+
Lunar/required.swift:bf18286738d3041622a65ea257fafba0bb47670101b6257cb01a9096c09c7ccb

Lunar.xcodeproj/project.pbxproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@
13391339
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
13401340
CODE_SIGN_STYLE = Manual;
13411341
COMBINE_HIDPI_IMAGES = YES;
1342-
CURRENT_PROJECT_VERSION = 6.8.5;
1342+
CURRENT_PROJECT_VERSION = 6.8.6;
13431343
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
13441344
DEVELOPMENT_ASSET_PATHS = "";
13451345
DEVELOPMENT_TEAM = "";
@@ -1371,7 +1371,7 @@
13711371
);
13721372
LLVM_LTO = YES_THIN;
13731373
MACOSX_DEPLOYMENT_TARGET = 11.0;
1374-
MARKETING_VERSION = 6.8.5;
1374+
MARKETING_VERSION = 6.8.6;
13751375
MTL_ENABLE_DEBUG_INFO = NO;
13761376
OTHER_CODE_SIGN_FLAGS = "";
13771377
PRODUCT_BUNDLE_IDENTIFIER = fyi.lunar.Lunar;
@@ -1404,7 +1404,7 @@
14041404
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
14051405
CODE_SIGN_STYLE = Manual;
14061406
COMBINE_HIDPI_IMAGES = YES;
1407-
CURRENT_PROJECT_VERSION = 6.8.5;
1407+
CURRENT_PROJECT_VERSION = 6.8.6;
14081408
DEVELOPMENT_ASSET_PATHS = "";
14091409
DEVELOPMENT_TEAM = "";
14101410
"DEVELOPMENT_TEAM[sdk=macosx*]" = RDDXV84A73;
@@ -1435,7 +1435,7 @@
14351435
);
14361436
LLVM_LTO = YES;
14371437
MACOSX_DEPLOYMENT_TARGET = 11.0;
1438-
MARKETING_VERSION = 6.8.5;
1438+
MARKETING_VERSION = 6.8.6;
14391439
MTL_ENABLE_DEBUG_INFO = NO;
14401440
OTHER_CODE_SIGN_FLAGS = "--timestamp";
14411441
PRODUCT_BUNDLE_IDENTIFIER = fyi.lunar.Lunar;

Lunar/Controllers/ALSInstallViewController.swift

+22-21
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,28 @@ final class ALSInstallViewController: NSViewController {
168168
}
169169
}
170170

171+
override func viewDidLoad() {
172+
super.viewDidLoad()
173+
174+
mainAsyncAfter(ms: 100) { [weak self] in
175+
self?.devices = getDevices()
176+
log.debug("Available sensor devices: \(self?.devices ?? [])")
177+
}
178+
179+
view.wantsLayer = true
180+
view.radius = 12.0.ns
181+
view.bg = darkMauve
182+
progressBar?.appearance = NSAppearance(named: .vibrantDark)
183+
184+
installButton?.bgColor = lunarYellow
185+
installButton?.radius = 10.ns
186+
installButton?.frame = NSRect(origin: installButton.frame.origin, size: CGSize(width: installButton.frame.width, height: 30))
187+
installButton?.attributedTitle = "Start".withAttribute(.textColor(mauve))
188+
operationDescription =
189+
"Your WiFi credentials will be programmed into the sensor firmware so it can connect to your local network and send lux values when requested."
190+
.attributedString
191+
}
192+
171193
func setPins() {
172194
switch boardID {
173195
case "sparkfun_esp32s2_thing_plus":
@@ -311,27 +333,6 @@ final class ALSInstallViewController: NSViewController {
311333
}
312334
}
313335

314-
override func viewDidLoad() {
315-
super.viewDidLoad()
316-
317-
mainAsyncAfter(ms: 100) { [weak self] in
318-
self?.devices = getDevices()
319-
log.debug("Available sensor devices: \(self?.devices ?? [])")
320-
}
321-
322-
view.wantsLayer = true
323-
view.radius = 12.0.ns
324-
view.bg = darkMauve
325-
progressBar?.appearance = NSAppearance(named: .vibrantDark)
326-
327-
installButton?.bgColor = lunarYellow
328-
installButton?.radius = 10.ns
329-
installButton?.frame = NSRect(origin: installButton.frame.origin, size: CGSize(width: installButton.frame.width, height: 30))
330-
installButton?.attributedTitle = "Start".withAttribute(.textColor(mauve))
331-
operationDescription =
332-
"Your WiFi credentials will be programmed into the sensor firmware so it can connect to your local network and send lux values when requested."
333-
.attributedString
334-
}
335336
}
336337

337338
// MARK: NSControlTextEditingDelegate

Lunar/Controllers/ColorsPopoverController.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ final class ColorsPopoverController: NSViewController {
1212
// MARK: - ColorsButton
1313

1414
final class ColorsButton: PopoverButton<ColorsPopoverController> {
15+
override var popoverKey: String {
16+
"colors"
17+
}
18+
1519
weak var display: Display? {
1620
didSet {
1721
popoverController?.display = display
1822
}
1923
}
2024

21-
override var popoverKey: String {
22-
"colors"
23-
}
24-
2525
override func mouseDown(with event: NSEvent) {
2626
popoverController?.display = display
2727
super.mouseDown(with: event)

Lunar/Controllers/ConfigurationViewController.swift

+10-9
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,16 @@ final class ConfigurationViewController: NSViewController {
160160
}
161161
}
162162

163+
override func viewDidLoad() {
164+
super.viewDidLoad()
165+
settingsController = parent?.parent as? SettingsPageController
166+
setup()
167+
}
168+
169+
override func wantsScrollEventsForSwipeTracking(on axis: NSEvent.GestureAxis) -> Bool {
170+
axis == .horizontal
171+
}
172+
163173
func showRelevantSettings(_ adaptiveMode: AdaptiveModeKey) {
164174
let locationMode = adaptiveMode == .location
165175
let sensorMode = adaptiveMode == .sensor
@@ -422,13 +432,4 @@ final class ConfigurationViewController: NSViewController {
422432
listenForAdaptiveModeChange()
423433
}
424434

425-
override func viewDidLoad() {
426-
super.viewDidLoad()
427-
settingsController = parent?.parent as? SettingsPageController
428-
setup()
429-
}
430-
431-
override func wantsScrollEventsForSwipeTracking(on axis: NSEvent.GestureAxis) -> Bool {
432-
axis == .horizontal
433-
}
434435
}

0 commit comments

Comments
 (0)