fix(electron): keep Linux window chrome opaque - #184
Merged
Conversation
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>
3 tasks
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>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.udt-nav/.udt-titlebartransparent (that mixed a dark sidebar with white cards).color-mixof#9bb39aover#f6f6f6) so 亮色 matches the Windows console (浅绿侧栏 + 白底) instead of#202020.Verification
dotnet build UniversalDeviceToolkit.sln --configuration Releasedotnet test UniversalDeviceToolkit.Tests/UniversalDeviceToolkit.Tests.csproj --framework net10.0-windowsPlugin Changes (if applicable)
Notes