node-mac-recorder 2.6.22 → 2.7.1
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 +15 -15
package/package.json
CHANGED
package/src/window_selector.mm
CHANGED
|
@@ -75,19 +75,19 @@ void updateScreenOverlays();
|
|
|
75
75
|
|
|
76
76
|
- (void)updateAppearance {
|
|
77
77
|
if (self.isActiveWindow) {
|
|
78
|
-
// Active window:
|
|
79
|
-
self.layer.backgroundColor = [[NSColor
|
|
78
|
+
// Active window: brighter background
|
|
79
|
+
self.layer.backgroundColor = [[NSColor colorWithRed:0.6 green:0.4 blue:0.9 alpha:0.4] CGColor];
|
|
80
80
|
// Active window appearance set
|
|
81
81
|
} else {
|
|
82
|
-
// Inactive window:
|
|
83
|
-
self.layer.backgroundColor = [[NSColor
|
|
82
|
+
// Inactive window: dimmer background
|
|
83
|
+
self.layer.backgroundColor = [[NSColor colorWithRed:0.4 green:0.2 blue:0.6 alpha:0.25] CGColor];
|
|
84
84
|
// Inactive window appearance set
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
// No border to match screen selector
|
|
88
88
|
self.layer.borderColor = [[NSColor clearColor] CGColor];
|
|
89
89
|
self.layer.borderWidth = 0.0;
|
|
90
|
-
self.layer.cornerRadius =
|
|
90
|
+
self.layer.cornerRadius = 8.0;
|
|
91
91
|
self.layer.masksToBounds = YES;
|
|
92
92
|
self.layer.shadowOpacity = 0.0;
|
|
93
93
|
self.layer.shadowRadius = 0.0;
|
|
@@ -132,8 +132,8 @@ void updateScreenOverlays();
|
|
|
132
132
|
[super drawRect:dirtyRect];
|
|
133
133
|
|
|
134
134
|
if (!self.recordingWindowInfo) {
|
|
135
|
-
// No window info, fill with semi-transparent black
|
|
136
|
-
[[NSColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.
|
|
135
|
+
// No window info, fill with semi-transparent black
|
|
136
|
+
[[NSColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.5] setFill];
|
|
137
137
|
NSRectFill(dirtyRect);
|
|
138
138
|
return;
|
|
139
139
|
}
|
|
@@ -157,8 +157,8 @@ void updateScreenOverlays();
|
|
|
157
157
|
[maskPath appendBezierPath:windowPath];
|
|
158
158
|
[maskPath setWindingRule:NSWindingRuleEvenOdd]; // Creates hole effect
|
|
159
159
|
|
|
160
|
-
// Fill with semi-transparent black, excluding window area
|
|
161
|
-
[[NSColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.
|
|
160
|
+
// Fill with semi-transparent black, excluding window area
|
|
161
|
+
[[NSColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.5] setFill];
|
|
162
162
|
[maskPath fill];
|
|
163
163
|
}
|
|
164
164
|
|
|
@@ -194,13 +194,13 @@ void updateScreenOverlays();
|
|
|
194
194
|
|
|
195
195
|
if (!self.screenInfo) return;
|
|
196
196
|
|
|
197
|
-
// Background with transparency -
|
|
197
|
+
// Background with transparency - purple tone varies by active state
|
|
198
198
|
if (self.isActiveScreen) {
|
|
199
|
-
// Active screen:
|
|
200
|
-
[[NSColor
|
|
199
|
+
// Active screen: brighter, more opaque
|
|
200
|
+
[[NSColor colorWithRed:0.6 green:0.4 blue:0.9 alpha:0.4] setFill];
|
|
201
201
|
} else {
|
|
202
|
-
// Inactive screen:
|
|
203
|
-
[[NSColor
|
|
202
|
+
// Inactive screen: dimmer, less opaque
|
|
203
|
+
[[NSColor colorWithRed:0.4 green:0.2 blue:0.6 alpha:0.25] setFill];
|
|
204
204
|
}
|
|
205
205
|
NSRectFill(self.bounds);
|
|
206
206
|
|