2020-03-12 14:25:24 +08:00
|
|
|
<Page
|
|
|
|
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"
|
|
|
|
xmlns:local="using:Microsoft.PowerToys.Settings.UI.Views"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
|
|
|
|
2020-03-31 20:32:22 +08:00
|
|
|
<Grid ColumnSpacing="{StaticResource DefaultColumnSpacing}" RowSpacing="{StaticResource DefaultRowSpacing}">
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
<VisualStateGroup x:Name="LayoutVisualStates">
|
|
|
|
<VisualState x:Name="WideLayout">
|
|
|
|
<VisualState.StateTriggers>
|
|
|
|
<AdaptiveTrigger MinWindowWidth="{StaticResource WideLayoutMinWidth}" />
|
|
|
|
</VisualState.StateTriggers>
|
|
|
|
<VisualState.Setters>
|
|
|
|
<Setter Target="SidePanel.(Grid.Column)" Value="1" />
|
|
|
|
<Setter Target="SidePanel.(Grid.Row)" Value="0" />
|
|
|
|
</VisualState.Setters>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="SmallLayout">
|
|
|
|
<VisualState.StateTriggers>
|
|
|
|
<AdaptiveTrigger MinWindowWidth="{StaticResource SmallLayoutMinWidth}" />
|
|
|
|
</VisualState.StateTriggers>
|
|
|
|
<VisualState.Setters>
|
|
|
|
<Setter Target="SidePanel.(Grid.Column)" Value="0" />
|
|
|
|
<Setter Target="SidePanel.(Grid.Row)" Value="1" />
|
|
|
|
</VisualState.Setters>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel Orientation="Vertical">
|
2020-03-12 14:25:24 +08:00
|
|
|
|
2020-03-31 20:32:22 +08:00
|
|
|
<ToggleSwitch Header="Run at startup" x:Name="ToggleSwitch_RunAtStartUp" Margin="{StaticResource SmallTopMargin}" Toggled="ToggleSwitch_RunAtStartUp_Toggled" />
|
2020-03-12 14:25:24 +08:00
|
|
|
|
2020-04-17 07:19:52 +08:00
|
|
|
<muxc:RadioButtons Header="Theme" Margin="{StaticResource MediumTopMargin}">
|
2020-03-31 20:32:22 +08:00
|
|
|
<RadioButton x:Name="Radio_Theme_Dark" Content="Dark" Tag="Dark" Checked="Theme_Changed"/>
|
|
|
|
<RadioButton x:Name="Radio_Theme_Light" Content="Light" Tag="Light" Checked="Theme_Changed"/>
|
|
|
|
<RadioButton x:Name="Radio_Theme_Default" Content="System default" Tag="System" Checked="Theme_Changed"/>
|
|
|
|
</muxc:RadioButtons>
|
2020-03-12 14:25:24 +08:00
|
|
|
|
2020-03-31 20:32:22 +08:00
|
|
|
<!--
|
2020-03-27 23:58:53 +08:00
|
|
|
<TextBlock Text="Default apps" Style="{StaticResource SettingsGroupTitleStyle}"/>
|
2020-03-12 14:25:24 +08:00
|
|
|
<ToggleSwitch Header="Disable telemetry" IsOn="True" Margin="0,14,0,0" />
|
|
|
|
<TextBlock Text="PowerToys currently respects the Windows data & feedback setting" Opacity="0.8" Margin="0,0,0,0" />
|
2020-03-25 10:55:02 +08:00
|
|
|
-->
|
2020-03-12 14:25:24 +08:00
|
|
|
|
2020-04-15 01:42:27 +08:00
|
|
|
<Button
|
|
|
|
Content="Restart as admin"
|
2020-04-17 07:19:52 +08:00
|
|
|
Margin="{StaticResource MediumTopMargin}"
|
2020-04-15 01:42:27 +08:00
|
|
|
Style="{StaticResource AccentButtonStyle}"
|
|
|
|
Click="Restart_Elevated" />
|
2020-03-25 10:55:02 +08:00
|
|
|
|
2020-03-31 20:32:22 +08:00
|
|
|
<!--
|
2020-03-12 14:25:24 +08:00
|
|
|
<TextBlock Text="Default apps" Style="{StaticResource SubtitleTextBlockStyle}" Margin="0,34,0,8"/>
|
|
|
|
<ComboBox Header="Shell" SelectedIndex="0" MinWidth="240" Margin="0,14,0,0">
|
|
|
|
<ComboBoxItem>PowerShell</ComboBoxItem>
|
|
|
|
</ComboBox>
|
|
|
|
<ComboBox Header="Terminal" SelectedIndex="0" MinWidth="240" Margin="0,14,0,0">
|
|
|
|
<ComboBoxItem>Windows Console</ComboBoxItem>
|
|
|
|
</ComboBox>
|
2020-03-25 10:55:02 +08:00
|
|
|
-->
|
|
|
|
|
2020-03-31 20:32:22 +08:00
|
|
|
</StackPanel>
|
2020-03-12 14:25:24 +08:00
|
|
|
|
2020-04-15 01:42:27 +08:00
|
|
|
<StackPanel
|
|
|
|
x:Name="SidePanel"
|
|
|
|
Orientation="Vertical"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Width="{StaticResource SidePanelWidth}"
|
|
|
|
Grid.Column="1">
|
2020-03-31 20:32:22 +08:00
|
|
|
|
2020-04-15 01:42:27 +08:00
|
|
|
<TextBlock
|
|
|
|
Text="About PowerToys"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
|
|
|
Margin="{StaticResource XSmallBottomMargin}"/>
|
|
|
|
<TextBlock
|
|
|
|
Text="Version 0.15.2"
|
|
|
|
FontWeight="Bold"
|
|
|
|
Margin="{StaticResource SmallTopMargin}" />
|
2020-04-17 07:19:52 +08:00
|
|
|
<HyperlinkButton
|
|
|
|
Content="Release notes"
|
|
|
|
NavigateUri="https://github.com/microsoft/PowerToys/releases" />
|
2020-04-15 01:42:27 +08:00
|
|
|
<Button
|
|
|
|
Content="Check for updates"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
Style="{StaticResource AccentButtonStyle}"
|
|
|
|
Click="CheckForUpdates_Click" />
|
|
|
|
<HyperlinkButton
|
|
|
|
Content="Report a bug"
|
|
|
|
NavigateUri="https://github.com/microsoft/PowerToys/issues"
|
2020-04-17 07:19:52 +08:00
|
|
|
Margin="{StaticResource MediumTopMargin}" />
|
2020-04-15 01:42:27 +08:00
|
|
|
<HyperlinkButton
|
|
|
|
Content="Request a feature"
|
|
|
|
NavigateUri="https://github.com/microsoft/PowerToys/issues"/>
|
|
|
|
<HyperlinkButton
|
|
|
|
Content="Privacy statement"
|
|
|
|
NavigateUri="http://go.microsoft.com/fwlink/?LinkId=521839" />
|
|
|
|
<HyperlinkButton
|
|
|
|
Content="Open-source notice"
|
|
|
|
NavigateUri="https://github.com/microsoft/PowerToys/blob/master/NOTICE.md" />
|
2020-03-31 20:32:22 +08:00
|
|
|
</StackPanel>
|
2020-03-12 14:25:24 +08:00
|
|
|
</Grid>
|
|
|
|
</Page>
|