node-mac-recorder 2.6.17 → 2.6.18

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.17",
3
+ "version": "2.6.18",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -1369,6 +1369,14 @@ bool showScreenRecordingPreview(NSDictionary *screenInfo) {
1369
1369
  [overlayWindow setAlphaValue:1.0];
1370
1370
  [overlayWindow setCollectionBehavior:NSWindowCollectionBehaviorStationary | NSWindowCollectionBehaviorCanJoinAllSpaces];
1371
1371
 
1372
+
1373
+ // Force content view to have no borders
1374
+ overlayWindow.contentView.wantsLayer = YES;
1375
+ overlayWindow.contentView.layer.borderWidth = 0.0;
1376
+ overlayWindow.contentView.layer.borderColor = [[NSColor clearColor] CGColor];
1377
+ overlayWindow.contentView.layer.cornerRadius = 0.0;
1378
+ overlayWindow.contentView.layer.masksToBounds = YES;
1379
+
1372
1380
  // Remove any default window decorations and borders
1373
1381
  [overlayWindow setTitlebarAppearsTransparent:YES];
1374
1382
  [overlayWindow setTitleVisibility:NSWindowTitleHidden];
@@ -1378,8 +1386,9 @@ bool showScreenRecordingPreview(NSDictionary *screenInfo) {
1378
1386
  // Force remove all borders and decorations
1379
1387
  [overlayWindow setHasShadow:NO];
1380
1388
  [overlayWindow setOpaque:NO];
1381
- [overlayWindow setBackgroundColor:[NSColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.5]];
1382
-
1389
+ [overlayWindow setBackgroundColor:[NSColor clearColor]];
1390
+
1391
+
1383
1392
  [overlayWindow orderFront:nil];
1384
1393
  [overlayWindow makeKeyAndOrderFront:nil];
1385
1394