node-mac-recorder 2.10.24 → 2.10.25
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 +8 -1
package/package.json
CHANGED
package/src/window_selector.mm
CHANGED
|
@@ -108,19 +108,26 @@ void updateScreenOverlays();
|
|
|
108
108
|
xRadius:8.0
|
|
109
109
|
yRadius:8.0];
|
|
110
110
|
|
|
111
|
-
// Fill color
|
|
111
|
+
// Fill color with 1px border
|
|
112
112
|
NSColor *fillColor;
|
|
113
|
+
NSColor *strokeColor;
|
|
113
114
|
|
|
114
115
|
if (self.isToggled) {
|
|
115
116
|
// Locked state: slightly different opacity
|
|
116
117
|
fillColor = [NSColor colorWithRed:0.6 green:0.4 blue:0.9 alpha:0.5];
|
|
118
|
+
strokeColor = [NSColor colorWithRed:0.45 green:0.25 blue:0.75 alpha:0.9];
|
|
117
119
|
} else {
|
|
118
120
|
// Normal state: standard fill
|
|
119
121
|
fillColor = [NSColor colorWithRed:0.6 green:0.4 blue:0.9 alpha:0.4];
|
|
122
|
+
strokeColor = [NSColor whiteColor];
|
|
120
123
|
}
|
|
121
124
|
|
|
122
125
|
[fillColor setFill];
|
|
123
126
|
[highlightPath fill];
|
|
127
|
+
|
|
128
|
+
[strokeColor setStroke];
|
|
129
|
+
[highlightPath setLineWidth:1.0];
|
|
130
|
+
[highlightPath stroke];
|
|
124
131
|
}
|
|
125
132
|
|
|
126
133
|
- (void)updateAppearance {
|