Skip to content

Commit 4297229

Browse files
committed
theme: fix window background binding
1 parent b701614 commit 4297229

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Classic.Avalonia.Theme/Styles/Window.axaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,15 @@
3030
<Border Name="PART_TransparencyFallback"
3131
IsHitTestVisible="False"
3232
Margin="2" />
33-
<Border Background="{TemplateBinding Background}"
33+
<Border Background="{DynamicResource {x:Static common:SystemColors.ControlBrushKey}}"
3434
IsHitTestVisible="False"
3535
Margin="2" />
3636

3737
<Border Margin="{TemplateBinding OffScreenMargin}">
38-
<DockPanel Name="RootLayout" Margin="4" ClipToBounds="True">
38+
<DockPanel Name="RootLayout"
39+
Background="{TemplateBinding Background}"
40+
Margin="4"
41+
ClipToBounds="True">
3942

4043
<utils:AutoAttachTitleBar DockPanel.Dock="Top" />
4144

0 commit comments

Comments
 (0)