node-mac-recorder 2.10.23 → 2.10.25

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.23",
3
+ "version": "2.10.25",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -108,19 +108,26 @@ void updateScreenOverlays();
108
108
  xRadius:8.0
109
109
  yRadius:8.0];
110
110
 
111
- // Fill color only - no border
111
+ // Fill color with 1px border
112
112
  NSColor *fillColor;
113
+ NSColor *strokeColor;
113
114
 
114
115
  if (self.isToggled) {
115
116
  // Locked state: slightly different opacity
116
117
  fillColor = [NSColor colorWithRed:0.6 green:0.4 blue:0.9 alpha:0.5];
118
+ strokeColor = [NSColor colorWithRed:0.45 green:0.25 blue:0.75 alpha:0.9];
117
119
  } else {
118
120
  // Normal state: standard fill
119
121
  fillColor = [NSColor colorWithRed:0.6 green:0.4 blue:0.9 alpha:0.4];
122
+ strokeColor = [NSColor whiteColor];
120
123
  }
121
124
 
122
125
  [fillColor setFill];
123
126
  [highlightPath fill];
127
+
128
+ [strokeColor setStroke];
129
+ [highlightPath setLineWidth:1.0];
130
+ [highlightPath stroke];
124
131
  }
125
132
 
126
133
  - (void)updateAppearance {
@@ -210,13 +217,11 @@ void updateScreenOverlays();
210
217
 
211
218
  - (void)mouseEntered:(NSEvent *)event {
212
219
  self.isHovered = YES;
213
- [self animateScale:1.2 duration:0.15];
214
220
  [[NSCursor pointingHandCursor] set];
215
221
  }
216
222
 
217
223
  - (void)mouseExited:(NSEvent *)event {
218
224
  self.isHovered = NO;
219
- [self animateScale:1.0 duration:0.15];
220
225
  [[NSCursor arrowCursor] set];
221
226
  }
222
227
 
@@ -546,6 +551,9 @@ NSArray* getAllSelectableWindows() {
546
551
  if ([windowOwner isEqualToString:@"WindowServer"]) continue;
547
552
  if ([windowOwner isEqualToString:@"Dock"]) continue;
548
553
 
554
+ // Skip Electron windows (our own overlay)
555
+ if ([windowOwner containsString:@"Electron"] || [windowOwner containsString:@"node"]) continue;
556
+
549
557
  // Extract bounds
550
558
  int x = [[bounds objectForKey:@"X"] intValue];
551
559
  int y = [[bounds objectForKey:@"Y"] intValue];
@@ -1358,7 +1366,7 @@ bool startScreenSelection() {
1358
1366
 
1359
1367
  // Modern button styling with new RGB color
1360
1368
  [selectButton setWantsLayer:YES];
1361
- [selectButton.layer setBackgroundColor:[[NSColor colorWithRed:77.0/255.0 green:30.0/255.0 blue:231.0/255.0 alpha:0.95] CGColor]];
1369
+ [selectButton.layer setBackgroundColor:[[NSColor colorWithRed:90.0/255.0 green:50.0/255.0 blue:250.0/255.0 alpha:1.0] CGColor]];
1362
1370
  [selectButton.layer setCornerRadius:8.0];
1363
1371
  [selectButton.layer setBorderWidth:0.0];
1364
1372
 
@@ -1400,7 +1408,7 @@ bool startScreenSelection() {
1400
1408
 
1401
1409
  // Modern cancel button styling - darker gray, clean
1402
1410
  [screenCancelButton setWantsLayer:YES];
1403
- [screenCancelButton.layer setBackgroundColor:[[NSColor colorWithRed:0.35 green:0.35 blue:0.4 alpha:0.9] CGColor]];
1411
+ [screenCancelButton.layer setBackgroundColor:[[NSColor colorWithRed:0.4 green:0.4 blue:0.45 alpha:1.0] CGColor]];
1404
1412
  [screenCancelButton.layer setCornerRadius:8.0];
1405
1413
  [screenCancelButton.layer setBorderWidth:0.0];
1406
1414
 
@@ -1775,7 +1783,7 @@ Napi::Value StartWindowSelection(const Napi::CallbackInfo& info) {
1775
1783
 
1776
1784
  // Modern button styling with new RGB color
1777
1785
  [g_selectButton setWantsLayer:YES];
1778
- [g_selectButton.layer setBackgroundColor:[[NSColor colorWithRed:77.0/255.0 green:30.0/255.0 blue:231.0/255.0 alpha:0.95] CGColor]];
1786
+ [g_selectButton.layer setBackgroundColor:[[NSColor colorWithRed:90.0/255.0 green:50.0/255.0 blue:250.0/255.0 alpha:1.0] CGColor]];
1779
1787
  [g_selectButton.layer setCornerRadius:8.0];
1780
1788
  [g_selectButton.layer setBorderWidth:0.0];
1781
1789
 
@@ -1816,7 +1824,7 @@ Napi::Value StartWindowSelection(const Napi::CallbackInfo& info) {
1816
1824
 
1817
1825
  // Modern cancel button styling - darker gray, clean
1818
1826
  [cancelButton setWantsLayer:YES];
1819
- [cancelButton.layer setBackgroundColor:[[NSColor colorWithRed:0.35 green:0.35 blue:0.4 alpha:0.9] CGColor]];
1827
+ [cancelButton.layer setBackgroundColor:[[NSColor colorWithRed:0.4 green:0.4 blue:0.45 alpha:1.0] CGColor]];
1820
1828
  [cancelButton.layer setCornerRadius:8.0];
1821
1829
  [cancelButton.layer setBorderWidth:0.0];
1822
1830