2020-04-17 15:25:08 -07:00
|
|
|
<Page
|
2020-03-12 07:25:24 +01:00
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.GeneralPage"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2024-01-12 18:01:40 +01:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
|
|
|
|
xmlns:converters="using:Microsoft.PowerToys.Settings.UI.Converters"
|
2020-03-12 07:25:24 +01:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
2022-11-23 19:57:09 +01:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2024-01-12 18:01:40 +01:00
|
|
|
xmlns:tkcontrols="using:CommunityToolkit.WinUI.Controls"
|
2023-09-14 18:41:31 +02:00
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI"
|
2022-11-23 19:57:09 +01:00
|
|
|
AutomationProperties.LandmarkType="Main"
|
|
|
|
|
mc:Ignorable="d">
|
2020-03-12 07:25:24 +01:00
|
|
|
|
2020-04-17 15:25:08 -07:00
|
|
|
<Page.Resources>
|
2024-01-12 18:01:40 +01:00
|
|
|
<converters:UpdateStateToBoolConverter x:Key="UpdateStateToBoolConverter" />
|
|
|
|
|
<converters:StringToInfoBarSeverityConverter x:Key="StringToInfoBarSeverityConverter" />
|
2020-04-17 15:25:08 -07:00
|
|
|
</Page.Resources>
|
|
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsPageControl x:Uid="General" ModuleImageSource="ms-appx:///Assets/Settings/Modules/PT.png">
|
|
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
2023-03-20 14:27:29 +01:00
|
|
|
<StackPanel ChildrenTransitions="{StaticResource SettingsCardsAnimations}" Orientation="Vertical">
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="General_Version" Margin="0,-32,0,0">
|
|
|
|
|
<tkcontrols:SettingsCard Header="{x:Bind ViewModel.PowerToysVersion, Mode=OneWay}" HeaderIcon="{ui:FontIcon Glyph=}">
|
|
|
|
|
<tkcontrols:SettingsCard.Description>
|
2021-08-23 19:48:52 +02:00
|
|
|
<StackPanel Orientation="Vertical">
|
2022-10-13 03:41:21 -04:00
|
|
|
<TextBlock Style="{StaticResource SecondaryTextStyle}">
|
2022-11-23 19:57:09 +01:00
|
|
|
<Run x:Uid="General_VersionLastChecked" />
|
2024-01-03 16:41:26 +01:00
|
|
|
<Run Text="{x:Bind ViewModel.UpdateCheckedDate, Mode=OneWay}" />
|
2022-10-13 03:41:21 -04:00
|
|
|
</TextBlock>
|
2022-11-23 19:57:09 +01:00
|
|
|
<HyperlinkButton
|
|
|
|
|
x:Uid="ReleaseNotes"
|
|
|
|
|
Margin="0,2,0,0"
|
|
|
|
|
FontWeight="SemiBold"
|
|
|
|
|
NavigateUri="https://github.com/microsoft/PowerToys/releases/" />
|
|
|
|
|
</StackPanel>
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard.Description>
|
2024-01-03 16:41:26 +01:00
|
|
|
<Grid Visibility="{x:Bind ViewModel.IsUpdatePanelVisible, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}">
|
2022-11-23 19:57:09 +01:00
|
|
|
<StackPanel
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
Spacing="18"
|
2024-01-03 16:41:26 +01:00
|
|
|
Visibility="{x:Bind ViewModel.IsNewVersionDownloading, Converter={StaticResource BoolToVisibilityConverter}, Mode=OneWay}">
|
2023-03-20 14:27:29 +01:00
|
|
|
<ProgressRing Width="24" Height="24" />
|
2022-11-23 19:57:09 +01:00
|
|
|
<TextBlock
|
|
|
|
|
x:Uid="General_CheckingForUpdates"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontWeight="SemiBold"
|
|
|
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}" />
|
2021-08-23 19:48:52 +02:00
|
|
|
</StackPanel>
|
|
|
|
|
|
2022-11-23 19:57:09 +01:00
|
|
|
<Button
|
|
|
|
|
x:Uid="GeneralPage_CheckForUpdates"
|
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
|
Command="{Binding CheckForUpdatesEventHandler}"
|
|
|
|
|
IsEnabled="{Binding IsDownloadAllowed}"
|
|
|
|
|
Visibility="{Binding Mode=OneWay, Path=IsNewVersionDownloading, Converter={StaticResource BoolNegationConverter}}" />
|
|
|
|
|
</Grid>
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="General_UpToDate"
|
|
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.IsNewVersionCheckedAndUpToDate, Mode=OneWay}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.IsNewVersionCheckedAndUpToDate, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Severity="Success" />
|
|
|
|
|
|
2023-03-20 14:27:29 +01:00
|
|
|
<!-- Network error while checking for new version -->
|
|
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="General_CantCheck"
|
|
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.IsNoNetwork, Mode=OneWay}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.IsNoNetwork, Mode=OneWay}"
|
2023-03-20 14:27:29 +01:00
|
|
|
Severity="Error" />
|
2022-11-15 15:11:44 +01:00
|
|
|
|
2022-11-23 19:57:09 +01:00
|
|
|
<!-- New version available -->
|
|
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="General_NewVersionAvailable"
|
|
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.PowerToysUpdatingState, Mode=OneWay, Converter={StaticResource UpdateStateToBoolConverter}, ConverterParameter=ReadyToDownload}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.PowerToysUpdatingState, Mode=OneWay, Converter={StaticResource UpdateStateToBoolConverter}, ConverterParameter=ReadyToDownload}"
|
|
|
|
|
Message="{x:Bind ViewModel.PowerToysNewAvailableVersion, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Severity="Informational">
|
|
|
|
|
|
2022-09-20 18:59:18 +02:00
|
|
|
<InfoBar.Content>
|
2021-08-23 19:48:52 +02:00
|
|
|
<StackPanel Spacing="16">
|
2022-11-23 19:57:09 +01:00
|
|
|
<Button
|
|
|
|
|
x:Uid="General_DownloadAndInstall"
|
|
|
|
|
Command="{Binding UpdateNowButtonEventHandler}"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{Binding IsDownloadAllowed}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Visibility="{Binding Mode=OneWay, Path=IsNewVersionDownloading, Converter={StaticResource BoolNegationConverter}}" />
|
|
|
|
|
|
|
|
|
|
<!-- In progress panel -->
|
|
|
|
|
<StackPanel
|
|
|
|
|
Margin="0,0,0,16"
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
Spacing="18"
|
2024-01-03 16:41:26 +01:00
|
|
|
Visibility="{x:Bind ViewModel.IsNewVersionDownloading, Converter={StaticResource BoolToVisibilityConverter}, Mode=OneWay}">
|
2023-03-20 14:27:29 +01:00
|
|
|
<ProgressRing Width="24" Height="24" />
|
2022-11-23 19:57:09 +01:00
|
|
|
<TextBlock
|
|
|
|
|
x:Uid="General_Downloading"
|
|
|
|
|
FontWeight="SemiBold"
|
|
|
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}" />
|
2021-08-23 19:48:52 +02:00
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
2022-09-20 18:59:18 +02:00
|
|
|
</InfoBar.Content>
|
|
|
|
|
<InfoBar.ActionButton>
|
2022-11-23 19:57:09 +01:00
|
|
|
<HyperlinkButton
|
|
|
|
|
x:Uid="SeeWhatsNew"
|
|
|
|
|
HorizontalAlignment="Right"
|
2024-01-03 16:41:26 +01:00
|
|
|
NavigateUri="{Binding PowerToysNewAvailableVersionLink, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Style="{StaticResource TextButtonStyle}" />
|
2022-09-20 18:59:18 +02:00
|
|
|
</InfoBar.ActionButton>
|
|
|
|
|
</InfoBar>
|
2021-08-23 19:48:52 +02:00
|
|
|
|
|
|
|
|
|
2022-11-23 19:57:09 +01:00
|
|
|
<!-- Ready to install -->
|
|
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="General_NewVersionReadyToInstall"
|
|
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.PowerToysUpdatingState, Mode=OneWay, Converter={StaticResource UpdateStateToBoolConverter}, ConverterParameter=ReadyToInstall}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.PowerToysUpdatingState, Mode=OneWay, Converter={StaticResource UpdateStateToBoolConverter}, ConverterParameter=ReadyToInstall}"
|
|
|
|
|
Message="{x:Bind ViewModel.PowerToysNewAvailableVersion, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Severity="Success">
|
2022-09-20 18:59:18 +02:00
|
|
|
<InfoBar.Content>
|
2022-11-23 19:57:09 +01:00
|
|
|
<Button
|
|
|
|
|
x:Uid="General_InstallNow"
|
|
|
|
|
Margin="0,0,0,16"
|
|
|
|
|
Command="{Binding UpdateNowButtonEventHandler}"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{Binding IsDownloadAllowed}" />
|
2022-09-20 18:59:18 +02:00
|
|
|
</InfoBar.Content>
|
|
|
|
|
<InfoBar.ActionButton>
|
2022-11-23 19:57:09 +01:00
|
|
|
<HyperlinkButton
|
|
|
|
|
x:Uid="SeeWhatsNew"
|
|
|
|
|
HorizontalAlignment="Right"
|
2024-01-03 16:41:26 +01:00
|
|
|
NavigateUri="{Binding PowerToysNewAvailableVersionLink, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Style="{StaticResource TextButtonStyle}" />
|
2022-09-20 18:59:18 +02:00
|
|
|
</InfoBar.ActionButton>
|
|
|
|
|
</InfoBar>
|
2021-08-23 19:48:52 +02:00
|
|
|
|
2022-11-23 19:57:09 +01:00
|
|
|
<!-- Install failed -->
|
|
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="General_FailedToDownloadTheNewVersion"
|
|
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.PowerToysUpdatingState, Mode=OneWay, Converter={StaticResource UpdateStateToBoolConverter}, ConverterParameter=ErrorDownloading}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.PowerToysUpdatingState, Mode=OneWay, Converter={StaticResource UpdateStateToBoolConverter}, ConverterParameter=ErrorDownloading}"
|
|
|
|
|
Message="{x:Bind ViewModel.PowerToysNewAvailableVersion, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Severity="Error">
|
2022-09-20 18:59:18 +02:00
|
|
|
<InfoBar.Content>
|
2021-08-23 19:48:52 +02:00
|
|
|
<StackPanel Spacing="16">
|
2022-11-23 19:57:09 +01:00
|
|
|
<Button
|
|
|
|
|
x:Uid="General_TryAgainToDownloadAndInstall"
|
2021-08-23 19:48:52 +02:00
|
|
|
Command="{Binding UpdateNowButtonEventHandler}"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{Binding IsDownloadAllowed}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Visibility="{Binding Mode=OneWay, Path=IsNewVersionDownloading, Converter={StaticResource BoolNegationConverter}}" />
|
|
|
|
|
|
|
|
|
|
<!-- In progress panel -->
|
|
|
|
|
<StackPanel
|
|
|
|
|
Margin="0,0,0,16"
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
Spacing="18"
|
2024-01-03 16:41:26 +01:00
|
|
|
Visibility="{x:Bind ViewModel.IsNewVersionDownloading, Converter={StaticResource BoolToVisibilityConverter}}">
|
2023-03-20 14:27:29 +01:00
|
|
|
<ProgressRing Width="24" Height="24" />
|
2022-11-23 19:57:09 +01:00
|
|
|
<TextBlock
|
|
|
|
|
x:Uid="General_Downloading"
|
|
|
|
|
FontWeight="SemiBold"
|
|
|
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}" />
|
2021-08-23 19:48:52 +02:00
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
2022-09-20 18:59:18 +02:00
|
|
|
</InfoBar.Content>
|
|
|
|
|
<InfoBar.ActionButton>
|
2022-11-23 19:57:09 +01:00
|
|
|
<HyperlinkButton
|
|
|
|
|
x:Uid="SeeWhatsNew"
|
|
|
|
|
HorizontalAlignment="Right"
|
2024-01-03 16:41:26 +01:00
|
|
|
NavigateUri="{Binding PowerToysNewAvailableVersionLink, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Style="{StaticResource TextButtonStyle}" />
|
2022-09-20 18:59:18 +02:00
|
|
|
</InfoBar.ActionButton>
|
|
|
|
|
</InfoBar>
|
2021-08-23 19:48:52 +02:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="GeneralPage_ToggleSwitch_AutoDownloadUpdates"
|
|
|
|
|
Margin="0,-6,0,0"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsAutoDownloadUpdatesCardEnabled, Mode=OneWay}"
|
|
|
|
|
Visibility="{x:Bind ViewModel.IsAdmin, Converter={StaticResource BoolToVisibilityConverter}, Mode=OneWay}">
|
|
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.AutoDownloadUpdates, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2023-02-24 15:35:33 +01:00
|
|
|
<InfoBar
|
2024-01-25 14:59:00 +01:00
|
|
|
x:Uid="GPO_SettingIsManaged"
|
2023-02-24 15:35:33 +01:00
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.ShowAutoDownloadUpdatesGpoInformation, Mode=OneWay}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.ShowAutoDownloadUpdatesGpoInformation, Mode=OneWay}"
|
2023-02-24 15:35:33 +01:00
|
|
|
Severity="Informational" />
|
2024-01-18 16:18:17 +01:00
|
|
|
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="GeneralPage_ToggleSwitch_ShowWhatsNewAfterUpdates" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.ShowWhatsNewAfterUpdatesIsGpoDisabled, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{Binding Mode=TwoWay, Path=ShowWhatsNewAfterUpdates}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<InfoBar
|
2024-01-25 14:59:00 +01:00
|
|
|
x:Uid="GPO_SettingIsManaged"
|
2024-01-18 16:18:17 +01:00
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.ShowWhatsNewAfterUpdatesIsGpoDisabled}"
|
|
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.ShowWhatsNewAfterUpdatesIsGpoDisabled}"
|
|
|
|
|
Severity="Informational" />
|
2024-01-19 16:18:05 +01:00
|
|
|
|
|
|
|
|
<tkcontrols:SettingsCard
|
|
|
|
|
x:Uid="GeneralPage_ToggleSwitch_ShowNewUpdatesToast"
|
|
|
|
|
Margin="0,-6,0,0"
|
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsNewUpdatesToastDisabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{Binding Mode=TwoWay, Path=ShowNewUpdatesToastNotification}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<InfoBar
|
2024-01-25 14:59:00 +01:00
|
|
|
x:Uid="GPO_SettingIsManaged"
|
2024-01-19 16:18:05 +01:00
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsNewUpdatesToastDisabledGpoConfigured}"
|
|
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsNewUpdatesToastDisabledGpoConfigured}"
|
|
|
|
|
Severity="Informational" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</controls:SettingsGroup>
|
2021-08-23 19:48:52 +02:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="Admin_Mode">
|
|
|
|
|
<tkcontrols:SettingsExpander
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="Admin_Mode_Running_As"
|
2024-01-03 16:41:26 +01:00
|
|
|
Header="{x:Bind ViewModel.RunningAsText, Mode=OneWay}"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsExpanded="True">
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsExpander.Description>
|
2023-03-20 14:27:29 +01:00
|
|
|
<HyperlinkButton x:Uid="GeneralPage_ToggleSwitch_AlwaysRunElevated_Link" NavigateUri="https://aka.ms/powertoysDetectedElevatedHelp" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsExpander.Description>
|
2022-11-23 19:57:09 +01:00
|
|
|
<Button
|
|
|
|
|
x:Uid="GeneralPage_RestartAsAdmin_Button"
|
|
|
|
|
Command="{Binding RestartElevatedButtonEventHandler}"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{Binding IsAdminButtonEnabled}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsExpander.Items>
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="GeneralSettings_AlwaysRunAsAdminText" IsEnabled="{x:Bind ViewModel.IsElevated, Mode=OneWay}">
|
2024-01-03 16:41:26 +01:00
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.RunElevated, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</tkcontrols:SettingsExpander.Items>
|
|
|
|
|
</tkcontrols:SettingsExpander>
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="GeneralPage_WarningsElevatedApps">
|
2024-01-03 20:22:54 +03:00
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{Binding Mode=TwoWay, Path=EnableWarningsElevatedApps}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</controls:SettingsGroup>
|
2021-08-23 19:48:52 +02:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="Appearance_Behavior" IsEnabled="True">
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="ColorModeHeader" HeaderIcon="{ui:FontIcon Glyph=}">
|
|
|
|
|
<tkcontrols:SettingsCard.Description>
|
2023-03-20 14:27:29 +01:00
|
|
|
<HyperlinkButton x:Uid="Windows_Color_Settings" Click="OpenColorsSettings_Click" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard.Description>
|
2024-01-03 16:41:26 +01:00
|
|
|
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}" SelectedIndex="{x:Bind ViewModel.ThemeIndex, Mode=TwoWay}">
|
2022-11-23 19:57:09 +01:00
|
|
|
<ComboBoxItem x:Uid="Radio_Theme_Dark" />
|
|
|
|
|
<ComboBoxItem x:Uid="Radio_Theme_Light" />
|
|
|
|
|
<ComboBoxItem x:Uid="Radio_Theme_Default" />
|
|
|
|
|
</ComboBox>
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard x:Uid="GeneralPage_RunAtStartUp">
|
2024-01-03 16:41:26 +01:00
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.Startup, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</controls:SettingsGroup>
|
2022-10-13 03:41:21 -04:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="General_SettingsBackupAndRestoreTitle" Visibility="Visible">
|
|
|
|
|
<tkcontrols:SettingsExpander x:Uid="General_SettingsBackupAndRestore" HeaderIcon="{ui:FontIcon Glyph=}">
|
2023-03-20 14:27:29 +01:00
|
|
|
<StackPanel Orientation="Horizontal" Spacing="8">
|
|
|
|
|
<Button x:Uid="General_SettingsBackupAndRestore_ButtonBackup" Command="{Binding BackupConfigsEventHandler}" />
|
|
|
|
|
<Button x:Uid="General_SettingsBackupAndRestore_ButtonRestore" Command="{Binding RestoreConfigsEventHandler}" />
|
2022-11-23 19:57:09 +01:00
|
|
|
</StackPanel>
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsExpander.Items>
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="General_SettingsBackupAndRestoreLocationText">
|
2023-11-09 16:07:09 +01:00
|
|
|
<Grid ColumnSpacing="8">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
2022-11-23 19:57:09 +01:00
|
|
|
<TextBlock
|
|
|
|
|
x:Name="pathTextBlock"
|
|
|
|
|
VerticalAlignment="Center"
|
2023-09-14 18:41:31 +02:00
|
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsTextSelectionEnabled="True"
|
2024-01-03 16:41:26 +01:00
|
|
|
Text="{x:Bind ViewModel.SettingsBackupAndRestoreDir, Mode=TwoWay}"
|
2023-11-09 16:07:09 +01:00
|
|
|
TextWrapping="Wrap">
|
2022-11-23 19:57:09 +01:00
|
|
|
<ToolTipService.ToolTip>
|
2024-01-03 16:41:26 +01:00
|
|
|
<ToolTip IsEnabled="{Binding IsTextTrimmed, ElementName=pathTextBlock, Mode=OneWay}">
|
|
|
|
|
<TextBlock Text="{x:Bind ViewModel.SettingsBackupAndRestoreDir, Mode=TwoWay}" />
|
2022-11-23 19:57:09 +01:00
|
|
|
</ToolTip>
|
|
|
|
|
</ToolTipService.ToolTip>
|
2022-10-13 03:41:21 -04:00
|
|
|
</TextBlock>
|
2022-11-23 19:57:09 +01:00
|
|
|
<Button
|
2023-11-09 16:07:09 +01:00
|
|
|
Grid.Column="1"
|
2022-10-13 03:41:21 -04:00
|
|
|
Command="{Binding SelectSettingBackupDirEventHandler}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Content=""
|
|
|
|
|
FontFamily="{ThemeResource SymbolThemeFontFamily}">
|
|
|
|
|
<ToolTipService.ToolTip>
|
|
|
|
|
<ToolTip>
|
|
|
|
|
<TextBlock x:Uid="General_SettingsBackupAndRestore_ButtonSelectLocation" />
|
|
|
|
|
</ToolTip>
|
|
|
|
|
</ToolTipService.ToolTip>
|
|
|
|
|
</Button>
|
2023-11-09 16:07:09 +01:00
|
|
|
</Grid>
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="General_SettingsBackupAndRestoreStatusInfo"
|
|
|
|
|
HorizontalContentAlignment="Left"
|
|
|
|
|
ContentAlignment="Vertical">
|
2023-11-09 16:07:09 +01:00
|
|
|
<Grid
|
|
|
|
|
Margin="0,0,0,6"
|
|
|
|
|
ColumnSpacing="36"
|
|
|
|
|
RowSpacing="4">
|
2022-11-23 19:57:09 +01:00
|
|
|
<Grid.ColumnDefinitions>
|
2023-11-09 16:07:09 +01:00
|
|
|
<ColumnDefinition Width="Auto" />
|
2022-11-23 19:57:09 +01:00
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<TextBlock x:Uid="General_SettingsBackupInfo_StatusHeader" />
|
2023-11-09 16:07:09 +01:00
|
|
|
<TextBlock
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
|
|
|
|
TextWrapping="WrapWholeWords">
|
2024-01-03 16:41:26 +01:00
|
|
|
<Run Text="{x:Bind ViewModel.CurrentSettingMatchText, Mode=OneWay}" />
|
2023-03-20 14:27:29 +01:00
|
|
|
<Hyperlink Click="UpdateBackupAndRestoreStatusText" TextDecorations="Underline">
|
2022-11-23 19:57:09 +01:00
|
|
|
<Run x:Uid="General_SettingsBackupAndRestore_LinkRefresh" />
|
|
|
|
|
</Hyperlink>
|
|
|
|
|
</TextBlock>
|
2022-10-13 03:41:21 -04:00
|
|
|
|
2023-03-20 14:27:29 +01:00
|
|
|
<TextBlock x:Uid="General_SettingsBackupInfo_FileNameHeader" Grid.Row="1" />
|
2022-11-23 19:57:09 +01:00
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
2024-01-03 16:41:26 +01:00
|
|
|
Text="{x:Bind ViewModel.LastSettingsBackupFileName, Mode=OneWay}"
|
2023-11-09 16:07:09 +01:00
|
|
|
TextWrapping="WrapWholeWords" />
|
2022-11-23 19:57:09 +01:00
|
|
|
|
2023-03-20 14:27:29 +01:00
|
|
|
<TextBlock x:Uid="General_SettingsBackupInfo_SourceHeader" Grid.Row="2" />
|
2022-11-23 19:57:09 +01:00
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
2024-01-03 16:41:26 +01:00
|
|
|
Text="{x:Bind ViewModel.LastSettingsBackupSource, Mode=OneWay}"
|
2023-11-09 16:07:09 +01:00
|
|
|
TextWrapping="WrapWholeWords" />
|
2023-03-20 14:27:29 +01:00
|
|
|
<TextBlock x:Uid="General_SettingsBackupInfo_DateHeader" Grid.Row="3" />
|
2022-11-23 19:57:09 +01:00
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="3"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
2024-01-03 16:41:26 +01:00
|
|
|
Text="{x:Bind ViewModel.LastSettingsBackupDate, Mode=OneWay}"
|
2023-11-09 16:07:09 +01:00
|
|
|
TextWrapping="WrapWholeWords" />
|
2022-11-23 19:57:09 +01:00
|
|
|
</Grid>
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</tkcontrols:SettingsExpander.Items>
|
|
|
|
|
</tkcontrols:SettingsExpander>
|
|
|
|
|
</controls:SettingsGroup>
|
2022-11-23 19:57:09 +01:00
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="General_SettingsBackupMessageResults"
|
2024-01-03 16:41:26 +01:00
|
|
|
Title="{x:Bind ViewModel.SettingsBackupMessage, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.SettingsBackupRestoreMessageVisible, Mode=OneWay}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.SettingsBackupRestoreMessageVisible, Mode=OneWay}"
|
|
|
|
|
Severity="{x:Bind ViewModel.BackupRestoreMessageSeverity, Converter={StaticResource StringToInfoBarSeverityConverter}}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="General_Experimentation" Visibility="Visible">
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="GeneralPage_EnableExperimentation" IsEnabled="{x:Bind ViewModel.IsExperimentationGpoDisallowed, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
|
<tkcontrols:SettingsCard.HeaderIcon>
|
2023-03-20 14:27:29 +01:00
|
|
|
<PathIcon Data="M1859 1758q14 23 21 47t7 51q0 40-15 75t-41 61-61 41-75 15H354q-40 0-75-15t-61-41-41-61-15-75q0-27 6-51t21-47l569-992q10-14 10-34V128H640V0h768v128h-128v604q0 19 10 35l569 991zM896 732q0 53-27 99l-331 577h972l-331-577q-27-46-27-99V128H896v604zm799 1188q26 0 44-19t19-45q0-10-2-17t-8-16l-164-287H464l-165 287q-9 15-9 33 0 26 18 45t46 19h1341z" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard.HeaderIcon>
|
2024-01-03 16:41:26 +01:00
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.EnableExperimentation, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2023-02-17 21:23:39 +00:00
|
|
|
<InfoBar
|
2024-01-25 14:59:00 +01:00
|
|
|
x:Uid="GPO_SettingIsManaged"
|
2023-02-17 21:23:39 +00:00
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.IsExperimentationGpoDisallowed, Mode=OneWay}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.IsExperimentationGpoDisallowed, Mode=OneWay}"
|
2023-02-17 21:23:39 +00:00
|
|
|
Severity="Informational" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</controls:SettingsGroup>
|
2020-07-24 21:02:56 +02:00
|
|
|
</StackPanel>
|
2022-10-13 03:41:21 -04:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
|
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<controls:PageLink x:Uid="GeneralPage_Documentation" Link="https://aka.ms/PowerToysOverview" />
|
|
|
|
|
<controls:PageLink x:Uid="General_Repository" Link="https://aka.ms/powertoys" />
|
|
|
|
|
<controls:PageLink x:Uid="GeneralPage_ReportAbug" Link="https://aka.ms/powerToysReportBug" />
|
|
|
|
|
<controls:PageLink x:Uid="GeneralPage_RequestAFeature_URL" Link="https://aka.ms/powerToysRequestFeature" />
|
|
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<controls:SettingsPageControl.SecondaryLinks>
|
|
|
|
|
<controls:PageLink x:Uid="GeneralPage_PrivacyStatement_URL" Link="http://go.microsoft.com/fwlink/?LinkId=521839" />
|
|
|
|
|
<controls:PageLink x:Uid="OpenSource_Notice" Link="https://github.com/microsoft/PowerToys/blob/main/NOTICE.md" />
|
|
|
|
|
</controls:SettingsPageControl.SecondaryLinks>
|
|
|
|
|
</controls:SettingsPageControl>
|
2020-07-24 21:02:56 +02:00
|
|
|
</Page>
|