Skip to content

Implement Liquid Glass Design#201

Open
knownassurajit wants to merge 12 commits intopilotmoon:masterfrom
knownassurajit:master
Open

Implement Liquid Glass Design#201
knownassurajit wants to merge 12 commits intopilotmoon:masterfrom
knownassurajit:master

Conversation

@knownassurajit
Copy link
Copy Markdown

No description provided.

google-labs-jules Bot and others added 10 commits March 1, 2026 14:47
This commit implements Apple's liquid glass design system by injecting a
translucent NSVisualEffectView into the content view of all application
windows (PrefsWindow, WelcomeWindow, TestWindow, DebugWindow). The windows
are configured to have a transparent title bar and a full-size content view,
which creates the desired glassmorphism/frosted effect under the window
background.

Changes:
- PrefsWindowController.m: Add NSVisualEffectView in windowDidLoad.
- WelcomeWindowController.m: Add NSVisualEffectView in windowDidLoad.
- TestWindowController.m: Add NSVisualEffectView in windowDidLoad.
- DebugWindowController.m: Add NSVisualEffectView in windowDidLoad.
Inlined the tileColor and tileRect logic directly into the nested loops
within the testImage method of TestWindowController.m. This avoids
approximately 131,072 block invocations in a tight loop, reducing
CPU overhead for test image generation.
- Implemented comprehensive unit tests for Logger class in LoggerTests.m.
- Added tests for initialization, normal/special logging, enabled/disabled state, bounding logic, and notifications.
- Modified Logger.m to handle nil message input gracefully in logMessage:special: to prevent potential crashes when creating dictionary literals.
- Verified test logic and implementation against Logger's behavior.
- Reverted incorrect changes to `StatusItemController.m` that modified application logic.
- Updated `StatusItemControllerTests.m` to properly test the existing `attachMenu:` logic (which relies on `theMenu` and its delegate) and `openMenu` (which sets and unsets `statusItem.menu` to workaround an AppKit issue).
- Verified that temporary ruby scripts are omitted from the patch.
- Ensures the Xcode project test target (`ScrollReverserTests`) correctly includes `StatusItemControllerTests.m`.
…571387

🧪 Add StatusItemController Tests
…60017328174254

Implement liquid glass design system across all windows
…553514919723121199

⚡ Optimize test image generation by inlining block calls
…tests-17420375822040665972

🧪 Add unit tests for Logger class and improve nil input handling
Co-authored-by: knownassurajit <34816337+knownassurajit@users.noreply.github.com>
@knownassurajit knownassurajit marked this pull request as ready for review April 5, 2026 10:39
knownassurajit and others added 2 commits April 5, 2026 18:33
In macOS 15, `[NSEvent eventWithCGEvent:]` throws an exception when called with `kCGEventTapDisabledByTimeout` or `kCGEventTapDisabledByUserInput` events. This causes the callback to fail before the tap can be re-enabled. Handling these events explicitly at the start of `_callback` fixes the issue.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This commit secures the Sparkle update mechanism by:
1. Prioritizing official Pilotmoon URLs for Production and Beta builds, ignoring any user-specified overrides in these environments.
2. For other builds (e.g., Development), validating that any provided override URL uses the HTTPS protocol.
3. Providing a safe fallback to `https://localhost/` if no valid URL is determined.

This prevents potential man-in-the-middle (MITM) attacks and malicious updates via local preference tampering.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant