Skip to content

Make the mirror window follow the light/dark theme - #7

Merged
Mohib-76 merged 2 commits into
devfrom
fix/mirror-follow-theme
Oct 20, 2026
Merged

Mohib-76 merged 2 commits into
devfrom
fix/mirror-follow-theme

Conversation

@Mohib-76

Copy link
Copy Markdown
Owner

What and why

The screen mirroring window was always dark, even with the app in light mode. MirrorWindow.xaml merged Themes/Dark.xaml into its own resources. Now it follows the app theme like every other window, and switching the theme while it's open updates it too, because it uses DynamicResource.

  • The window's own colors move to Mirror* brushes in Themes/Light.xaml and Themes/Dark.xaml: stage, scrim, live/pending/alert dots and toolbar ink. The dark values are unchanged.
  • The connecting spinner's ring uses Track instead of a hardcoded dark color.
  • The phone bezel and the empty screen behind the video stay black in both themes, like a real phone.

Kept out of the website PR (#6) on purpose. This ships with the next app release.

How I tested it

  • dotnet build windows/Orbit.Windows: 0 errors. The 4 warnings were already there.
  • dotnet test windows/Orbit.Tests: 44 passed.
  • Not yet checked on a device with a live mirror session in light and dark. Please open a mirror in both themes before merging.

Checklist

  • dotnet test windows/Orbit.Tests and gradlew testDebugUnitTest lintDebug pass (Android untouched; CI runs both)
  • New packets are documented in docs/PROTOCOL.md and unknown packets stay non-fatal (none)
  • No personal data, secrets or binaries added; logs don't contain notification or clipboard content
  • UI works in light and dark themes, and icon-only buttons have accessible names (needs the device check above)
  • CHANGELOG.md updated (Unreleased section) if users will notice the change

🤖 Generated with Claude Code

Mohib-76 and others added 2 commits October 20, 2026 13:04
The mirror window merged Themes/Dark.xaml into its own resources, so it was
dark even with the app in light mode. It now uses the app's theme like every
other window. Its own colors (stage, scrim, live/pending/alert dots, toolbar
ink) move to Mirror* brushes in Light.xaml and Dark.xaml, and the spinner
ring uses Track instead of a hardcoded dark color.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er ring in light

- Checklist rows and the recording icon use resource references instead of FindResource copies, so a
  theme switch while the window is open updates them.
- New MirrorRing brush for the connecting ring and pending dots (Track was nearly invisible on the light scrim).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Mohib-76
Mohib-76 merged commit 04a92e5 into dev Oct 20, 2026
2 checks passed
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