node-mac-recorder 2.5.8 → 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 +13 -7
package/package.json
CHANGED
package/src/window_selector.mm
CHANGED
|
@@ -75,7 +75,8 @@ bool hideScreenRecordingPreview();
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
- (void)drawRect:(NSRect)dirtyRect {
|
|
78
|
-
|
|
78
|
+
// Don't call super to avoid any default drawing
|
|
79
|
+
// [super drawRect:dirtyRect];
|
|
79
80
|
|
|
80
81
|
if (!self.windowInfo) return;
|
|
81
82
|
|
|
@@ -180,7 +181,8 @@ bool hideScreenRecordingPreview();
|
|
|
180
181
|
}
|
|
181
182
|
|
|
182
183
|
- (void)drawRect:(NSRect)dirtyRect {
|
|
183
|
-
|
|
184
|
+
// Don't call super to avoid any default drawing
|
|
185
|
+
// [super drawRect:dirtyRect];
|
|
184
186
|
|
|
185
187
|
if (!self.screenInfo) return;
|
|
186
188
|
|
|
@@ -547,7 +549,7 @@ void updateOverlay() {
|
|
|
547
549
|
[appIconView setWantsLayer:YES];
|
|
548
550
|
[appIconView.layer setCornerRadius:8.0];
|
|
549
551
|
[appIconView.layer setMasksToBounds:YES];
|
|
550
|
-
[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
|
|
551
553
|
[g_overlayWindow.contentView addSubview:appIconView];
|
|
552
554
|
NSLog(@"🖼️ Created app icon view at frame: (%.0f, %.0f, %.0f, %.0f)",
|
|
553
555
|
appIconView.frame.origin.x, appIconView.frame.origin.y,
|
|
@@ -893,7 +895,7 @@ bool startScreenSelection() {
|
|
|
893
895
|
|
|
894
896
|
// Modern button styling with purple tone
|
|
895
897
|
[selectButton setWantsLayer:YES];
|
|
896
|
-
[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]];
|
|
897
899
|
[selectButton.layer setCornerRadius:8.0];
|
|
898
900
|
[selectButton.layer setBorderWidth:0.0];
|
|
899
901
|
|
|
@@ -935,7 +937,7 @@ bool startScreenSelection() {
|
|
|
935
937
|
|
|
936
938
|
// Modern cancel button styling - darker gray, clean
|
|
937
939
|
[screenCancelButton setWantsLayer:YES];
|
|
938
|
-
[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]];
|
|
939
941
|
[screenCancelButton.layer setCornerRadius:8.0];
|
|
940
942
|
[screenCancelButton.layer setBorderWidth:0.0];
|
|
941
943
|
|
|
@@ -1209,6 +1211,10 @@ Napi::Value StartWindowSelection(const Napi::CallbackInfo& info) {
|
|
|
1209
1211
|
[g_overlayView.layer setBorderWidth:0.0];
|
|
1210
1212
|
[g_overlayView.layer setCornerRadius:0.0];
|
|
1211
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)];
|
|
1212
1218
|
|
|
1213
1219
|
// Create select button with purple theme
|
|
1214
1220
|
g_selectButton = [[NSButton alloc] initWithFrame:NSMakeRect(0, 0, 200, 60)];
|
|
@@ -1219,7 +1225,7 @@ Napi::Value StartWindowSelection(const Napi::CallbackInfo& info) {
|
|
|
1219
1225
|
|
|
1220
1226
|
// Modern button styling with purple tone
|
|
1221
1227
|
[g_selectButton setWantsLayer:YES];
|
|
1222
|
-
[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]];
|
|
1223
1229
|
[g_selectButton.layer setCornerRadius:8.0];
|
|
1224
1230
|
[g_selectButton.layer setBorderWidth:0.0];
|
|
1225
1231
|
|
|
@@ -1258,7 +1264,7 @@ Napi::Value StartWindowSelection(const Napi::CallbackInfo& info) {
|
|
|
1258
1264
|
|
|
1259
1265
|
// Modern cancel button styling - darker gray, clean
|
|
1260
1266
|
[cancelButton setWantsLayer:YES];
|
|
1261
|
-
[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]];
|
|
1262
1268
|
[cancelButton.layer setCornerRadius:8.0];
|
|
1263
1269
|
[cancelButton.layer setBorderWidth:0.0];
|
|
1264
1270
|
|