Skip to content

Commit f4b1136

Browse files
committed
fix: draw border around dialogs
1 parent 191d18a commit f4b1136

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

PostCodeSerialMonitor/App.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<FluentTheme />
3838
<Style Selector="Window">
3939
<Setter Property="TransparencyLevelHint" Value="AcrylicBlur" />
40-
<Setter Property="BorderBrush" Value="White" />
40+
<Setter Property="BorderBrush" Value="{DynamicResource SystemAccentColor}" />
4141
<Setter Property="BorderThickness" Value="1" />
4242
</Style>
4343
<Style Selector="SelectableTextBlock">

PostCodeSerialMonitor/Views/ConfigurationDialog.axaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
Width="400" Height="600"
1212
WindowStartupLocation="CenterOwner">
1313

14+
<Border BorderBrush="{DynamicResource SystemAccentColor}" BorderThickness="1">
1415
<Grid RowDefinitions="*,Auto" Margin="10">
1516
<ScrollViewer Grid.Row="0">
1617
<StackPanel Spacing="10">
@@ -51,4 +52,5 @@
5152
<Button Content="{x:Static assets:Resources.Save}" Command="{Binding SaveCommand}" CommandParameter="{Binding $parent[Window]}"/>
5253
</StackPanel>
5354
</Grid>
55+
</Border>
5456
</Window>

PostCodeSerialMonitor/Views/DebugDialog.axaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
Width="480" Height="620"
1212
WindowStartupLocation="CenterOwner">
1313

14+
<Border BorderBrush="{DynamicResource SystemAccentColor}" BorderThickness="1">
1415
<Grid RowDefinitions="*,Auto" Margin="10">
1516
<ScrollViewer Grid.Row="0">
1617
<StackPanel Spacing="10">
@@ -42,4 +43,5 @@
4243
<Button Content="{x:Static assets:Resources.Close}" Command="{Binding CloseCommand}" CommandParameter="{Binding $parent[Window]}"/>
4344
</StackPanel>
4445
</Grid>
46+
</Border>
4547
</Window>

0 commit comments

Comments
 (0)