From f82e0b66566c593de381c61df8bd9e124fc27d13 Mon Sep 17 00:00:00 2001 From: Isayama_Kagura Date: Fri, 12 Aug 2022 15:01:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BF=BB=E8=AF=91=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BasicLibrary/WindowConfig.cs | 6 +- .../PublishProfiles/FolderProfile.pubxml | 10 +-- TsubakiTranslator/TranslateWindow.xaml | 15 ++-- TsubakiTranslator/TranslateWindow.xaml.cs | 85 +++++++++++-------- .../TranslatedResultDisplay.xaml | 2 +- TsubakiTranslator/WinStylePage.xaml | 14 --- 6 files changed, 66 insertions(+), 66 deletions(-) diff --git a/TsubakiTranslator/BasicLibrary/WindowConfig.cs b/TsubakiTranslator/BasicLibrary/WindowConfig.cs index 9b1b4f6..c1bbc13 100644 --- a/TsubakiTranslator/BasicLibrary/WindowConfig.cs +++ b/TsubakiTranslator/BasicLibrary/WindowConfig.cs @@ -18,7 +18,7 @@ public WindowConfig() TranslateWindowTransparency = 165; SourceTextColor = Colors.BurlyWood; TranslatedTextColor = Colors.WhiteSmoke; - SourceTextVisibility = "Auto"; + SourceTextVisibility = true; } private double mainWindowWidth; @@ -31,7 +31,7 @@ public WindowConfig() private int translateWindowTransparency; private Color sourceTextColor; private Color translatedTextColor; - private string sourceTextVisibility; + private bool sourceTextVisibility; public double MainWindowWidth @@ -93,7 +93,7 @@ public Color TranslatedTextColor set => SetProperty(ref translatedTextColor, value); } - public string SourceTextVisibility + public bool SourceTextVisibility { get => sourceTextVisibility; set => SetProperty(ref sourceTextVisibility, value); diff --git a/TsubakiTranslator/Properties/PublishProfiles/FolderProfile.pubxml b/TsubakiTranslator/Properties/PublishProfiles/FolderProfile.pubxml index 7c0a303..4fe0214 100644 --- a/TsubakiTranslator/Properties/PublishProfiles/FolderProfile.pubxml +++ b/TsubakiTranslator/Properties/PublishProfiles/FolderProfile.pubxml @@ -1,17 +1,17 @@  - + Release Any CPU - bin\Release\net6.0-windows\publish\noRT + bin\Release\net6.0-windows\publish\noRT\ FileSystem net6.0-windows win-x64 false - False - True + false + false \ No newline at end of file diff --git a/TsubakiTranslator/TranslateWindow.xaml b/TsubakiTranslator/TranslateWindow.xaml index a99ba3c..339c2db 100644 --- a/TsubakiTranslator/TranslateWindow.xaml +++ b/TsubakiTranslator/TranslateWindow.xaml @@ -26,8 +26,6 @@ - -