Skip to content

Fix the issue in macOS when WindowTransparencyLevel is set to AcrylicBlur - #22144

Merged
MrJul merged 1 commit into
AvaloniaUI:mainfrom
Linlccc:fix-window-transparency
Sep 9, 2026
Merged

MrJul merged 1 commit into
AvaloniaUI:mainfrom
Linlccc:fix-window-transparency

Conversation

@Linlccc

@Linlccc Linlccc commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

What does the pull request do?

Fix the issue in macOS when WindowTransparencyLevel is set to AcrylicBlur

  1. Background fully white in inactive state
  2. Unusable when dark theme and white content behind window

What is the current behavior?

See #18453

What is the updated/expected behavior with this PR?

Dark Mode Activation
image
Dark inactive
image
Light activation
image
Light inactive
image

Fixed issues

Fixes #18453

1. Background fully white in inactive state
2. Unusable when dark theme and white content behind window
@MrJul MrJul added bug os-macos backport-candidate-12.1.x Consider this PR for backporting to 12.1 branch labels Sep 4, 2026

@MrJul MrJul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on both themes, this is indeed much nicer.
LGTM!

@MrJul
MrJul enabled auto-merge September 9, 2026 13:42
@MrJul
MrJul added this pull request to the merge queue Sep 9, 2026
@avaloniaui-bot

Copy link
Copy Markdown

You can test this PR using the following package version. 12.2.999-cibuild0069416-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

Merged via the queue into AvaloniaUI:main with commit 099c373 Sep 9, 2026
11 checks passed
@Linlccc
Linlccc deleted the fix-window-transparency branch September 16, 2026 01:54
MrJul pushed a commit to MrJul/Avalonia that referenced this pull request Sep 22, 2026
…aUI#22144)

1. Background fully white in inactive state
2. Unusable when dark theme and white content behind window
@MrJul MrJul added backported-12.1.x and removed backport-candidate-12.1.x Consider this PR for backporting to 12.1 branch labels Sep 22, 2026
grokys pushed a commit to Evan260/Avalonia that referenced this pull request Oct 7, 2026
…aUI#22144)

1. Background fully white in inactive state
2. Unusable when dark theme and white content behind window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In macOS, setting TransparencyLevelHint to AcrylicBlur results in an abnormal display.

3 participants