From e2450cf29e09610c65c1da0e0637ac29ef58ee13 Mon Sep 17 00:00:00 2001 From: DB p Date: Tue, 11 Jun 2024 13:01:47 +0900 Subject: [PATCH] Adjust MessageBox Window --- Flow.Launcher/Languages/en.xaml | 3 ++ Flow.Launcher/MessageBoxEx.xaml | 35 ++++++++++--------- Flow.Launcher/MessageBoxEx.xaml.cs | 5 ++- .../ViewModels/SettingsPaneAboutViewModel.cs | 5 +-- 4 files changed, 29 insertions(+), 19 deletions(-) diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index 83831a398..d361df355 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -348,6 +348,9 @@ Cancel Reset Delete + OK + Yes + No Version diff --git a/Flow.Launcher/MessageBoxEx.xaml b/Flow.Launcher/MessageBoxEx.xaml index 8a155a282..f466a640e 100644 --- a/Flow.Launcher/MessageBoxEx.xaml +++ b/Flow.Launcher/MessageBoxEx.xaml @@ -8,6 +8,8 @@ x:Name="MessageBoxWindow" Width="420" Height="Auto" + Background="{DynamicResource PopuBGColor}" + Foreground="{DynamicResource PopupTextColor}" ResizeMode="NoResize" SizeToContent="Height" WindowStartupLocation="CenterScreen" @@ -61,8 +63,8 @@ - - + + @@ -72,9 +74,9 @@ Grid.Column="0" Width="18" Height="18" - Margin="30,10,0,0" + Margin="0 0 0 0" HorizontalAlignment="Left" - VerticalAlignment="Top" + VerticalAlignment="Center" RenderOptions.BitmapScalingMode="Fant" Stretch="UniformToFill" Visibility="Collapsed" /> @@ -82,7 +84,8 @@ x:Name="TitleTextBlock" Grid.Column="1" MaxWidth="400" - Margin="26,0,26,0" + Margin="10 0 26 0" + VerticalAlignment="Center" FontFamily="Segoe UI" FontSize="20" FontWeight="SemiBold" @@ -93,7 +96,7 @@ x:Name="DescTextBlock" Grid.Column="1" MaxWidth="400" - Margin="26,0,26,0" + Margin="0 0 26 0" HorizontalAlignment="Stretch" FontSize="14" TextAlignment="Left" @@ -101,10 +104,10 @@ + BorderThickness="0 1 0 0"> + Content="{DynamicResource commonCancel}" />