Closed unconverged closed 3 years ago
I think you mean macOS 11.2 "Big Sur"?
@IvaYan in Avalonia fallback colour here is only what you get when you try to use Acrylic on an unsupported system. It doesnt get used when inactive.
This is as designed and behavior wont change until we have integrated our composition engine which is in progress.
The conditions for fallback colour are as follows:
@danwalmsley Ok, I see. Is there an issue about the "composition engine" so I can monitor the progress and check the behaviour again?
@pr8x Exactly, that was just a typo.
Any updates?
Hi! I'm trying to experiment with ExperimentalAcrylicBorder (no pun intended). I have noticed that it seems to ignore the
FallbackColor
property.Consider the following code.
This code produces the following window:
I put Mac's Terminal window below to indicate that we can see what's behind the window. Once I make the window inactive (i.e. by selecting another app) the Acrylic border goes gray.
According to my experiments, the colour of the area is determined by the
TintColor
,TintOpacity
, andMaterialOpacity
properties. TheFallbackColor
seems to be ignored. Is there a way I can redefine the colour used when the window is inactive? According to this MS docs, "fallback color also replaces acrylic when your app isn’t in the active desktop window". Maybe Avalonia can adopt the same behaviour?I'm using macOS 10.2 and Avalonia 0.10.0.