AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
24.56k stars 2.12k forks source link

FluentTheme ignores TopLevel.ActualTransparencyLevel #15928

Open kekekeks opened 1 month ago

kekekeks commented 1 month ago

Describe the bug

Transparency is not guaranteed to be provided by the target platform. Even by modern 2024 Linux distro, even when there is a GPU and compositing window manager available (composition can be auto-disabled when a resource-intensive app is currently running).

We should never rely on transparency being available in our default themes.

To Reproduce

Run the app in software rendering mode on Windows or use a non-compositing VM with Linux.

(reported from https://github.com/AvaloniaUI/Avalonia/issues/15845): image image

Expected behavior

No response

Avalonia version

All versions with fluent theme

OS

No response

Additional context

No response

maxkatz6 commented 1 month ago

Just to be clear, you mean that we need to fallback to 0 radius when transparency is not available, right?

EstivalDawm commented 4 hours ago

I think it makes sense to implement it like this. Hope this problem can be improved.