Skip to content

Add a resource for title bar background - #21440

Merged
MrJul merged 1 commit into
AvaloniaUI:masterfrom
MrJul:fixes/titlebar-background
May 27, 2026
Merged

Add a resource for title bar background#21440
MrJul merged 1 commit into
AvaloniaUI:masterfrom
MrJul:fixes/titlebar-background

Conversation

@MrJul

@MrJul MrJul commented May 27, 2026

Copy link
Copy Markdown
Member

What does the pull request do?

This PR partly reverts #21354 by re-introducing an opaque brush for the title bar by default. The window's background stays transparent, though.

To make it easy to alter the title bar's background, a new resource TitleBarBackgroundBrush is introduced in the fluent theme.

What is the current behavior?

On X11, with ForceDrawnDecorations = true enabled and ExtendClientAreaToDecorationsHint = false, the title bar is incorrectly transparent.

What is the updated/expected behavior with this PR?

The title bar has a proper color.

@MrJul MrJul added bug area-theme Related to the simple or fluent theme. backport-candidate-12.0.x Consider this PR for backporting to 12.0 branch labels May 27, 2026
@MrJul
MrJul force-pushed the fixes/titlebar-background branch from 8a956da to 24f400e Compare May 27, 2026 13:09
@MrJul
MrJul enabled auto-merge May 27, 2026 13:23
@MrJul
MrJul added this pull request to the merge queue May 27, 2026
@avaloniaui-bot

Copy link
Copy Markdown

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

Merged via the queue into AvaloniaUI:master with commit 498c183 May 27, 2026
11 checks passed
@MrJul
MrJul deleted the fixes/titlebar-background branch May 27, 2026 14:25
MrJul added a commit to MrJul/Avalonia that referenced this pull request May 28, 2026
@MrJul MrJul added backported-12.0.x and removed backport-candidate-12.0.x Consider this PR for backporting to 12.0 branch labels May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-theme Related to the simple or fluent theme. backported-12.0.x bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants