Skip to content

Commit

Permalink
Merge pull request #489 from AvaloniaUI/fix-light-theme-errors
Browse files Browse the repository at this point in the history
Avoid hardcoding Black/White colors
  • Loading branch information
maxkatz6 authored Jul 26, 2024
2 parents 9779f0f + 80c1198 commit 62b03be
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions AvaloniaVS.Shared/Views/AvaloniaPreviewer.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@
<Border Name="error"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="Gray"
Opacity=".75"
Background="#80808080"
Visibility="Collapsed">

<StackPanel Background="Black"
<StackPanel Background="{DynamicResource VsBrush.ToolWindowBackground}"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
Expand All @@ -55,7 +54,7 @@
VerticalAlignment="Center"
FontSize="16"
FontWeight="ExtraBold"
Foreground="White"
Foreground="{DynamicResource VsBrush.WindowText}"
Text="!" />
</Grid>

Expand Down

0 comments on commit 62b03be

Please sign in to comment.