node-mac-recorder 2.10.29 → 2.10.31
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 +9 -8
package/package.json
CHANGED
package/src/window_selector.mm
CHANGED
|
@@ -117,20 +117,21 @@ void updateScreenOverlays();
|
|
|
117
117
|
NSColor *strokeColor;
|
|
118
118
|
|
|
119
119
|
if (self.isToggled) {
|
|
120
|
-
// Locked state:
|
|
121
|
-
fillColor = [NSColor colorWithRed:0.
|
|
122
|
-
strokeColor = [NSColor colorWithRed:0.
|
|
120
|
+
// Locked state: #3d00b047 (purple with 47 alpha = 0.278)
|
|
121
|
+
fillColor = [NSColor colorWithRed:0.24 green:0.0 blue:0.69 alpha:0.278]; // #3d00b0 with 47/255 alpha
|
|
122
|
+
strokeColor = [NSColor colorWithRed:0.24 green:0.0 blue:0.69 alpha:0.95];
|
|
123
123
|
} else {
|
|
124
|
-
// Normal state:
|
|
125
|
-
fillColor = [NSColor colorWithRed:0.
|
|
126
|
-
strokeColor = [NSColor colorWithRed:0.
|
|
124
|
+
// Normal state: #4400c52e (purple with 2e alpha = 0.18)
|
|
125
|
+
fillColor = [NSColor colorWithRed:0.27 green:0.0 blue:0.77 alpha:0.18]; // #4400c5 with 2e/255 alpha
|
|
126
|
+
strokeColor = [NSColor colorWithRed:0.27 green:0.0 blue:0.77 alpha:0.9];
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
[fillColor setFill];
|
|
130
130
|
[highlightPath fill];
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
// 1px purple stroke
|
|
133
133
|
[highlightPath setLineWidth:1.0];
|
|
134
|
+
[strokeColor setStroke];
|
|
134
135
|
[highlightPath stroke];
|
|
135
136
|
}
|
|
136
137
|
|
|
@@ -982,7 +983,7 @@ void updateOverlay() {
|
|
|
982
983
|
if (cancelButton) {
|
|
983
984
|
NSSize cancelButtonSize = [cancelButton frame].size;
|
|
984
985
|
NSPoint cancelButtonCenter = NSMakePoint(
|
|
985
|
-
(
|
|
986
|
+
(overlayFrame.size.width - cancelButtonSize.width) / 2, // Center horizontally on overlay
|
|
986
987
|
buttonCenter.y - buttonSize.height - 20 // 20px below main button
|
|
987
988
|
);
|
|
988
989
|
[cancelButton setFrameOrigin:cancelButtonCenter];
|