2022-08-27 00:01:50 +08:00
|
|
|
<Page
|
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.PowerAccentPage"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:converters="using:Microsoft.PowerToys.Settings.UI.Converters"
|
|
|
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
AutomationProperties.LandmarkType="Main">
|
|
|
|
|
2022-09-01 02:05:54 +08:00
|
|
|
<controls:SettingsPageControl x:Uid="QuickAccent" IsTabStop="False"
|
2022-08-27 00:01:50 +08:00
|
|
|
ModuleImageSource="ms-appx:///Assets/Modules/PowerAccent.png">
|
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
|
2022-09-01 02:05:54 +08:00
|
|
|
<controls:Setting x:Uid="QuickAccent_EnableQuickAccent">
|
2022-08-27 00:01:50 +08:00
|
|
|
<controls:Setting.Icon>
|
|
|
|
<BitmapIcon UriSource="ms-appx:///Assets/FluentIcons/FluentIconsPowerAccent.png" ShowAsMonochrome="False" />
|
|
|
|
</controls:Setting.Icon>
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ToggleSwitch IsOn="{x:Bind ViewModel.IsEnabled, Mode=TwoWay}" x:Uid="ToggleSwitch" HorizontalAlignment="Right"/>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
|
2022-09-01 02:05:54 +08:00
|
|
|
<controls:SettingsGroup x:Uid="QuickAccent_Activation_GroupSettings" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
<controls:Setting x:Uid="QuickAccent_Activation_Shortcut" Icon="">
|
2022-08-27 00:01:50 +08:00
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
SelectedIndex="{x:Bind Path=ViewModel.ActivationKey, Mode=TwoWay}" >
|
2022-09-01 02:05:54 +08:00
|
|
|
<ComboBoxItem x:Uid="QuickAccent_Activation_Key_Arrows"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_Activation_Key_Space"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_Activation_Key_Both"/>
|
2022-08-27 00:01:50 +08:00
|
|
|
</ComboBox>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
</controls:SettingsGroup>
|
|
|
|
|
2022-09-01 02:05:54 +08:00
|
|
|
<controls:SettingsGroup x:Uid="QuickAccent_Toolbar" IsEnabled="{Binding Mode=OneWay, Path=IsEnabled}">
|
|
|
|
<controls:Setting x:Uid="QuickAccent_ToolbarPosition" Icon="">
|
2022-08-27 00:01:50 +08:00
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
SelectedIndex="{x:Bind Path=ViewModel.ToolbarPositionIndex, Mode=TwoWay}" >
|
2022-09-01 02:05:54 +08:00
|
|
|
<ComboBoxItem x:Uid="QuickAccent_ToolbarPosition_TopCenter"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_ToolbarPosition_BottomCenter"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_ToolbarPosition_Left"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_ToolbarPosition_Right"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_ToolbarPosition_TopRightCorner"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_ToolbarPosition_TopLeftCorner"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_ToolbarPosition_BottomRightCorner"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_ToolbarPosition_BottomLeftCorner"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_ToolbarPosition_Center"/>
|
2022-08-27 00:01:50 +08:00
|
|
|
</ComboBox>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
</controls:SettingsGroup>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
|
|
|
|
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
2022-09-01 02:05:54 +08:00
|
|
|
<controls:PageLink x:Uid="LearnMore_QuickAccent" Link="https://aka.ms/PowerToysOverview_QuickAccent"/>
|
2022-08-27 00:01:50 +08:00
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
<controls:SettingsPageControl.SecondaryLinks>
|
2022-09-01 02:05:54 +08:00
|
|
|
<controls:PageLink Text="Damien Leroy's PowerAccent" Link="https://github.com/damienleroy/PowerAccent"/>
|
2022-08-27 00:01:50 +08:00
|
|
|
</controls:SettingsPageControl.SecondaryLinks>
|
|
|
|
</controls:SettingsPageControl>
|
|
|
|
</Page>
|