question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Transparency effect does not work on Fedora GNOME

See original GitHub issue

Describe the bug When the TransparencyLevelHint property of a window is set to e.g. AcrylicBlur and the window background is (partially-)transparent (Background="#C0000000" or Background="{x:Null}"), the transparency effect is not visible on Fedora with GNOME.

@Splitwirez Ran the very same binaries on his linux system and the transparency was visible there. So it has probably something to do with my distribution or GNOME.

Gitter.im chat history of us trying to track this down: 22. Januar 2021 22:21

To Reproduce Steps to reproduce the behavior:

  1. Create a new application using the avalonia.app dotnet-new template
  2. Edit MainWindow.axaml and add TransparencyLevelHint="AcrylicBlur" Background="#C0000000" to the window.
  3. dotnet run
  4. A black window is shown with no transparency.

I’m able to reproduce this on two different machines (one with NVIDIA graphics, one with Intel graphics) with X11 and Wayland.

Expected behavior

  • A (partially) transparent window pops up as it does on other systems.
  • In cases, where transparency is not supported, I would expect a noisy gray background, like it’s also visible in the Controls Gallery app.

Screenshots Test application: image

Controls Gallery (no transparency too, but gray background): image

Desktop:

  • OS: Linux, Fedora 33, GNOME Desktop
  • Desktop Environment: GNOME 3.38.2
  • Version: 0.10.0 stable release

Minimal example project Here is the minimal project that I used to reproduce the issue as well as the binaries: https://drive.wichelmann.cloud/s/3JYtWjEbCzmbin3

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:16 (15 by maintainers)

github_iconTop GitHub Comments

3reactions
kekekekscommented, Jan 23, 2021

So it’s only making the wrong decision for the fallback?

Yes, which is either a bug or API design issue. We probably need TransparencyFallbackMode property to control that behavior.

1reaction
kekekekscommented, Jan 22, 2021

Mkay, reproduced with nvidia + bumblebee

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gnome terminal on Wayland transparency broken in full ...
The gnome-terminal loses its transparency when used in full-screen mode. It was working just fine before, don't know what triggered this ...
Read more >
How Can I Get The Transparent effect of the Panel ...
The extension works, but the themes don't for some reason. They don't even show they're just transparent.
Read more >
Background transparency for Gnome Terminal
I'm trying to have transparency working for Gnome Terminal. However this is what I get when I try to edit the profile of...
Read more >
transparent gnome terminal problem
Hi there all archies! I have a problem with transparency in gnome terminal. When using it without transparency it runs smoothly, ...
Read more >
I'm not sure how to enable transparency on GNOME terminal
The gnome terminal doesn't support transparency. You need to install gnome-terminal-transparency or gnome-terminal-fedora. 4 Likes.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found