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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mac-recorder",
3
- "version": "2.7.5",
3
+ "version": "2.8.0",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -81,10 +81,10 @@ void updateScreenOverlays();
81
81
 
82
82
  - (void)updateAppearance {
83
83
  if (self.isSelectedWindow) {
84
- // Selected window: bright background with thick border (2-3px)
85
- self.layer.backgroundColor = [[NSColor colorWithRed:0.6 green:0.4 blue:0.9 alpha:0.6] CGColor];
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 = 2.5; // Thick border for selected window
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
- if (g_selectedOverlayView) {
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
- // If window is selected, don't allow highlighting on it
811
- if (isSelected) {
812
- overlayView.isActiveWindow = NO; // No highlight on selected window
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
- overlayView.isActiveWindow ? "YES" : "NO", isSelected ? "YES" : "NO");
812
+ isUnderCursor ? "YES" : "NO", isSelected ? "YES" : "NO");
820
813
  }
821
814
  }
822
815
  }