diff --git a/Flow.Launcher/CustomShortcutSetting.xaml b/Flow.Launcher/CustomShortcutSetting.xaml index 78b392f3e..f0340eead 100644 --- a/Flow.Launcher/CustomShortcutSetting.xaml +++ b/Flow.Launcher/CustomShortcutSetting.xaml @@ -6,12 +6,12 @@ Title="{DynamicResource customeQueryShortcutTitle}" Width="530" Background="{DynamicResource PopuBGColor}" + DataContext="{Binding RelativeSource={RelativeSource Self}}" Foreground="{DynamicResource PopupTextColor}" Icon="Images\app.png" ResizeMode="NoResize" SizeToContent="Height" - WindowStartupLocation="CenterScreen" - DataContext="{Binding RelativeSource={RelativeSource Self}}"> + WindowStartupLocation="CenterScreen"> @@ -100,8 +100,7 @@ Grid.Row="0" Grid.Column="1" Margin="10" - Text="{Binding Key}" - /> + Text="{Binding Key}" /> + VerticalAlignment="Center" + Text="{Binding Value}" /> diff --git a/Flow.Launcher/Images/Error.png b/Flow.Launcher/Images/Error.png new file mode 100644 index 000000000..74acc5d0e Binary files /dev/null and b/Flow.Launcher/Images/Error.png differ diff --git a/Flow.Launcher/Images/Exclamation.png b/Flow.Launcher/Images/Exclamation.png new file mode 100644 index 000000000..f9fed80ee Binary files /dev/null and b/Flow.Launcher/Images/Exclamation.png differ diff --git a/Flow.Launcher/Images/Information.png b/Flow.Launcher/Images/Information.png new file mode 100644 index 000000000..4043ed98a Binary files /dev/null and b/Flow.Launcher/Images/Information.png differ diff --git a/Flow.Launcher/Images/Question.png b/Flow.Launcher/Images/Question.png new file mode 100644 index 000000000..4cb539230 Binary files /dev/null and b/Flow.Launcher/Images/Question.png differ diff --git a/Flow.Launcher/MessageBoxEx.xaml b/Flow.Launcher/MessageBoxEx.xaml index 9528b764d..5869fb4bc 100644 --- a/Flow.Launcher/MessageBoxEx.xaml +++ b/Flow.Launcher/MessageBoxEx.xaml @@ -5,10 +5,11 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:Flow.Launcher" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - Title="MessageBoxEx" - Width="800" - Height="450" + x:Name="MessageBoxWindow" + Width="420" + Height="Auto" ResizeMode="NoResize" + SizeToContent="Height" WindowStartupLocation="CenterScreen" mc:Ignorable="d"> @@ -22,8 +23,9 @@ + - + @@ -37,7 +39,7 @@ - + Margin="5,0,5,0" + Click="Button_Click" + Content="{DynamicResource cancel}" /> +