From 54a28741567d87e961ef2a38baa7fffc70ea3fe6 Mon Sep 17 00:00:00 2001 From: rmbgame Date: Mon, 8 Mar 2021 14:11:34 +0800 Subject: [PATCH] Message Style --- .../UI/Windows/MessageWindow.axaml | 21 +++++++++++++++++-- .../UI/Resx/AppResources.Designer.cs | 18 ++++++++++++++++ .../UI/Resx/AppResources.resx | 6 ++++++ .../Views/Window/MessageDialog.xaml | 2 +- 4 files changed, 44 insertions(+), 3 deletions(-) diff --git a/System.Application.SteamTools.Client.Desktop.Avalonia/Application/UI/Windows/MessageWindow.axaml b/System.Application.SteamTools.Client.Desktop.Avalonia/Application/UI/Windows/MessageWindow.axaml index 598578e66..9b83b9651 100644 --- a/System.Application.SteamTools.Client.Desktop.Avalonia/Application/UI/Windows/MessageWindow.axaml +++ b/System.Application.SteamTools.Client.Desktop.Avalonia/Application/UI/Windows/MessageWindow.axaml @@ -5,7 +5,24 @@ mc:Ignorable="d" d:DesignWidth="300" d:DesignHeight="200" x:Class="System.Application.UI.Windows.MessageWindow" Title="{Binding Title}"> - - + + + + + + + + + + + + + diff --git a/System.Application.SteamTools.Client.Desktop/UI/Resx/AppResources.Designer.cs b/System.Application.SteamTools.Client.Desktop/UI/Resx/AppResources.Designer.cs index 5dbb836ed..7e9a27db1 100644 --- a/System.Application.SteamTools.Client.Desktop/UI/Resx/AppResources.Designer.cs +++ b/System.Application.SteamTools.Client.Desktop/UI/Resx/AppResources.Designer.cs @@ -132,6 +132,15 @@ namespace System.Application.UI.Resx { } } + /// + /// 查找类似 取消 的本地化字符串。 + /// + public static string Cancel { + get { + return ResourceManager.GetString("Cancel", resourceCulture); + } + } + /// /// 查找类似 社区加速 的本地化字符串。 /// @@ -141,6 +150,15 @@ namespace System.Application.UI.Resx { } } + /// + /// 查找类似 确定 的本地化字符串。 + /// + public static string Confirm { + get { + return ResourceManager.GetString("Confirm", resourceCulture); + } + } + /// /// 查找类似 库存游戏 的本地化字符串。 /// diff --git a/System.Application.SteamTools.Client.Desktop/UI/Resx/AppResources.resx b/System.Application.SteamTools.Client.Desktop/UI/Resx/AppResources.resx index 211de82b0..bc1b000c5 100644 --- a/System.Application.SteamTools.Client.Desktop/UI/Resx/AppResources.resx +++ b/System.Application.SteamTools.Client.Desktop/UI/Resx/AppResources.resx @@ -141,9 +141,15 @@ ASF Plus + + 取消 + 社区加速 + + 确定 + 库存游戏 diff --git a/source/SteamTools/Views/Window/MessageDialog.xaml b/source/SteamTools/Views/Window/MessageDialog.xaml index db8901daa..bafed1ef1 100644 --- a/source/SteamTools/Views/Window/MessageDialog.xaml +++ b/source/SteamTools/Views/Window/MessageDialog.xaml @@ -49,7 +49,7 @@ Foreground="{DynamicResource ActiveForegroundBrushKey}" Margin="12,0" HorizontalAlignment="Left" - TextWrapping="WrapWithOverflow" + TextWrapping="WrapWithOverflow" VerticalAlignment="Center" />