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: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"/>
|
2022-09-28 01:42:22 +08:00
|
|
|
<ComboBoxItem x:Uid="QuickAccent_Activation_Key_Either"/>
|
2022-08-27 00:01:50 +08:00
|
|
|
</ComboBox>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
</controls:SettingsGroup>
|
|
|
|
|
2022-09-29 22:28:14 +08:00
|
|
|
<controls:SettingsGroup x:Uid="QuickAccent_Language" IsEnabled="{Binding Mode=OneWay, Path=IsEnabled}">
|
|
|
|
<controls:Setting x:Uid="QuickAccent_SelectedLanguage" Icon="">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
SelectedIndex="{x:Bind Path=ViewModel.SelectedLangIndex, Mode=TwoWay}" >
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_All"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Currency"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Czech"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_French"/>
|
2022-10-10 20:32:24 +08:00
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_German"/>
|
2022-09-29 22:28:14 +08:00
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Hungarian"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Icelandic"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Italian"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Maori"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Pinyin"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Polish"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Romanian"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Slovakian"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Spanish"/>
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Turkish"/>
|
|
|
|
</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>
|
2022-09-29 22:28:14 +08:00
|
|
|
|
2022-09-01 23:56:19 +08:00
|
|
|
<controls:SettingsGroup x:Uid="QuickAccent_Behavior" IsEnabled="{Binding Mode=OneWay, Path=IsEnabled}">
|
|
|
|
<controls:Setting x:Uid="QuickAccent_InputTimeMs" Icon="">
|
|
|
|
<controls:Setting.ActionContent>
|
2022-09-21 00:59:18 +08:00
|
|
|
<NumberBox Minimum="100"
|
2022-09-01 23:56:19 +08:00
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.InputTimeMs}"
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
SmallChange="10"
|
|
|
|
LargeChange="100"/>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
</controls:SettingsGroup>
|
2022-08-27 00:01:50 +08:00
|
|
|
</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>
|