node-mac-recorder 2.10.37 → 2.10.39

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mac-recorder",
3
- "version": "2.10.37",
3
+ "version": "2.10.39",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -387,11 +387,11 @@ void updateScreenOverlays();
387
387
  self = [super initWithFrame:frameRect];
388
388
  if (self) {
389
389
  self.wantsLayer = YES;
390
- // Semi-transparent background for screen overlay (same as window overlay)
391
- self.layer.backgroundColor = [[NSColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.3] CGColor];
390
+ // Semi-transparent blue background for screen overlay (same as window overlay blue tint)
391
+ self.layer.backgroundColor = [[NSColor colorWithRed:0.27 green:0.0 blue:0.77 alpha:0.18] 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.0] CGColor];
394
+ self.layer.borderColor = [[NSColor colorWithRed:0.27 green:0.0 blue:0.77 alpha:0.9] CGColor];
395
395
  self.layer.cornerRadius = 8.0;
396
396
  self.layer.masksToBounds = YES;
397
397
  self.layer.shadowOpacity = 0.0;
@@ -407,13 +407,13 @@ void updateScreenOverlays();
407
407
 
408
408
  if (!self.screenInfo) return;
409
409
 
410
- // Background with transparency - purple tone varies by active state
410
+ // Background with transparency - blue tone (same as window highlight)
411
411
  if (self.isActiveScreen) {
412
- // Active screen: brighter, more opaque
413
- [[NSColor colorWithRed:0.6 green:0.4 blue:0.9 alpha:0.4] setFill];
412
+ // Active screen: locked state blue (#3d00b047)
413
+ [[NSColor colorWithRed:0.24 green:0.0 blue:0.69 alpha:0.278] setFill];
414
414
  } else {
415
- // Inactive screen: dimmer, less opaque
416
- [[NSColor colorWithRed:0.4 green:0.2 blue:0.6 alpha:0.25] setFill];
415
+ // Inactive screen: normal state blue (#4400c52e)
416
+ [[NSColor colorWithRed:0.27 green:0.0 blue:0.77 alpha:0.18] setFill];
417
417
  }
418
418
  NSRectFill(self.bounds);
419
419
 
@@ -423,15 +423,14 @@ 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
-
429
426
  if (isActive) {
430
- // Active screen: purple border
431
- self.layer.borderColor = [[NSColor colorWithRed:0.24 green:0.0 blue:0.69 alpha:0.0] CGColor];
427
+ // Active screen: locked state blue border (same as window highlight locked)
428
+ self.layer.borderColor = [[NSColor colorWithRed:0.24 green:0.0 blue:0.69 alpha:0.95] CGColor];
429
+ self.layer.backgroundColor = [[NSColor colorWithRed:0.24 green:0.0 blue:0.69 alpha:0.278] CGColor];
432
430
  } else {
433
- // Inactive screen: purple border
434
- self.layer.borderColor = [[NSColor colorWithRed:0.27 green:0.0 blue:0.77 alpha:0.0] CGColor];
431
+ // Inactive screen: normal state blue border (same as window highlight normal)
432
+ self.layer.borderColor = [[NSColor colorWithRed:0.27 green:0.0 blue:0.77 alpha:0.9] CGColor];
433
+ self.layer.backgroundColor = [[NSColor colorWithRed:0.27 green:0.0 blue:0.77 alpha:0.18] CGColor];
435
434
  }
436
435
  }
437
436