On Tue, 19 May 2026 21:27:36 GMT, Thiago Milczarek Sayao <[email protected]> 
wrote:

> What if the backdrop effect is technically supported by the platform, but the 
> user has disabled transparency effects or enabled a “reduced transparency” 
> accessibility setting?

For the standard backdrops (WINDOW and PARTIAL) reduced transparency doesn't 
matter much. In normal operation the window backdrop will track the window's 
color scheme (LIGHT or DARK). The translucency effect might go away but the 
overall background color will be the same.

The real complication comes from the other accessibility settings; on Windows 
the backdrop will also respond to the high contrast themes. The most 
appropriate way to draw on a standard backdrop is to make no assumptions about 
what color it's going to display and consult Platform Preferences for 
appropriate foreground colors.

For the platform-specific backdrops anything goes. Most of them will follow the 
window's color scheme, some will not. The clear glass effect on macOS is always 
light colored when "reduced transparency" is off and ignores the color scheme. 
But if "reduced transparency" is on it starts tracking the color scheme. Most 
of the other effects on macOS track the window's color scheme and platform 
accessibility settings.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/2048#issuecomment-4493398809

Reply via email to