node-mac-recorder 2.10.37 → 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.37",
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;
@@ -390,7 +377,7 @@ void updateScreenOverlays();
390
377
  // Semi-transparent background for screen overlay (same as window overlay)
391
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;
380
+ self.layer.borderWidth = 0.0;
394
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;
@@ -425,14 +412,7 @@ void updateScreenOverlays();
425
412
 
426
413
  // Always use same background as window overlay - no color changes based on active state
427
414
  self.layer.backgroundColor = [[NSColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.3] CGColor];
428
-
429
- 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];
432
- } else {
433
- // Inactive screen: purple border
434
- self.layer.borderColor = [[NSColor colorWithRed:0.27 green:0.0 blue:0.77 alpha:0.0] CGColor];
435
- }
415
+
436
416
  }
437
417
 
438
418
  @end
@@ -907,7 +887,7 @@ void updateOverlay() {
907
887
  [appIconView.layer setBackgroundColor:[[NSColor colorWithRed:0.2 green:0.2 blue:0.2 alpha:0.3] CGColor]]; // Debug background
908
888
 
909
889
  // Force no borders on app icon view
910
- appIconView.layer.borderWidth = 1.0;
890
+ appIconView.layer.borderWidth = 0.0;
911
891
  appIconView.layer.borderColor = [[NSColor clearColor] CGColor];
912
892
  appIconView.layer.shadowOpacity = 0.0;
913
893
  appIconView.layer.shadowRadius = 0.0;