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:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2022-11-24 02:57:09 +08:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:labs="using:CommunityToolkit.Labs.WinUI"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI.UI"
|
|
|
|
AutomationProperties.LandmarkType="Main"
|
|
|
|
mc:Ignorable="d">
|
2022-10-26 21:02:31 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<controls:SettingsPageControl
|
|
|
|
x:Uid="QuickAccent"
|
|
|
|
IsTabStop="False"
|
|
|
|
ModuleImageSource="ms-appx:///Assets/Modules/PowerAccent.png">
|
2022-08-27 00:01:50 +08:00
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
|
|
|
<StackPanel Orientation="Vertical">
|
2022-11-24 02:57:09 +08:00
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="QuickAccent_EnableQuickAccent"
|
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsPowerAccent.png}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
<ToggleSwitch
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
IsOn="{x:Bind ViewModel.IsEnabled, Mode=TwoWay}" />
|
|
|
|
</labs:SettingsCard>
|
2022-08-27 00:01:50 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<InfoBar
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 21:02:31 +08:00
|
|
|
IsClosable="False"
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}"
|
2022-11-24 02:57:09 +08:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}"
|
|
|
|
Severity="Informational" />
|
2022-08-27 00:01:50 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<controls:SettingsGroup
|
|
|
|
x:Uid="QuickAccent_Activation_GroupSettings"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="QuickAccent_Activation_Shortcut"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
|
|
|
Glyph=}">
|
|
|
|
<ComboBox
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
SelectedIndex="{x:Bind Path=ViewModel.ActivationKey, Mode=TwoWay}">
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_Activation_Key_Arrows" />
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_Activation_Key_Space" />
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_Activation_Key_Either" />
|
|
|
|
</ComboBox>
|
|
|
|
</labs:SettingsCard>
|
2022-08-27 00:01:50 +08:00
|
|
|
</controls:SettingsGroup>
|
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<controls:SettingsGroup
|
|
|
|
x:Uid="QuickAccent_Language"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="QuickAccent_SelectedLanguage"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
|
|
|
Glyph=}">
|
|
|
|
<ComboBox
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
SelectedIndex="{x:Bind Path=ViewModel.SelectedLangIndex, Mode=TwoWay}">
|
|
|
|
<!-- These should be in the same order as the array items in PowerAccentViewModel.cs -->
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_All" />
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Currency" />
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Croatian" />
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Czech" />
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Dutch" />
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_French" />
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_German" />
|
|
|
|
<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_Portuguese" />
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Romanian" />
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Slovakian" />
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Spanish" />
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Swedish" />
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Turkish" />
|
|
|
|
<ComboBoxItem x:Uid="QuickAccent_SelectedLanguage_Welsh" />
|
|
|
|
</ComboBox>
|
|
|
|
</labs:SettingsCard>
|
2022-09-29 22:28:14 +08:00
|
|
|
</controls:SettingsGroup>
|
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<controls:SettingsGroup
|
|
|
|
x:Uid="QuickAccent_Toolbar"
|
|
|
|
IsEnabled="{Binding Mode=OneWay, Path=IsEnabled}">
|
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="QuickAccent_ToolbarPosition"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
|
|
|
Glyph=}">
|
|
|
|
<ComboBox
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
SelectedIndex="{x:Bind Path=ViewModel.ToolbarPositionIndex, Mode=TwoWay}">
|
|
|
|
<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" />
|
|
|
|
</ComboBox>
|
|
|
|
</labs:SettingsCard>
|
2022-08-27 00:01:50 +08:00
|
|
|
</controls:SettingsGroup>
|
2022-11-24 02:57:09 +08:00
|
|
|
|
|
|
|
<controls:SettingsGroup
|
|
|
|
x:Uid="QuickAccent_Behavior"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="QuickAccent_InputTimeMs"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
|
|
|
Glyph=}">
|
|
|
|
<NumberBox
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
LargeChange="100"
|
|
|
|
Minimum="100"
|
|
|
|
SmallChange="10"
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.InputTimeMs}" />
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
|
|
|
<labs:SettingsExpander
|
|
|
|
x:Uid="QuickAccent_ExcludedApps"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
|
|
|
Glyph=}">
|
|
|
|
<labs:SettingsExpander.Items>
|
|
|
|
<labs:SettingsCard
|
|
|
|
HorizontalContentAlignment="Stretch"
|
|
|
|
ContentAlignment="Vertical">
|
|
|
|
<TextBox
|
|
|
|
x:Uid="QuickAccent_ExcludedApps_TextBoxControl"
|
2022-11-15 20:47:52 +08:00
|
|
|
MinWidth="240"
|
2022-11-24 02:57:09 +08:00
|
|
|
MinHeight="160"
|
|
|
|
AcceptsReturn="True"
|
|
|
|
ScrollViewer.IsVerticalRailEnabled="True"
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Visible"
|
|
|
|
ScrollViewer.VerticalScrollMode="Enabled"
|
|
|
|
Text="{x:Bind Mode=TwoWay, Path=ViewModel.ExcludedApps, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
</labs:SettingsCard>
|
|
|
|
</labs:SettingsExpander.Items>
|
|
|
|
</labs:SettingsExpander>
|
2022-09-01 23:56:19 +08:00
|
|
|
</controls:SettingsGroup>
|
2022-08-27 00:01:50 +08:00
|
|
|
</StackPanel>
|
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
|
|
|
|
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
2022-11-24 02:57:09 +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-11-24 02:57:09 +08:00
|
|
|
<controls:PageLink
|
|
|
|
Link="https://github.com/damienleroy/PowerAccent"
|
|
|
|
Text="Damien Leroy's PowerAccent" />
|
2022-08-27 00:01:50 +08:00
|
|
|
</controls:SettingsPageControl.SecondaryLinks>
|
|
|
|
</controls:SettingsPageControl>
|
|
|
|
</Page>
|