node-mac-recorder 2.7.5 → 2.8.0
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 -15
package/package.json
CHANGED
package/src/window_selector.mm
CHANGED
|
@@ -81,10 +81,10 @@ void updateScreenOverlays();
|
|
|
81
81
|
|
|
82
82
|
- (void)updateAppearance {
|
|
83
83
|
if (self.isSelectedWindow) {
|
|
84
|
-
// Selected window:
|
|
85
|
-
self.layer.backgroundColor = [[NSColor colorWithRed:0.6 green:0.4 blue:0.9 alpha:0.
|
|
84
|
+
// Selected window: same background but thick border (3px)
|
|
85
|
+
self.layer.backgroundColor = [[NSColor colorWithRed:0.6 green:0.4 blue:0.9 alpha:0.4] CGColor]; // Same as highlight
|
|
86
86
|
self.layer.borderColor = [[NSColor colorWithRed:0.6 green:0.4 blue:0.9 alpha:1.0] CGColor];
|
|
87
|
-
self.layer.borderWidth =
|
|
87
|
+
self.layer.borderWidth = 3.0; // Thick border for selected window
|
|
88
88
|
// Selected window appearance set
|
|
89
89
|
} else if (self.isActiveWindow) {
|
|
90
90
|
// Active window (highlighted): thin border (1px)
|
|
@@ -131,10 +131,7 @@ void updateScreenOverlays();
|
|
|
131
131
|
|
|
132
132
|
if (wasSelected) {
|
|
133
133
|
// Deselect this window - return to normal highlight behavior
|
|
134
|
-
|
|
135
|
-
g_selectedOverlayView.isSelectedWindow = NO;
|
|
136
|
-
[g_selectedOverlayView updateAppearance];
|
|
137
|
-
}
|
|
134
|
+
self.isSelectedWindow = NO;
|
|
138
135
|
|
|
139
136
|
// Clear global selection
|
|
140
137
|
if (g_selectedWindowInfo) {
|
|
@@ -807,16 +804,12 @@ void updateOverlay() {
|
|
|
807
804
|
BOOL isSelected = (g_selectedWindowInfo &&
|
|
808
805
|
[g_selectedWindowInfo isEqualToDictionary:windowUnderCursor]);
|
|
809
806
|
|
|
810
|
-
//
|
|
811
|
-
if
|
|
812
|
-
|
|
813
|
-
} else {
|
|
814
|
-
overlayView.isActiveWindow = isUnderCursor; // Highlight if under cursor and not selected
|
|
815
|
-
}
|
|
816
|
-
overlayView.isSelectedWindow = isSelected;
|
|
807
|
+
// Allow highlighting on all windows (including selected) but keep selection state
|
|
808
|
+
overlayView.isActiveWindow = isUnderCursor; // Highlight if under cursor
|
|
809
|
+
overlayView.isSelectedWindow = isSelected; // Keep selection state
|
|
817
810
|
|
|
818
811
|
NSLog(@"🎯 Overlay State Updated: Active=%s, Selected=%s",
|
|
819
|
-
|
|
812
|
+
isUnderCursor ? "YES" : "NO", isSelected ? "YES" : "NO");
|
|
820
813
|
}
|
|
821
814
|
}
|
|
822
815
|
}
|