From f1f61dfff65c1543a1f3038b8a60a8198d8eef44 Mon Sep 17 00:00:00 2001 From: Suleyman Poyraz Date: Sat, 4 Mar 2023 23:37:56 +0300 Subject: [PATCH] Settings page is redesigned. Its a kind of diss to Pull Request #1964 :smile: --- src/Calculator/Resources/en-GB/Resources.resw | 12 +- src/Calculator/Resources/en-US/Resources.resw | 10 +- src/Calculator/Resources/tr-TR/Resources.resw | 12 +- src/Calculator/Views/Settings.xaml | 109 ++++++++++++------ src/Calculator/Views/Settings.xaml.cs | 3 +- .../CalculatorUnitTests.vcxproj | 6 +- .../CalculatorUnitTests.vcxproj.filters | 4 + 7 files changed, 116 insertions(+), 40 deletions(-) diff --git a/src/Calculator/Resources/en-GB/Resources.resw b/src/Calculator/Resources/en-GB/Resources.resw index 7584a0414..6473df01a 100644 --- a/src/Calculator/Resources/en-GB/Resources.resw +++ b/src/Calculator/Resources/en-GB/Resources.resw @@ -1,4 +1,4 @@ - + - + - + + diff --git a/src/Calculator/Views/Settings.xaml.cs b/src/Calculator/Views/Settings.xaml.cs index 0889b09ad..9880c795c 100644 --- a/src/Calculator/Views/Settings.xaml.cs +++ b/src/Calculator/Views/Settings.xaml.cs @@ -46,7 +46,7 @@ public Settings() var copyrightText = LocalizationStringUtil.GetLocalizedString(resourceLoader.GetResourceString("AboutControlCopyright"), BUILD_YEAR); AboutControlCopyrightRun.Text = copyrightText; - + InitializeContributeTextBlock(); } @@ -109,6 +109,7 @@ private void SetVersionString() { PackageVersion version = Package.Current.Id.Version; string appName = AppResourceProvider.GetInstance().GetResourceString("AppName"); + AboutBuildVersion.Text = appName + " " + version.Major + "." + version.Minor + "." + version.Build + "." + version.Revision; } diff --git a/src/CalculatorUnitTests/CalculatorUnitTests.vcxproj b/src/CalculatorUnitTests/CalculatorUnitTests.vcxproj index 265d94691..d46dcadfb 100644 --- a/src/CalculatorUnitTests/CalculatorUnitTests.vcxproj +++ b/src/CalculatorUnitTests/CalculatorUnitTests.vcxproj @@ -286,9 +286,13 @@ + + + + - + \ No newline at end of file diff --git a/src/CalculatorUnitTests/CalculatorUnitTests.vcxproj.filters b/src/CalculatorUnitTests/CalculatorUnitTests.vcxproj.filters index 60cc935c0..5b9a29295 100644 --- a/src/CalculatorUnitTests/CalculatorUnitTests.vcxproj.filters +++ b/src/CalculatorUnitTests/CalculatorUnitTests.vcxproj.filters @@ -81,5 +81,9 @@ + + + + \ No newline at end of file