From 47f314bb102cf99d2596a6a3cde0e6c293c5f0b9 Mon Sep 17 00:00:00 2001 From: Niels Laute Date: Thu, 16 Mar 2023 11:06:40 +0100 Subject: [PATCH] [Settings] Using SettingsControls (#1964) * Adding SettingsControls package * Using new SettingsControls * Tweaks * Version bump * Replacing Button with HyperlinkButton per design spec * Update Settings.xaml * Fix top spacing --- nuget.config | 3 +- src/Calculator/Calculator.csproj | 3 + src/Calculator/Resources/en-US/Resources.resw | 6 +- src/Calculator/Views/Settings.xaml | 289 +++++++----------- src/Calculator/Views/Settings.xaml.cs | 6 +- 5 files changed, 123 insertions(+), 184 deletions(-) diff --git a/nuget.config b/nuget.config index 14471ade..0b8604f4 100644 --- a/nuget.config +++ b/nuget.config @@ -1,8 +1,9 @@ - + + diff --git a/src/Calculator/Calculator.csproj b/src/Calculator/Calculator.csproj index aa7e1f17..f24e94ad 100644 --- a/src/Calculator/Calculator.csproj +++ b/src/Calculator/Calculator.csproj @@ -791,6 +791,9 @@ + + 0.0.16 + 6.2.14 diff --git a/src/Calculator/Resources/en-US/Resources.resw b/src/Calculator/Resources/en-US/Resources.resw index d4bf7270..5670daa9 100644 --- a/src/Calculator/Resources/en-US/Resources.resw +++ b/src/Calculator/Resources/en-US/Resources.resw @@ -4706,11 +4706,11 @@ Appearance Subtitle of appearance setting on Settings page - + App theme Title of App theme expander - + Select which app theme to display Description of App theme expander @@ -4738,4 +4738,4 @@ App theme setting Screen reader prompt for the App theme Setting radio buttons group - \ No newline at end of file + diff --git a/src/Calculator/Views/Settings.xaml b/src/Calculator/Views/Settings.xaml index e25dc4de..089e0797 100644 --- a/src/Calculator/Views/Settings.xaml +++ b/src/Calculator/Views/Settings.xaml @@ -3,6 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:automation="using:CalculatorApp.ViewModel.Common.Automation" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:labs="using:CommunityToolkit.Labs.WinUI" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:muxc="using:Microsoft.UI.Xaml.Controls" Loaded="OnLoaded" @@ -13,7 +14,7 @@ + + + + 3 @@ -43,42 +52,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -