Skip to content

fix(electron): keep Linux window chrome opaque - #184

Merged
SSC-STUDIO merged 2 commits into
masterfrom
cursor/linux-opaque-backdrop-6fe9
Aug 23, 2026
Merged

fix(electron): keep Linux window chrome opaque#184
SSC-STUDIO merged 2 commits into
masterfrom
cursor/linux-opaque-backdrop-6fe9

Conversation

@SSC-STUDIO

@SSC-STUDIO SSC-STUDIO commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Linux cannot use DWM mica. Do not punch .udt-nav / .udt-titlebar transparent (that mixed a dark sidebar with white cards).
  • Keep backdrop opaque on Linux, but light mica/acrylic now uses a sage stand-in (color-mix of #9bb39a over #f6f6f6) so 亮色 matches the Windows console (浅绿侧栏 + 白底) instead of #202020.
  • Dark + mica stays opaque dark tokens. Settings still offer Windows / macOS / Off as opaque approximations.

Verification

  • dotnet build UniversalDeviceToolkit.sln --configuration Release
  • dotnet test UniversalDeviceToolkit.Tests/UniversalDeviceToolkit.Tests.csproj --framework net10.0-windows
  • CHANGELOG.md updated for user-visible changes (skipped — Linux renderer chrome only)

Plugin Changes (if applicable)

  • N/A

Notes

Open in Web Open in Cursor 

Mica/acrylic CSS punched title bar and nav transparent, but Electron
ignores DWM backgroundMaterial on Linux and leaves an opaque #202020
window. Follow-system light mode then showed white cards on a dark
shell. Force data-backdrop=none on Linux.

Co-authored-by: Chen Runsen <SSC-STUDIO@users.noreply.github.com>
Keep Linux chrome from punching through to the BrowserWindow color,
but do not force data-backdrop=none. Light mica/acrylic now paints
the Win11-style sage sidebar from existing mica alphas over #f6f6f6;
dark theme stays opaque #202020 fills.

Co-authored-by: Chen Runsen <SSC-STUDIO@users.noreply.github.com>
@SSC-STUDIO
SSC-STUDIO merged commit 49e0451 into master Aug 23, 2026
15 of 16 checks passed
@SSC-STUDIO
SSC-STUDIO deleted the cursor/linux-opaque-backdrop-6fe9 branch August 23, 2026 12:21
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.

2 participants