node-mac-recorder 2.5.7 → 2.5.8
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 +1 -1
- package/src/window_selector.mm +30 -6
package/package.json
CHANGED
package/src/window_selector.mm
CHANGED
|
@@ -62,6 +62,14 @@ bool hideScreenRecordingPreview();
|
|
|
62
62
|
// Ensure no borders or decorations
|
|
63
63
|
self.layer.borderWidth = 0.0;
|
|
64
64
|
self.layer.cornerRadius = 0.0;
|
|
65
|
+
self.layer.borderColor = [[NSColor clearColor] CGColor];
|
|
66
|
+
self.layer.shadowOpacity = 0.0;
|
|
67
|
+
self.layer.shadowRadius = 0.0;
|
|
68
|
+
self.layer.shadowOffset = NSMakeSize(0, 0);
|
|
69
|
+
self.layer.masksToBounds = YES;
|
|
70
|
+
|
|
71
|
+
// Disable focus ring and other default behaviors
|
|
72
|
+
[self setFocusRingType:NSFocusRingTypeNone];
|
|
65
73
|
}
|
|
66
74
|
return self;
|
|
67
75
|
}
|
|
@@ -71,9 +79,9 @@ bool hideScreenRecordingPreview();
|
|
|
71
79
|
|
|
72
80
|
if (!self.windowInfo) return;
|
|
73
81
|
|
|
74
|
-
//
|
|
75
|
-
[[NSColor colorWithRed:0.5 green:0.
|
|
76
|
-
NSRectFill(self.bounds);
|
|
82
|
+
// No background fill - completely transparent overlay
|
|
83
|
+
// [[NSColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:0.15] setFill];
|
|
84
|
+
// NSRectFill(self.bounds);
|
|
77
85
|
|
|
78
86
|
// Ensure no borders or frames are drawn
|
|
79
87
|
// Text will be handled by separate label above button
|
|
@@ -96,6 +104,14 @@ bool hideScreenRecordingPreview();
|
|
|
96
104
|
// Ensure no borders or decorations
|
|
97
105
|
self.layer.borderWidth = 0.0;
|
|
98
106
|
self.layer.cornerRadius = 0.0;
|
|
107
|
+
self.layer.borderColor = [[NSColor clearColor] CGColor];
|
|
108
|
+
self.layer.shadowOpacity = 0.0;
|
|
109
|
+
self.layer.shadowRadius = 0.0;
|
|
110
|
+
self.layer.shadowOffset = NSMakeSize(0, 0);
|
|
111
|
+
self.layer.masksToBounds = YES;
|
|
112
|
+
|
|
113
|
+
// Disable focus ring and other default behaviors
|
|
114
|
+
[self setFocusRingType:NSFocusRingTypeNone];
|
|
99
115
|
}
|
|
100
116
|
return self;
|
|
101
117
|
}
|
|
@@ -151,6 +167,14 @@ bool hideScreenRecordingPreview();
|
|
|
151
167
|
// Ensure no borders or decorations
|
|
152
168
|
self.layer.borderWidth = 0.0;
|
|
153
169
|
self.layer.cornerRadius = 0.0;
|
|
170
|
+
self.layer.borderColor = [[NSColor clearColor] CGColor];
|
|
171
|
+
self.layer.shadowOpacity = 0.0;
|
|
172
|
+
self.layer.shadowRadius = 0.0;
|
|
173
|
+
self.layer.shadowOffset = NSMakeSize(0, 0);
|
|
174
|
+
self.layer.masksToBounds = YES;
|
|
175
|
+
|
|
176
|
+
// Disable focus ring and other default behaviors
|
|
177
|
+
[self setFocusRingType:NSFocusRingTypeNone];
|
|
154
178
|
}
|
|
155
179
|
return self;
|
|
156
180
|
}
|
|
@@ -160,10 +184,10 @@ bool hideScreenRecordingPreview();
|
|
|
160
184
|
|
|
161
185
|
if (!self.screenInfo) return;
|
|
162
186
|
|
|
163
|
-
//
|
|
187
|
+
// No background fill - completely transparent overlay
|
|
164
188
|
// Ensure no borders or frames are drawn
|
|
165
|
-
[[NSColor colorWithRed:0.5 green:0.
|
|
166
|
-
NSRectFill(self.bounds);
|
|
189
|
+
// [[NSColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:0.2] setFill];
|
|
190
|
+
// NSRectFill(self.bounds);
|
|
167
191
|
|
|
168
192
|
// Text will be handled by separate label above button
|
|
169
193
|
}
|