node-mac-recorder 2.5.6 → 2.5.7
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 +27 -3
package/package.json
CHANGED
package/src/window_selector.mm
CHANGED
|
@@ -729,6 +729,11 @@ bool showRecordingPreview(NSDictionary *windowInfo) {
|
|
|
729
729
|
[g_recordingPreviewWindow setMovable:NO];
|
|
730
730
|
[g_recordingPreviewWindow setMovableByWindowBackground:NO];
|
|
731
731
|
|
|
732
|
+
// Additional window styling to completely remove borders
|
|
733
|
+
[g_recordingPreviewWindow setToolbar:nil];
|
|
734
|
+
[g_recordingPreviewWindow setShowsResizeIndicator:NO];
|
|
735
|
+
[g_recordingPreviewWindow setShowsToolbarButton:NO];
|
|
736
|
+
|
|
732
737
|
// Create preview view
|
|
733
738
|
g_recordingPreviewView = [[RecordingPreviewView alloc] initWithFrame:screenFrame];
|
|
734
739
|
[(RecordingPreviewView *)g_recordingPreviewView setRecordingWindowInfo:windowInfo];
|
|
@@ -842,11 +847,18 @@ bool startScreenSelection() {
|
|
|
842
847
|
[overlayWindow setMovable:NO];
|
|
843
848
|
[overlayWindow setMovableByWindowBackground:NO];
|
|
844
849
|
|
|
850
|
+
|
|
851
|
+
|
|
845
852
|
// Create overlay view
|
|
846
853
|
ScreenSelectorOverlayView *overlayView = [[ScreenSelectorOverlayView alloc] initWithFrame:screenFrame];
|
|
847
854
|
[overlayView setScreenInfo:screenInfo];
|
|
848
855
|
[overlayWindow setContentView:overlayView];
|
|
849
856
|
|
|
857
|
+
// Additional window styling to completely remove borders
|
|
858
|
+
[overlayWindow setToolbar:nil];
|
|
859
|
+
[overlayWindow setShowsResizeIndicator:NO];
|
|
860
|
+
[overlayWindow setShowsToolbarButton:NO];
|
|
861
|
+
|
|
850
862
|
// Create select button with more padding
|
|
851
863
|
NSButton *selectButton = [[NSButton alloc] initWithFrame:NSMakeRect(0, 0, 200, 60)];
|
|
852
864
|
[selectButton setTitle:@"Start Record"];
|
|
@@ -1091,6 +1103,11 @@ bool showScreenRecordingPreview(NSDictionary *screenInfo) {
|
|
|
1091
1103
|
[overlayWindow setMovable:NO];
|
|
1092
1104
|
[overlayWindow setMovableByWindowBackground:NO];
|
|
1093
1105
|
|
|
1106
|
+
// Additional window styling to completely remove borders
|
|
1107
|
+
[overlayWindow setToolbar:nil];
|
|
1108
|
+
[overlayWindow setShowsResizeIndicator:NO];
|
|
1109
|
+
[overlayWindow setShowsToolbarButton:NO];
|
|
1110
|
+
|
|
1094
1111
|
[overlayWindow orderFront:nil];
|
|
1095
1112
|
[overlayWindow makeKeyAndOrderFront:nil];
|
|
1096
1113
|
|
|
@@ -1154,13 +1171,20 @@ Napi::Value StartWindowSelection(const Napi::CallbackInfo& info) {
|
|
|
1154
1171
|
[g_overlayWindow setMovable:NO];
|
|
1155
1172
|
[g_overlayWindow setMovableByWindowBackground:NO];
|
|
1156
1173
|
|
|
1174
|
+
// Additional window styling to completely remove borders
|
|
1175
|
+
[g_overlayWindow setToolbar:nil];
|
|
1176
|
+
[g_overlayWindow setShowsResizeIndicator:NO];
|
|
1177
|
+
[g_overlayWindow setShowsToolbarButton:NO];
|
|
1178
|
+
|
|
1157
1179
|
// Create overlay view
|
|
1158
1180
|
g_overlayView = [[WindowSelectorOverlayView alloc] initWithFrame:initialFrame];
|
|
1159
1181
|
[g_overlayWindow setContentView:g_overlayView];
|
|
1160
1182
|
|
|
1161
|
-
//
|
|
1162
|
-
[
|
|
1163
|
-
[
|
|
1183
|
+
// Ensure view layer has no borders
|
|
1184
|
+
[g_overlayView setWantsLayer:YES];
|
|
1185
|
+
[g_overlayView.layer setBorderWidth:0.0];
|
|
1186
|
+
[g_overlayView.layer setCornerRadius:0.0];
|
|
1187
|
+
[g_overlayView.layer setMasksToBounds:YES];
|
|
1164
1188
|
|
|
1165
1189
|
// Create select button with purple theme
|
|
1166
1190
|
g_selectButton = [[NSButton alloc] initWithFrame:NSMakeRect(0, 0, 200, 60)];
|