node-mac-recorder 2.10.36 → 2.10.38

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.36",
3
+ "version": "2.10.38",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -224,20 +224,7 @@ void updateScreenOverlays();
224
224
  self.isHovered = YES;
225
225
  [[NSCursor pointingHandCursor] set];
226
226
 
227
- // Brighten background on hover
228
- if (self.layer.backgroundColor) {
229
- CGFloat red, green, blue, alpha;
230
- NSColor *currentColor = [NSColor colorWithCGColor:self.layer.backgroundColor];
231
- [currentColor getRed:&red green:&green blue:&blue alpha:&alpha];
232
-
233
- // Increase brightness by 20%
234
- red = MIN(1.0, red * 1.2);
235
- green = MIN(1.0, green * 1.2);
236
- blue = MIN(1.0, blue * 1.2);
237
-
238
- NSColor *brighterColor = [NSColor colorWithRed:red green:green blue:blue alpha:alpha];
239
- self.layer.backgroundColor = [brighterColor CGColor];
240
- }
227
+
241
228
  }
242
229
 
243
230
  - (void)mouseExited:(NSEvent *)event {
@@ -329,7 +316,7 @@ void updateScreenOverlays();
329
316
  // Semi-transparent black background for screen overlay (same as window overlay)
330
317
  self.layer.backgroundColor = [[NSColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.3] CGColor];
331
318
  // Ensure no borders or decorations
332
- self.layer.borderWidth = 1.0;
319
+ self.layer.borderWidth = 0.0;
333
320
  self.layer.cornerRadius = 8.0;
334
321
  self.layer.masksToBounds = YES;
335
322
  self.layer.shadowOpacity = 0.0;
@@ -387,11 +374,11 @@ void updateScreenOverlays();
387
374
  self = [super initWithFrame:frameRect];
388
375
  if (self) {
389
376
  self.wantsLayer = YES;
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];
377
+ // Semi-transparent background for screen overlay (same as window overlay)
378
+ self.layer.backgroundColor = [[NSColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.3] CGColor];
392
379
  // Blue border for screen selection (same as window highlight)
393
- self.layer.borderWidth = 1.0;
394
- self.layer.borderColor = [[NSColor colorWithRed:0.27 green:0.0 blue:0.77 alpha:0.9] CGColor];
380
+ self.layer.borderWidth = 0.0;
381
+ self.layer.borderColor = [[NSColor colorWithRed:0.27 green:0.0 blue:0.77 alpha:0.0] CGColor];
395
382
  self.layer.cornerRadius = 8.0;
396
383
  self.layer.masksToBounds = YES;
397
384
  self.layer.shadowOpacity = 0.0;
@@ -423,15 +410,9 @@ void updateScreenOverlays();
423
410
  - (void)setIsActiveScreen:(BOOL)isActive {
424
411
  _isActiveScreen = isActive;
425
412
 
426
- if (isActive) {
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];
430
- } else {
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];
434
- }
413
+ // Always use same background as window overlay - no color changes based on active state
414
+ self.layer.backgroundColor = [[NSColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.3] CGColor];
415
+
435
416
  }
436
417
 
437
418
  @end
@@ -906,7 +887,7 @@ void updateOverlay() {
906
887
  [appIconView.layer setBackgroundColor:[[NSColor colorWithRed:0.2 green:0.2 blue:0.2 alpha:0.3] CGColor]]; // Debug background
907
888
 
908
889
  // Force no borders on app icon view
909
- appIconView.layer.borderWidth = 1.0;
890
+ appIconView.layer.borderWidth = 0.0;
910
891
  appIconView.layer.borderColor = [[NSColor clearColor] CGColor];
911
892
  appIconView.layer.shadowOpacity = 0.0;
912
893
  appIconView.layer.shadowRadius = 0.0;