mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-24 00:48:00 +08:00
6ef40f53c3
* Make string less ambiguous And update ID accordingly * textual * correct sentences * remove "to activate" because it is redundant
81 lines
5.2 KiB
XML
81 lines
5.2 KiB
XML
<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">
|
|
|
|
<controls:SettingsPageControl x:Uid="QuickAccent" IsTabStop="False"
|
|
ModuleImageSource="ms-appx:///Assets/Modules/PowerAccent.png">
|
|
<controls:SettingsPageControl.ModuleContent>
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
<controls:Setting x:Uid="QuickAccent_EnableQuickAccent">
|
|
<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>
|
|
|
|
<controls:SettingsGroup x:Uid="QuickAccent_Activation_GroupSettings" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
<controls:Setting x:Uid="QuickAccent_Activation_Shortcut" Icon="">
|
|
<controls:Setting.ActionContent>
|
|
<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>
|
|
</controls:Setting.ActionContent>
|
|
</controls:Setting>
|
|
</controls:SettingsGroup>
|
|
|
|
<controls:SettingsGroup x:Uid="QuickAccent_Toolbar" IsEnabled="{Binding Mode=OneWay, Path=IsEnabled}">
|
|
<controls:Setting x:Uid="QuickAccent_ToolbarPosition" Icon="">
|
|
<controls:Setting.ActionContent>
|
|
<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>
|
|
</controls:Setting.ActionContent>
|
|
</controls:Setting>
|
|
</controls:SettingsGroup>
|
|
<controls:SettingsGroup x:Uid="QuickAccent_Behavior" IsEnabled="{Binding Mode=OneWay, Path=IsEnabled}">
|
|
<controls:Setting x:Uid="QuickAccent_InputTimeMs" Icon="">
|
|
<controls:Setting.ActionContent>
|
|
<NumberBox Minimum="100"
|
|
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>
|
|
</StackPanel>
|
|
</controls:SettingsPageControl.ModuleContent>
|
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
|
<controls:PageLink x:Uid="LearnMore_QuickAccent" Link="https://aka.ms/PowerToysOverview_QuickAccent"/>
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
|
<controls:SettingsPageControl.SecondaryLinks>
|
|
<controls:PageLink Text="Damien Leroy's PowerAccent" Link="https://github.com/damienleroy/PowerAccent"/>
|
|
</controls:SettingsPageControl.SecondaryLinks>
|
|
</controls:SettingsPageControl>
|
|
</Page>
|