diff --git a/PowerToys.sln b/PowerToys.sln
index 544c96ba52..77c12b0a80 100644
--- a/PowerToys.sln
+++ b/PowerToys.sln
@@ -189,6 +189,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Microsoft.PowerToys.Setting
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{4981CCD1-4CD9-4A49-B240-00AA46493FF8}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
+ src\tests\win-app-driver\packages.config = src\tests\win-app-driver\packages.config
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.PowerToys.Settings.UI.Lib", "src\core\Microsoft.PowerToys.Settings.UI.Lib\Microsoft.PowerToys.Settings.UI.Lib.csproj", "{B1BCC8C6-46B5-4BFA-8F22-20F32D99EC6A}"
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/App.xaml b/src/core/Microsoft.PowerToys.Settings.UI/App.xaml
index e5a4b1b823..7ea0edfe34 100644
--- a/src/core/Microsoft.PowerToys.Settings.UI/App.xaml
+++ b/src/core/Microsoft.PowerToys.Settings.UI/App.xaml
@@ -10,7 +10,7 @@
-
+
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Microsoft.PowerToys.Settings.UI.csproj b/src/core/Microsoft.PowerToys.Settings.UI/Microsoft.PowerToys.Settings.UI.csproj
index 1463d65a70..9562010244 100644
--- a/src/core/Microsoft.PowerToys.Settings.UI/Microsoft.PowerToys.Settings.UI.csproj
+++ b/src/core/Microsoft.PowerToys.Settings.UI/Microsoft.PowerToys.Settings.UI.csproj
@@ -1,4 +1,4 @@
-
+
@@ -134,6 +134,8 @@
+
+
@@ -141,12 +143,18 @@
GeneralPage.xaml
+
+ ImageResizerPage.xaml
+
PowerLauncherPage.xaml
PowerPreviewPage.xaml
+
+ FancyZonesPage.xaml
+
PowerRenamePage.xaml
@@ -214,6 +222,10 @@
MSBuild:Compile
Designer
+
+ Designer
+ MSBuild:Compile
+
MSBuild:Compile
Designer
@@ -222,10 +234,18 @@
Designer
MSBuild:Compile
+
+ Designer
+ MSBuild:Compile
+
Designer
MSBuild:Compile
+
+ MSBuild:Compile
+ Designer
+
MSBuild:Compile
Designer
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw b/src/core/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw
index 0ccb936aa8..13bf1145e1 100644
--- a/src/core/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw
+++ b/src/core/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw
@@ -145,8 +145,16 @@
Shortcut Guide
Navigation view item name for Shortcut Guide
-
+
File Explorer Preview
- File Explorer Preview Settings
-
+ Navigation view item name for File Explorer Preview
+
+
+ FancyZones
+ Navigation view item name for FancyZones
+
+
+ Image Resizer
+ Navigation view item name for Image Resizer
+
\ No newline at end of file
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Styles/_Sizes.xaml b/src/core/Microsoft.PowerToys.Settings.UI/Styles/_Sizes.xaml
new file mode 100644
index 0000000000..ec5eaec72c
--- /dev/null
+++ b/src/core/Microsoft.PowerToys.Settings.UI/Styles/_Sizes.xaml
@@ -0,0 +1,19 @@
+
+
+ 180
+
+
+ 1100
+
+
+ 480
+
+
+ 24
+
+
+ 24
+
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/ViewModels/FancyZonesViewModel.cs b/src/core/Microsoft.PowerToys.Settings.UI/ViewModels/FancyZonesViewModel.cs
new file mode 100644
index 0000000000..71adf5ab87
--- /dev/null
+++ b/src/core/Microsoft.PowerToys.Settings.UI/ViewModels/FancyZonesViewModel.cs
@@ -0,0 +1,13 @@
+using System;
+
+using Microsoft.PowerToys.Settings.UI.Helpers;
+
+namespace Microsoft.PowerToys.Settings.UI.ViewModels
+{
+ public class FancyZonesViewModel : Observable
+ {
+ public FancyZonesViewModel()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/ViewModels/ImageResizerViewModel.cs b/src/core/Microsoft.PowerToys.Settings.UI/ViewModels/ImageResizerViewModel.cs
new file mode 100644
index 0000000000..6a89566057
--- /dev/null
+++ b/src/core/Microsoft.PowerToys.Settings.UI/ViewModels/ImageResizerViewModel.cs
@@ -0,0 +1,13 @@
+using System;
+
+using Microsoft.PowerToys.Settings.UI.Helpers;
+
+namespace Microsoft.PowerToys.Settings.UI.ViewModels
+{
+ public class ImageResizerViewModel : Observable
+ {
+ public ImageResizerViewModel()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/FancyZonesPage.xaml b/src/core/Microsoft.PowerToys.Settings.UI/Views/FancyZonesPage.xaml
new file mode 100644
index 0000000000..ee68c4f0c5
--- /dev/null
+++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/FancyZonesPage.xaml
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/FancyZonesPage.xaml.cs b/src/core/Microsoft.PowerToys.Settings.UI/Views/FancyZonesPage.xaml.cs
new file mode 100644
index 0000000000..b789c48621
--- /dev/null
+++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/FancyZonesPage.xaml.cs
@@ -0,0 +1,28 @@
+using Microsoft.PowerToys.Settings.UI.ViewModels;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Runtime.InteropServices.WindowsRuntime;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Controls.Primitives;
+using Windows.UI.Xaml.Data;
+using Windows.UI.Xaml.Input;
+using Windows.UI.Xaml.Media;
+using Windows.UI.Xaml.Navigation;
+
+namespace Microsoft.PowerToys.Settings.UI.Views
+{
+ public sealed partial class FancyZonesPage : Page
+ {
+ public FancyZonesViewModel ViewModel { get; } = new FancyZonesViewModel();
+
+ public FancyZonesPage()
+ {
+ this.InitializeComponent();
+ }
+ }
+}
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml b/src/core/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml
index 0dd40c279b..e123d7b36e 100644
--- a/src/core/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml
+++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml
@@ -9,27 +9,56 @@
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
+
+
+
+
+
-
-
+
-
-
-
-
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml.cs b/src/core/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml.cs
index f06a2022b1..80d3c3c70c 100644
--- a/src/core/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml.cs
+++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/GeneralPage.xaml.cs
@@ -8,6 +8,7 @@ namespace Microsoft.PowerToys.Settings.UI.Views
using System.IO;
using Microsoft.PowerToys.Settings.UI.Lib;
using Microsoft.PowerToys.Settings.UI.ViewModels;
+ using Windows.System;
using Windows.UI.Popups;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
@@ -58,9 +59,6 @@ namespace Microsoft.PowerToys.Settings.UI.Views
// load run on start up ui settings value and update the ui state.
this.ToggleSwitch_RunAtStartUp.IsOn = settings.startup;
}
-
- ShellPage.ShellHandler.HideContributorsList();
- ShellPage.ShellHandler.HideFeatureDetails();
}
///
@@ -73,15 +71,15 @@ namespace Microsoft.PowerToys.Settings.UI.Views
{
case "light":
ShellPage.ShellHandler.RequestedTheme = ElementTheme.Light;
- this.Rodio_Theme_Light.IsChecked = true;
+ this.Radio_Theme_Light.IsChecked = true;
break;
case "dark":
ShellPage.ShellHandler.RequestedTheme = ElementTheme.Dark;
- this.Rodio_Theme_Dark.IsChecked = true;
+ this.Radio_Theme_Dark.IsChecked = true;
break;
case "system":
ShellPage.ShellHandler.RequestedTheme = ElementTheme.Default;
- this.Rodio_Theme_Default.IsChecked = true;
+ this.Radio_Theme_Default.IsChecked = true;
break;
}
}
@@ -131,16 +129,21 @@ namespace Microsoft.PowerToys.Settings.UI.Views
{
RadioButton rb = sender as RadioButton;
- if (rb != null)
- {
- string themeName = rb.Tag.ToString();
- this.ReLoadTheme(themeName);
+ //if (rb != null)
+ //{
+ // string themeName = rb.Tag.ToString();
+ // this.ReLoadTheme(themeName);
- // update and save settings to file.
- GeneralSettings settings = SettingsUtils.GetSettings(string.Empty);
- settings.theme = themeName;
- SettingsUtils.SaveSettings(settings, string.Empty);
- }
+ // // update and save settings to file.
+ // GeneralSettings settings = SettingsUtils.GetSettings(string.Empty);
+ // settings.theme = themeName;
+ // SettingsUtils.SaveSettings(settings, string.Empty);
+ //}
+ }
+
+ private async void CheckForUpdates_Click(object sender, RoutedEventArgs e)
+ {
+ await Launcher.LaunchUriAsync(new Uri("https://github.com/microsoft/PowerToys/releases"));
}
}
-}
+}
\ No newline at end of file
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml b/src/core/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml
new file mode 100644
index 0000000000..4427c8d046
--- /dev/null
+++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml
@@ -0,0 +1,195 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ BMP Encoder
+ GIF Encoder
+ JPEG Encoder
+ PNG Encoder
+ TIFF Encoder
+ WMPhoto Encoder
+
+
+
+
+
+ Default
+ On
+ Off
+
+
+
+ Default
+ None
+ CCITT3
+ CCITT4
+ LZW
+ RLE
+ Zip
+
+
+
+
+
+
+
+
+
+
+ %1
+ - Original filename
+
+
+ %2
+ - Size name
+
+
+ %3
+ - Selected width
+
+
+ %4
+ - Selected height
+
+
+ %5
+ - Actual height
+
+
+ %6
+ - Actual width
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml.cs b/src/core/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml.cs
new file mode 100644
index 0000000000..53ae3264c4
--- /dev/null
+++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml.cs
@@ -0,0 +1,29 @@
+using Microsoft.PowerToys.Settings.UI.ViewModels;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Runtime.InteropServices.WindowsRuntime;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Controls.Primitives;
+using Windows.UI.Xaml.Data;
+using Windows.UI.Xaml.Input;
+using Windows.UI.Xaml.Media;
+using Windows.UI.Xaml.Navigation;
+
+namespace Microsoft.PowerToys.Settings.UI.Views
+{
+
+ public sealed partial class ImageResizerPage : Page
+ {
+ public ImageResizerViewModel ViewModel { get; } = new ImageResizerViewModel();
+
+ public ImageResizerPage()
+ {
+ this.InitializeComponent();
+ }
+ }
+}
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/PowerLauncherPage.xaml b/src/core/Microsoft.PowerToys.Settings.UI/Views/PowerLauncherPage.xaml
index 6383fca549..df78df3cc5 100644
--- a/src/core/Microsoft.PowerToys.Settings.UI/Views/PowerLauncherPage.xaml
+++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/PowerLauncherPage.xaml
@@ -9,10 +9,40 @@
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/PowerPreviewPage.xaml b/src/core/Microsoft.PowerToys.Settings.UI/Views/PowerPreviewPage.xaml
index be9ebc57f9..367bb9c144 100644
--- a/src/core/Microsoft.PowerToys.Settings.UI/Views/PowerPreviewPage.xaml
+++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/PowerPreviewPage.xaml
@@ -7,7 +7,38 @@
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -23,5 +54,26 @@
Toggled="ToggleSwitch_Preview_MD_Toggled" />
+
+
+
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/PowerPreviewPage.xaml.cs b/src/core/Microsoft.PowerToys.Settings.UI/Views/PowerPreviewPage.xaml.cs
index b9ba9fe364..a318762fb1 100644
--- a/src/core/Microsoft.PowerToys.Settings.UI/Views/PowerPreviewPage.xaml.cs
+++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/PowerPreviewPage.xaml.cs
@@ -50,14 +50,6 @@ namespace Microsoft.PowerToys.Settings.UI.Views
ToggleSwitch_Preview_SVG.IsOn = settings.properties.IDS_PREVPANE_SVG_BOOL_TOGGLE_CONTROLL.value;
ToggleSwitch_Preview_MD.IsOn = settings.properties.PREVPANE_MD_BOOL_TOGGLE_CONTROLL_ID.value;
}
-
- ShellPage.ShellHandler.ShowFeatureDetails();
-
- ShellPage.ShellHandler.SetFeatureDetails(
- "https://github.com/microsoft/PowerToys/tree/master/src/modules/previewpane",
- "https://github.com/microsoft/PowerToys/issues");
-
- ShellPage.ShellHandler.HideContributorsList();
}
private void ToggleSwitch_Preview_SVG_Toggled(object sender, RoutedEventArgs e)
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/PowerRenamePage.xaml b/src/core/Microsoft.PowerToys.Settings.UI/Views/PowerRenamePage.xaml
index d3caf91e77..e69d233a84 100644
--- a/src/core/Microsoft.PowerToys.Settings.UI/Views/PowerRenamePage.xaml
+++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/PowerRenamePage.xaml
@@ -9,8 +9,37 @@
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -22,23 +51,23 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/ShellPage.xaml b/src/core/Microsoft.PowerToys.Settings.UI/Views/ShellPage.xaml
index 8282f1f3fb..27dbcb6245 100644
--- a/src/core/Microsoft.PowerToys.Settings.UI/Views/ShellPage.xaml
+++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/ShellPage.xaml
@@ -19,29 +19,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -101,6 +85,13 @@
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
\ No newline at end of file
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/ShellPage.xaml.cs b/src/core/Microsoft.PowerToys.Settings.UI/Views/ShellPage.xaml.cs
index bc4c14f497..7e97231885 100644
--- a/src/core/Microsoft.PowerToys.Settings.UI/Views/ShellPage.xaml.cs
+++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/ShellPage.xaml.cs
@@ -62,48 +62,5 @@ namespace Microsoft.PowerToys.Settings.UI.Views
{
Default_SndMSG_Callback = implmentation;
}
-
- public void HideFeatureDetails()
- {
- this.Feature_Details_Title.Visibility = Visibility.Collapsed;
- this.Feature_Details.Visibility = Visibility.Collapsed;
- }
-
- public void ShowFeatureDetails()
- {
- this.Feature_Details_Title.Visibility = Visibility.Visible;
- this.Feature_Details.Visibility = Visibility.Visible;
- }
-
- public void SetFeatureDetails(string moduleOverviewLink,string reportBugLink)
- {
- this.Module_Overview_LinkButton.NavigateUri = new Uri(moduleOverviewLink);
- this.Module_Feedback_LinkButton.NavigateUri = new Uri(reportBugLink);
- }
-
- public void HideContributorsList()
- {
- this.Contributors_List_Title.Visibility = Visibility.Collapsed;
- this.Contributors_List.Visibility = Visibility.Collapsed;
- }
-
- public void ShowContributorsList()
- {
- this.Contributors_List_Title.Visibility = Visibility.Visible;
- this.Contributors_List.Visibility = Visibility.Visible;
- }
-
- public void PopulateContributorsList(List contributors)
- {
- this.Contributors_List.Items.Clear();
-
- foreach (Contributor contributor in contributors)
- {
- HyperlinkButton link = new HyperlinkButton();
- link.Content = contributor.Name;
- link.NavigateUri = new Uri(contributor.Link);
- this.Contributors_List.Items.Add(link);
- }
- }
}
-}
+}
\ No newline at end of file
diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/ShortcutGuidePage.xaml b/src/core/Microsoft.PowerToys.Settings.UI/Views/ShortcutGuidePage.xaml
index 4a3728edba..b1df2bf643 100644
--- a/src/core/Microsoft.PowerToys.Settings.UI/Views/ShortcutGuidePage.xaml
+++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/ShortcutGuidePage.xaml
@@ -9,7 +9,37 @@
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -41,5 +71,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file