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}" />
+ Content="{DynamicResource commonNo}" />
+ Content="{DynamicResource commonOK}" />
+ Content="{DynamicResource commonYes}" />
diff --git a/Flow.Launcher/MessageBoxEx.xaml.cs b/Flow.Launcher/MessageBoxEx.xaml.cs
index ea30165d7..e203f2683 100644
--- a/Flow.Launcher/MessageBoxEx.xaml.cs
+++ b/Flow.Launcher/MessageBoxEx.xaml.cs
@@ -30,6 +30,7 @@ namespace Flow.Launcher
{
ConfirmationWithYesNo = 0,
ConfirmationWithYesNoCancel,
+ YesNo,
Information,
Error,
Warning
@@ -68,6 +69,9 @@ namespace Flow.Launcher
case MessageBoxType.ConfirmationWithYesNo:
return Show(caption, msg, MessageBoxButton.YesNo,
MessageBoxImage.Question);
+ case MessageBoxType.YesNo:
+ return Show(caption, msg, MessageBoxButton.YesNo,
+ MessageBoxImage.Question);
case MessageBoxType.ConfirmationWithYesNoCancel:
return Show(caption, msg, MessageBoxButton.YesNoCancel,
MessageBoxImage.Question);
@@ -168,7 +172,6 @@ namespace Flow.Launcher
}
private void SetImage(string imageName)
{
- //string uri = string.Format("/Resources/Images/{0}", imageName);
string uri = Constant.ProgramDirectory + "/Images/" + imageName;
var uriSource = new Uri(uri, UriKind.RelativeOrAbsolute);
Img.Source = new BitmapImage(uriSource);
diff --git a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneAboutViewModel.cs b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneAboutViewModel.cs
index 0ed2090f1..c314b42ee 100644
--- a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneAboutViewModel.cs
+++ b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneAboutViewModel.cs
@@ -11,6 +11,7 @@ using Flow.Launcher.Core.Resource;
using Flow.Launcher.Infrastructure;
using Flow.Launcher.Infrastructure.UserSettings;
using Flow.Launcher.Plugin;
+using static Flow.Launcher.MessageBoxEx;
namespace Flow.Launcher.SettingPages.ViewModels;
@@ -62,10 +63,10 @@ public partial class SettingsPaneAboutViewModel : BaseModel
[RelayCommand]
private void AskClearLogFolderConfirmation()
{
- var confirmResult = MessageBox.Show(
+ var confirmResult = MessageBoxEx.Show(
InternationalizationManager.Instance.GetTranslation("clearlogfolderMessage"),
InternationalizationManager.Instance.GetTranslation("clearlogfolder"),
- MessageBoxButton.YesNo
+ MessageBoxType.YesNo
);
if (confirmResult == MessageBoxResult.Yes)