node-mac-recorder 2.10.28 → 2.10.29
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 +10 -10
package/package.json
CHANGED
package/src/window_selector.mm
CHANGED
|
@@ -84,8 +84,8 @@ void updateScreenOverlays();
|
|
|
84
84
|
self.isActiveWindow = YES;
|
|
85
85
|
self.highlightFrame = NSZeroRect;
|
|
86
86
|
|
|
87
|
-
//
|
|
88
|
-
self.layer.backgroundColor = [[NSColor
|
|
87
|
+
// Semi-transparent background for full-screen overlay (50% less transparency = more opaque)
|
|
88
|
+
self.layer.backgroundColor = [[NSColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.3] CGColor];
|
|
89
89
|
|
|
90
90
|
// Disable focus ring completely
|
|
91
91
|
[self setFocusRingType:NSFocusRingTypeNone];
|
|
@@ -929,19 +929,19 @@ void updateOverlay() {
|
|
|
929
929
|
NSString *labelAppName = [windowUnderCursor objectForKey:@"appName"] ?: @"Unknown App";
|
|
930
930
|
[infoLabel setStringValue:[NSString stringWithFormat:@"%@\n%@", labelAppName, labelWindowTitle]];
|
|
931
931
|
|
|
932
|
-
// Position buttons - Start Record in absolute center of
|
|
932
|
+
// Position buttons - Start Record in absolute center of overlay
|
|
933
933
|
if (g_selectButton) {
|
|
934
934
|
NSSize buttonSize = [g_selectButton frame].size;
|
|
935
|
-
NSRect
|
|
935
|
+
NSRect overlayFrame = [g_overlayView frame]; // Use overlay view frame for proper centering
|
|
936
936
|
NSPoint buttonCenter = NSMakePoint(
|
|
937
|
-
(
|
|
938
|
-
(
|
|
937
|
+
(overlayFrame.size.width - buttonSize.width) / 2,
|
|
938
|
+
(overlayFrame.size.height - buttonSize.height) / 2 + 30 // Slightly above center
|
|
939
939
|
);
|
|
940
940
|
[g_selectButton setFrameOrigin:buttonCenter];
|
|
941
941
|
|
|
942
|
-
// Position app icon above text label in absolute
|
|
942
|
+
// Position app icon above text label in absolute overlay center
|
|
943
943
|
NSPoint iconCenter = NSMakePoint(
|
|
944
|
-
(
|
|
944
|
+
(overlayFrame.size.width - 96) / 2, // Center horizontally on overlay
|
|
945
945
|
buttonCenter.y + buttonSize.height + 60 + 10 // Above label + text height + margin
|
|
946
946
|
);
|
|
947
947
|
[appIconView setFrameOrigin:iconCenter];
|
|
@@ -962,9 +962,9 @@ void updateOverlay() {
|
|
|
962
962
|
floatAnimationX.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
|
|
963
963
|
[appIconView.layer addAnimation:floatAnimationX forKey:@"floatAnimationX"];
|
|
964
964
|
|
|
965
|
-
// Position info label in absolute
|
|
965
|
+
// Position info label in absolute overlay center, above button
|
|
966
966
|
NSPoint labelCenter = NSMakePoint(
|
|
967
|
-
(
|
|
967
|
+
(overlayFrame.size.width - [infoLabel frame].size.width) / 2, // Center horizontally on overlay
|
|
968
968
|
buttonCenter.y + buttonSize.height + 10 // 10px above button, below icon
|
|
969
969
|
);
|
|
970
970
|
[infoLabel setFrameOrigin:labelCenter];
|