mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-23 08:27:58 +08:00
a98b12a2fb
* correct the uid * Remove periods and generalize "Appearance & behavior" uid Descriptions don't need a period, unless they're full sentences. * simplify bold text to interactive elements the 3 changes from bold to code are for readability * rev feet * -1 ing
155 lines
8.9 KiB
XML
155 lines
8.9 KiB
XML
<Page
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.ShortcutGuidePage"
|
|
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"
|
|
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">
|
|
|
|
<controls:SettingsPageControl
|
|
x:Uid="ShortcutGuide"
|
|
ModuleImageSource="ms-appx:///Assets/Modules/ShortcutGuide.png">
|
|
<controls:SettingsPageControl.ModuleContent>
|
|
<StackPanel Orientation="Vertical">
|
|
<labs:SettingsCard
|
|
x:Uid="ShortcutGuide_Enable"
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsShortcutGuide.png}"
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
<ToggleSwitch
|
|
x:Uid="ToggleSwitch"
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.IsEnabled}" />
|
|
</labs:SettingsCard>
|
|
<InfoBar
|
|
x:Uid="GPO_IsSettingForced"
|
|
IsClosable="False"
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}"
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}"
|
|
Severity="Informational" />
|
|
<controls:SettingsGroup
|
|
x:Uid="Shortcut"
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
<labs:SettingsCard x:Uid="ShortcutGuide_ActivationMethod">
|
|
<ComboBox
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
SelectedIndex="{x:Bind Mode=TwoWay, Path=ViewModel.UseLegacyPressWinKeyBehavior, Converter={StaticResource BoolToComboBoxIndexConverter}}">
|
|
<ComboBoxItem x:Uid="Radio_ShortcutGuide_ActivationMethod_CustomizedShortcut" />
|
|
<ComboBoxItem x:Uid="Radio_ShortcutGuide_ActivationMethod_LongPressWindowsKey" />
|
|
</ComboBox>
|
|
</labs:SettingsCard>
|
|
|
|
<labs:SettingsCard
|
|
x:Uid="Activation_Shortcut"
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
|
Glyph=}"
|
|
Visibility="{x:Bind Mode=OneWay, Path=ViewModel.UseLegacyPressWinKeyBehavior, Converter={StaticResource ReverseBoolToVisibilityConverter}}">
|
|
<controls:ShortcutControl
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
HotkeySettings="{x:Bind Path=ViewModel.OpenShortcutGuide, Mode=TwoWay}" />
|
|
</labs:SettingsCard>
|
|
|
|
<labs:SettingsCard
|
|
x:Uid="ShortcutGuide_PressTimeForGlobalWindowsShortcuts"
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
|
Glyph=}"
|
|
Visibility="{x:Bind Mode=OneWay, Path=ViewModel.UseLegacyPressWinKeyBehavior, Converter={StaticResource BoolToVisibilityConverter}}">
|
|
<NumberBox
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
LargeChange="100"
|
|
Minimum="100"
|
|
SmallChange="50"
|
|
SpinButtonPlacementMode="Compact"
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.PressTime}" />
|
|
</labs:SettingsCard>
|
|
|
|
<labs:SettingsCard
|
|
x:Uid="ShortcutGuide_PressTimeForTaskbarIconShortcuts"
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
|
Glyph=}"
|
|
Visibility="{x:Bind Mode=OneWay, Path=ViewModel.UseLegacyPressWinKeyBehavior, Converter={StaticResource BoolToVisibilityConverter}}">
|
|
<NumberBox
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
LargeChange="100"
|
|
Minimum="100"
|
|
SmallChange="50"
|
|
SpinButtonPlacementMode="Compact"
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.DelayTime}" />
|
|
</labs:SettingsCard>
|
|
|
|
<InfoBar
|
|
x:Uid="ShortcutGuide_PressWinKeyWarning"
|
|
IsClosable="False"
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.UseLegacyPressWinKeyBehavior}"
|
|
IsTabStop="True"
|
|
Severity="Warning" />
|
|
</controls:SettingsGroup>
|
|
|
|
<controls:SettingsGroup
|
|
x:Uid="Appearance_Behavior"
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
<labs:SettingsCard
|
|
x:Uid="ColorModeHeader"
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
|
Glyph=}">
|
|
<labs:SettingsCard.Description>
|
|
<HyperlinkButton
|
|
x:Uid="Windows_Color_Settings"
|
|
Click="OpenColorsSettings_Click" />
|
|
</labs:SettingsCard.Description>
|
|
<ComboBox
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
SelectedIndex="{x:Bind Mode=TwoWay, Path=ViewModel.ThemeIndex}">
|
|
<ComboBoxItem x:Uid="Radio_Theme_Dark" />
|
|
<ComboBoxItem x:Uid="Radio_Theme_Light" />
|
|
<ComboBoxItem x:Uid="Radio_Theme_Default" />
|
|
</ComboBox>
|
|
</labs:SettingsCard>
|
|
|
|
<labs:SettingsCard x:Uid="ShortcutGuide_OverlayOpacity">
|
|
<Slider
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
Maximum="100"
|
|
Minimum="0"
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.OverlayOpacity}" />
|
|
</labs:SettingsCard>
|
|
</controls:SettingsGroup>
|
|
|
|
<controls:SettingsGroup
|
|
x:Uid="ExcludedApps"
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
<labs:SettingsExpander
|
|
x:Uid="ShortcutGuide_DisabledApps"
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
|
Glyph=}"
|
|
IsExpanded="True">
|
|
<labs:SettingsExpander.Items>
|
|
<labs:SettingsCard
|
|
HorizontalContentAlignment="Stretch"
|
|
ContentAlignment="Vertical">
|
|
<TextBox
|
|
x:Uid="ShortcutGuide_DisabledApps_TextBoxControl"
|
|
MinWidth="240"
|
|
MinHeight="160"
|
|
AcceptsReturn="True"
|
|
ScrollViewer.IsVerticalRailEnabled="True"
|
|
ScrollViewer.VerticalScrollBarVisibility="Visible"
|
|
ScrollViewer.VerticalScrollMode="Enabled"
|
|
Text="{x:Bind Mode=TwoWay, Path=ViewModel.DisabledApps, UpdateSourceTrigger=PropertyChanged}"
|
|
TextWrapping="Wrap" />
|
|
</labs:SettingsCard>
|
|
</labs:SettingsExpander.Items>
|
|
</labs:SettingsExpander>
|
|
</controls:SettingsGroup>
|
|
</StackPanel>
|
|
</controls:SettingsPageControl.ModuleContent>
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
|
<controls:PageLink
|
|
x:Uid="LearnMore_ShortcutGuide"
|
|
Link="https://aka.ms/PowerToysOverview_ShortcutGuide" />
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
|
</controls:SettingsPageControl>
|
|
</Page> |