node-mac-recorder 2.5.7 → 2.5.9
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 +43 -13
package/package.json
CHANGED
package/src/window_selector.mm
CHANGED
|
@@ -62,18 +62,27 @@ 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
|
}
|
|
68
76
|
|
|
69
77
|
- (void)drawRect:(NSRect)dirtyRect {
|
|
70
|
-
|
|
78
|
+
// Don't call super to avoid any default drawing
|
|
79
|
+
// [super drawRect:dirtyRect];
|
|
71
80
|
|
|
72
81
|
if (!self.windowInfo) return;
|
|
73
82
|
|
|
74
|
-
//
|
|
75
|
-
[[NSColor colorWithRed:0.5 green:0.
|
|
76
|
-
NSRectFill(self.bounds);
|
|
83
|
+
// No background fill - completely transparent overlay
|
|
84
|
+
// [[NSColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:0.15] setFill];
|
|
85
|
+
// NSRectFill(self.bounds);
|
|
77
86
|
|
|
78
87
|
// Ensure no borders or frames are drawn
|
|
79
88
|
// Text will be handled by separate label above button
|
|
@@ -96,6 +105,14 @@ bool hideScreenRecordingPreview();
|
|
|
96
105
|
// Ensure no borders or decorations
|
|
97
106
|
self.layer.borderWidth = 0.0;
|
|
98
107
|
self.layer.cornerRadius = 0.0;
|
|
108
|
+
self.layer.borderColor = [[NSColor clearColor] CGColor];
|
|
109
|
+
self.layer.shadowOpacity = 0.0;
|
|
110
|
+
self.layer.shadowRadius = 0.0;
|
|
111
|
+
self.layer.shadowOffset = NSMakeSize(0, 0);
|
|
112
|
+
self.layer.masksToBounds = YES;
|
|
113
|
+
|
|
114
|
+
// Disable focus ring and other default behaviors
|
|
115
|
+
[self setFocusRingType:NSFocusRingTypeNone];
|
|
99
116
|
}
|
|
100
117
|
return self;
|
|
101
118
|
}
|
|
@@ -151,19 +168,28 @@ bool hideScreenRecordingPreview();
|
|
|
151
168
|
// Ensure no borders or decorations
|
|
152
169
|
self.layer.borderWidth = 0.0;
|
|
153
170
|
self.layer.cornerRadius = 0.0;
|
|
171
|
+
self.layer.borderColor = [[NSColor clearColor] CGColor];
|
|
172
|
+
self.layer.shadowOpacity = 0.0;
|
|
173
|
+
self.layer.shadowRadius = 0.0;
|
|
174
|
+
self.layer.shadowOffset = NSMakeSize(0, 0);
|
|
175
|
+
self.layer.masksToBounds = YES;
|
|
176
|
+
|
|
177
|
+
// Disable focus ring and other default behaviors
|
|
178
|
+
[self setFocusRingType:NSFocusRingTypeNone];
|
|
154
179
|
}
|
|
155
180
|
return self;
|
|
156
181
|
}
|
|
157
182
|
|
|
158
183
|
- (void)drawRect:(NSRect)dirtyRect {
|
|
159
|
-
|
|
184
|
+
// Don't call super to avoid any default drawing
|
|
185
|
+
// [super drawRect:dirtyRect];
|
|
160
186
|
|
|
161
187
|
if (!self.screenInfo) return;
|
|
162
188
|
|
|
163
|
-
//
|
|
189
|
+
// No background fill - completely transparent overlay
|
|
164
190
|
// Ensure no borders or frames are drawn
|
|
165
|
-
[[NSColor colorWithRed:0.5 green:0.
|
|
166
|
-
NSRectFill(self.bounds);
|
|
191
|
+
// [[NSColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:0.2] setFill];
|
|
192
|
+
// NSRectFill(self.bounds);
|
|
167
193
|
|
|
168
194
|
// Text will be handled by separate label above button
|
|
169
195
|
}
|
|
@@ -523,7 +549,7 @@ void updateOverlay() {
|
|
|
523
549
|
[appIconView setWantsLayer:YES];
|
|
524
550
|
[appIconView.layer setCornerRadius:8.0];
|
|
525
551
|
[appIconView.layer setMasksToBounds:YES];
|
|
526
|
-
[appIconView.layer setBackgroundColor:[[NSColor colorWithRed:0.2 green:0.2 blue:0.
|
|
552
|
+
[appIconView.layer setBackgroundColor:[[NSColor colorWithRed:0.2 green:0.2 blue:0.1 alpha:0.3] CGColor]]; // Debug background
|
|
527
553
|
[g_overlayWindow.contentView addSubview:appIconView];
|
|
528
554
|
NSLog(@"🖼️ Created app icon view at frame: (%.0f, %.0f, %.0f, %.0f)",
|
|
529
555
|
appIconView.frame.origin.x, appIconView.frame.origin.y,
|
|
@@ -869,7 +895,7 @@ bool startScreenSelection() {
|
|
|
869
895
|
|
|
870
896
|
// Modern button styling with purple tone
|
|
871
897
|
[selectButton setWantsLayer:YES];
|
|
872
|
-
[selectButton.layer setBackgroundColor:[[NSColor colorWithRed:0.55 green:0.3 blue:0.
|
|
898
|
+
[selectButton.layer setBackgroundColor:[[NSColor colorWithRed:0.55 green:0.3 blue:0.3 alpha:0.95] CGColor]];
|
|
873
899
|
[selectButton.layer setCornerRadius:8.0];
|
|
874
900
|
[selectButton.layer setBorderWidth:0.0];
|
|
875
901
|
|
|
@@ -911,7 +937,7 @@ bool startScreenSelection() {
|
|
|
911
937
|
|
|
912
938
|
// Modern cancel button styling - darker gray, clean
|
|
913
939
|
[screenCancelButton setWantsLayer:YES];
|
|
914
|
-
[screenCancelButton.layer setBackgroundColor:[[NSColor colorWithRed:0.35 green:0.35 blue:0.
|
|
940
|
+
[screenCancelButton.layer setBackgroundColor:[[NSColor colorWithRed:0.35 green:0.35 blue:0.2 alpha:0.9] CGColor]];
|
|
915
941
|
[screenCancelButton.layer setCornerRadius:8.0];
|
|
916
942
|
[screenCancelButton.layer setBorderWidth:0.0];
|
|
917
943
|
|
|
@@ -1185,6 +1211,10 @@ Napi::Value StartWindowSelection(const Napi::CallbackInfo& info) {
|
|
|
1185
1211
|
[g_overlayView.layer setBorderWidth:0.0];
|
|
1186
1212
|
[g_overlayView.layer setCornerRadius:0.0];
|
|
1187
1213
|
[g_overlayView.layer setMasksToBounds:YES];
|
|
1214
|
+
[g_overlayView.layer setBorderColor:[[NSColor clearColor] CGColor]];
|
|
1215
|
+
[g_overlayView.layer setShadowOpacity:0.0];
|
|
1216
|
+
[g_overlayView.layer setShadowRadius:0.0];
|
|
1217
|
+
[g_overlayView.layer setShadowOffset:NSMakeSize(0, 0)];
|
|
1188
1218
|
|
|
1189
1219
|
// Create select button with purple theme
|
|
1190
1220
|
g_selectButton = [[NSButton alloc] initWithFrame:NSMakeRect(0, 0, 200, 60)];
|
|
@@ -1195,7 +1225,7 @@ Napi::Value StartWindowSelection(const Napi::CallbackInfo& info) {
|
|
|
1195
1225
|
|
|
1196
1226
|
// Modern button styling with purple tone
|
|
1197
1227
|
[g_selectButton setWantsLayer:YES];
|
|
1198
|
-
[g_selectButton.layer setBackgroundColor:[[NSColor colorWithRed:0.55 green:0.3 blue:0.
|
|
1228
|
+
[g_selectButton.layer setBackgroundColor:[[NSColor colorWithRed:0.55 green:0.3 blue:0.3 alpha:0.95] CGColor]];
|
|
1199
1229
|
[g_selectButton.layer setCornerRadius:8.0];
|
|
1200
1230
|
[g_selectButton.layer setBorderWidth:0.0];
|
|
1201
1231
|
|
|
@@ -1234,7 +1264,7 @@ Napi::Value StartWindowSelection(const Napi::CallbackInfo& info) {
|
|
|
1234
1264
|
|
|
1235
1265
|
// Modern cancel button styling - darker gray, clean
|
|
1236
1266
|
[cancelButton setWantsLayer:YES];
|
|
1237
|
-
[cancelButton.layer setBackgroundColor:[[NSColor colorWithRed:0.35 green:0.35 blue:0.
|
|
1267
|
+
[cancelButton.layer setBackgroundColor:[[NSColor colorWithRed:0.35 green:0.35 blue:0.2 alpha:0.9] CGColor]];
|
|
1238
1268
|
[cancelButton.layer setCornerRadius:8.0];
|
|
1239
1269
|
[cancelButton.layer setBorderWidth:0.0];
|
|
1240
1270
|
|