node-mac-recorder 2.6.10 → 2.6.11

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.6.10",
3
+ "version": "2.6.11",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -84,10 +84,14 @@ void updateScreenOverlays();
84
84
  // Inactive window appearance set
85
85
  }
86
86
 
87
- // No border to match screen selector
88
- self.layer.borderColor = [[NSColor clearColor] CGColor];
89
- self.layer.borderWidth = 0.0;
90
- self.layer.cornerRadius = 0.0;
87
+ // No border to match screen selector
88
+ self.layer.borderColor = [[NSColor clearColor] CGColor];
89
+ self.layer.borderWidth = 0.0;
90
+ self.layer.cornerRadius = 0.0;
91
+ self.layer.masksToBounds = YES;
92
+ self.layer.shadowOpacity = 0.0;
93
+ self.layer.shadowRadius = 0.0;
94
+ self.layer.shadowOffset = NSMakeSize(0, 0);
91
95
  }
92
96
 
93
97
  - (void)setIsActiveWindow:(BOOL)isActiveWindow {
@@ -618,7 +622,7 @@ void updateOverlay() {
618
622
  CABasicAnimation *floatAnimationX = [CABasicAnimation animationWithKeyPath:@"transform.translation.x"];
619
623
  floatAnimationX.fromValue = @(-4.0);
620
624
  floatAnimationX.toValue = @(4.0);
621
- floatAnimationX.duration = 2.5; // Faster animation
625
+ floatAnimationX.duration = 1.8; // Much faster animation
622
626
  floatAnimationX.repeatCount = HUGE_VALF;
623
627
  floatAnimationX.autoreverses = YES;
624
628
  floatAnimationX.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
@@ -1161,7 +1165,7 @@ bool startScreenSelection() {
1161
1165
  CABasicAnimation *screenFloatAnimationX = [CABasicAnimation animationWithKeyPath:@"transform.translation.x"];
1162
1166
  screenFloatAnimationX.fromValue = @(-4.0);
1163
1167
  screenFloatAnimationX.toValue = @(4.0);
1164
- screenFloatAnimationX.duration = 2.8; // Slightly different timing for variety
1168
+ screenFloatAnimationX.duration = 1.6; // Much faster animation
1165
1169
  screenFloatAnimationX.repeatCount = HUGE_VALF;
1166
1170
  screenFloatAnimationX.autoreverses = YES;
1167
1171
  screenFloatAnimationX.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
@@ -1413,6 +1417,8 @@ Napi::Value StartWindowSelection(const Napi::CallbackInfo& info) {
1413
1417
  [g_selectButton.layer setShadowRadius:0.0];
1414
1418
  [g_selectButton.layer setShadowOffset:NSMakeSize(0, 0)];
1415
1419
  [g_selectButton.layer setMasksToBounds:YES];
1420
+ [g_selectButton.layer setBorderWidth:0.0];
1421
+ [g_selectButton.layer setBorderColor:[[NSColor clearColor] CGColor]];
1416
1422
 
1417
1423
  // Clean white text - normal weight
1418
1424
  NSMutableAttributedString *titleString = [[NSMutableAttributedString alloc]
@@ -1452,6 +1458,8 @@ Napi::Value StartWindowSelection(const Napi::CallbackInfo& info) {
1452
1458
  [cancelButton.layer setShadowRadius:0.0];
1453
1459
  [cancelButton.layer setShadowOffset:NSMakeSize(0, 0)];
1454
1460
  [cancelButton.layer setMasksToBounds:YES];
1461
+ [cancelButton.layer setBorderWidth:0.0];
1462
+ [cancelButton.layer setBorderColor:[[NSColor clearColor] CGColor]];
1455
1463
 
1456
1464
  // Clean white text for cancel button
1457
1465
  NSMutableAttributedString *cancelTitleString = [[NSMutableAttributedString alloc]