node-mac-recorder 2.10.35 → 2.10.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/window_selector.mm +10 -9
package/package.json
CHANGED
package/src/window_selector.mm
CHANGED
|
@@ -387,11 +387,11 @@ void updateScreenOverlays();
|
|
|
387
387
|
self = [super initWithFrame:frameRect];
|
|
388
388
|
if (self) {
|
|
389
389
|
self.wantsLayer = YES;
|
|
390
|
-
// Semi-transparent
|
|
390
|
+
// Semi-transparent background for screen overlay (same as window overlay)
|
|
391
391
|
self.layer.backgroundColor = [[NSColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.3] CGColor];
|
|
392
|
-
//
|
|
392
|
+
// Blue border for screen selection (same as window highlight)
|
|
393
393
|
self.layer.borderWidth = 1.0;
|
|
394
|
-
self.layer.borderColor = [[NSColor colorWithRed:0.27 green:0.0 blue:0.77 alpha:0.
|
|
394
|
+
self.layer.borderColor = [[NSColor colorWithRed:0.27 green:0.0 blue:0.77 alpha:0.0] CGColor];
|
|
395
395
|
self.layer.cornerRadius = 8.0;
|
|
396
396
|
self.layer.masksToBounds = YES;
|
|
397
397
|
self.layer.shadowOpacity = 0.0;
|
|
@@ -423,14 +423,15 @@ void updateScreenOverlays();
|
|
|
423
423
|
- (void)setIsActiveScreen:(BOOL)isActive {
|
|
424
424
|
_isActiveScreen = isActive;
|
|
425
425
|
|
|
426
|
+
// Always use same background as window overlay - no color changes based on active state
|
|
427
|
+
self.layer.backgroundColor = [[NSColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.3] CGColor];
|
|
428
|
+
|
|
426
429
|
if (isActive) {
|
|
427
|
-
// Active screen:
|
|
428
|
-
self.layer.borderColor = [[NSColor colorWithRed:0.24 green:0.0 blue:0.69 alpha:0.
|
|
429
|
-
self.layer.backgroundColor = [[NSColor colorWithRed:0.24 green:0.0 blue:0.69 alpha:0.278] CGColor];
|
|
430
|
+
// Active screen: purple border
|
|
431
|
+
self.layer.borderColor = [[NSColor colorWithRed:0.24 green:0.0 blue:0.69 alpha:0.0] CGColor];
|
|
430
432
|
} else {
|
|
431
|
-
// Inactive screen:
|
|
432
|
-
self.layer.borderColor = [[NSColor colorWithRed:0.27 green:0.0 blue:0.77 alpha:0.
|
|
433
|
-
self.layer.backgroundColor = [[NSColor colorWithRed:0.27 green:0.0 blue:0.77 alpha:0.18] CGColor];
|
|
433
|
+
// Inactive screen: purple border
|
|
434
|
+
self.layer.borderColor = [[NSColor colorWithRed:0.27 green:0.0 blue:0.77 alpha:0.0] CGColor];
|
|
434
435
|
}
|
|
435
436
|
}
|
|
436
437
|
|