node-mac-recorder 2.9.1 → 2.9.2
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 +25 -19
package/package.json
CHANGED
package/src/window_selector.mm
CHANGED
|
@@ -81,25 +81,25 @@ void updateScreenOverlays();
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
- (void)updateAppearance {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
84
|
+
if (self.isSelectedWindow) {
|
|
85
|
+
// Selected window: same background but medium border (2px)
|
|
86
|
+
self.layer.backgroundColor = [[NSColor colorWithRed:0.6 green:0.4 blue:0.9 alpha:0.4] CGColor]; // Same as highlight
|
|
87
|
+
self.layer.borderColor = [[NSColor colorWithRed:0.6 green:0.4 blue:0.9 alpha:1.0] CGColor];
|
|
88
|
+
self.layer.borderWidth = 2.0; // Medium border for selected window
|
|
89
|
+
// Selected window appearance set
|
|
90
|
+
} else if (self.isActiveWindow) {
|
|
91
|
+
// Active window (highlighted): thin border (1px)
|
|
92
|
+
self.layer.backgroundColor = [[NSColor colorWithRed:0.6 green:0.4 blue:0.9 alpha:0.4] CGColor];
|
|
93
|
+
self.layer.borderColor = [[NSColor colorWithRed:0.6 green:0.4 blue:0.9 alpha:0.8] CGColor];
|
|
94
|
+
self.layer.borderWidth = 1.0; // Thin border for highlighted window
|
|
95
|
+
// Active window appearance set
|
|
96
|
+
} else {
|
|
97
|
+
// Inactive window: no border
|
|
98
|
+
self.layer.backgroundColor = [[NSColor colorWithRed:0.4 green:0.2 blue:0.6 alpha:0.25] CGColor];
|
|
99
|
+
self.layer.borderColor = [[NSColor clearColor] CGColor];
|
|
100
|
+
self.layer.borderWidth = 0.0; // No border for inactive window
|
|
101
|
+
// Inactive window appearance set
|
|
102
|
+
}
|
|
103
103
|
|
|
104
104
|
// Common styling
|
|
105
105
|
self.layer.cornerRadius = 8.0;
|
|
@@ -873,6 +873,12 @@ void cleanupWindowSelector() {
|
|
|
873
873
|
[g_clickedWindowInfo release];
|
|
874
874
|
g_clickedWindowInfo = nil;
|
|
875
875
|
}
|
|
876
|
+
|
|
877
|
+
// Clear selected window info (recording selection)
|
|
878
|
+
if (g_selectedWindowInfo) {
|
|
879
|
+
[g_selectedWindowInfo release];
|
|
880
|
+
g_selectedWindowInfo = nil;
|
|
881
|
+
}
|
|
876
882
|
}
|
|
877
883
|
|
|
878
884
|
// Recording preview functions
|