Skip to content

Commit cf20c4b

Browse files
committed
fix: set WindowDrawnDecorations background to transparent
1 parent 593b5a2 commit cf20c4b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Avalonia.Themes.Fluent/Controls/WindowDrawnDecorations.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141
<WindowDrawnDecorationsContent.Underlay>
4242
<Panel x:Name="PART_UnderlayWrapper">
4343
<Border x:Name="PART_WindowBorder"
44-
Background="{DynamicResource SystemControlBackgroundAltHighBrush}"
44+
Background="{DynamicResource SystemControlTransparentBrush}"
4545
BorderThickness="{TemplateBinding FrameThickness}"
4646
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumBrush}"
4747
IsHitTestVisible="False" />
4848
<!-- Titlebar: background, title text, and drag area live in underlay -->
4949
<Panel x:Name="PART_TitleBar" VerticalAlignment="Top"
5050
Height="{TemplateBinding TitleBarHeight}"
51-
Background="{DynamicResource SystemControlBackgroundAltHighBrush}"
51+
Background="{DynamicResource SystemControlTransparentBrush}"
5252
IsVisible="{TemplateBinding HasTitleBar}"
5353
WindowDecorationProperties.ElementRole="TitleBar" />
5454

src/Avalonia.Themes.Simple/Controls/WindowDrawnDecorations.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141
<WindowDrawnDecorationsContent.Underlay>
4242
<Panel x:Name="PART_UnderlayWrapper">
4343
<Border x:Name="PART_WindowBorder"
44-
Background="{DynamicResource ThemeBackgroundBrush}"
44+
Background="Transparent"
4545
BorderThickness="{TemplateBinding FrameThickness}"
4646
BorderBrush="{DynamicResource ThemeBorderMidBrush}"
4747
IsHitTestVisible="False" />
4848
<!-- Titlebar: background, title text, and drag area live in underlay -->
4949
<Panel x:Name="PART_TitleBar" VerticalAlignment="Top"
5050
Height="{TemplateBinding TitleBarHeight}"
51-
Background="{DynamicResource ThemeBackgroundBrush}"
51+
Background="Transparent"
5252
IsVisible="{TemplateBinding HasTitleBar}"
5353
WindowDecorationProperties.ElementRole="TitleBar" />
5454
</Panel>

0 commit comments

Comments
 (0)