2021-10-22 13:30:18 +01:00
|
|
|
<Page
|
|
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.MouseUtilsPage"
|
|
|
|
|
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-23 19:57:09 +01:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:labs="using:CommunityToolkit.Labs.WinUI"
|
2022-03-04 12:28:11 +00:00
|
|
|
xmlns:localConverters="using:Microsoft.PowerToys.Settings.UI.Converters"
|
2022-11-23 19:57:09 +01:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI.UI"
|
|
|
|
|
AutomationProperties.LandmarkType="Main"
|
|
|
|
|
mc:Ignorable="d">
|
2022-03-04 12:28:11 +00:00
|
|
|
<Page.Resources>
|
2022-11-23 19:57:09 +01:00
|
|
|
<localConverters:FindMyMouseActivationShakeMouseIntToVisibilityConverter x:Key="FindMyMouseActivationShakeMouseIntToVisibilityConverter" />
|
2022-03-04 12:28:11 +00:00
|
|
|
</Page.Resources>
|
2022-11-23 19:57:09 +01:00
|
|
|
<controls:SettingsPageControl
|
|
|
|
|
x:Uid="MouseUtils"
|
2023-07-20 00:12:46 +01:00
|
|
|
ModuleImageSource="ms-appx:///Assets/Settings/Modules/MouseUtils.png">
|
2021-10-22 13:30:18 +01:00
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
2023-01-11 17:45:06 +01:00
|
|
|
<StackPanel Orientation="Vertical" ChildrenTransitions="{StaticResource SettingsCardsAnimations}">
|
2021-11-22 13:31:31 +00:00
|
|
|
<controls:SettingsGroup x:Uid="MouseUtils_FindMyMouse">
|
2022-11-23 19:57:09 +01:00
|
|
|
<labs:SettingsCard
|
|
|
|
|
x:Uid="MouseUtils_Enable_FindMyMouse"
|
2023-07-20 00:12:46 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/FluentIcons/FluentIconsFindMyMouse.png}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
|
IsOn="{x:Bind ViewModel.IsFindMyMouseEnabled, Mode=TwoWay}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 14:02:31 +01:00
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabledGpoConfigured}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabledGpoConfigured}"
|
|
|
|
|
Severity="Informational" />
|
|
|
|
|
<labs:SettingsExpander
|
|
|
|
|
x:Uid="MouseUtils_FindMyMouse_ActivationMethod"
|
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
|
IsEnabled="{x:Bind ViewModel.IsFindMyMouseEnabled, Mode=OneWay}"
|
|
|
|
|
IsExpanded="True">
|
|
|
|
|
<ComboBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
SelectedIndex="{x:Bind Path=ViewModel.FindMyMouseActivationMethod, Mode=TwoWay}">
|
|
|
|
|
<ComboBoxItem x:Uid="MouseUtils_FindMyMouse_ActivationDoubleControlPress" />
|
|
|
|
|
<ComboBoxItem x:Uid="MouseUtils_FindMyMouse_ActivationShakeMouse" />
|
|
|
|
|
</ComboBox>
|
|
|
|
|
<labs:SettingsExpander.Items>
|
|
|
|
|
<labs:SettingsCard
|
|
|
|
|
x:Uid="MouseUtils_FindMyMouse_ShakingMinimumDistance"
|
|
|
|
|
Visibility="{x:Bind Mode=OneWay, Path=ViewModel.FindMyMouseActivationMethod, Converter={StaticResource FindMyMouseActivationShakeMouseIntToVisibilityConverter}}">
|
|
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="1000"
|
|
|
|
|
Maximum="1000000"
|
|
|
|
|
Minimum="0"
|
|
|
|
|
SmallChange="100"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.FindMyMouseShakingMinimumDistance}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
<labs:SettingsCard ContentAlignment="Left">
|
|
|
|
|
<CheckBox
|
|
|
|
|
x:Uid="MouseUtils_Prevent_Activation_On_Game_Mode"
|
|
|
|
|
IsChecked="{x:Bind ViewModel.FindMyMouseDoNotActivateOnGameMode, Mode=TwoWay}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
</labs:SettingsExpander.Items>
|
|
|
|
|
</labs:SettingsExpander>
|
2022-10-26 14:02:31 +01:00
|
|
|
|
2022-11-23 19:57:09 +01:00
|
|
|
<labs:SettingsExpander
|
2022-11-29 13:36:39 +01:00
|
|
|
x:Uid="Appearance_Behavior"
|
2022-11-23 19:57:09 +01:00
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
|
IsEnabled="{x:Bind ViewModel.IsFindMyMouseEnabled, Mode=OneWay}"
|
|
|
|
|
IsExpanded="False">
|
|
|
|
|
<labs:SettingsExpander.Items>
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_FindMyMouse_OverlayOpacity">
|
|
|
|
|
<Slider
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
Maximum="100"
|
|
|
|
|
Minimum="1"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.FindMyMouseOverlayOpacity}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_FindMyMouse_BackgroundColor">
|
|
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.FindMyMouseBackgroundColor, Mode=TwoWay}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_FindMyMouse_SpotlightColor">
|
|
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.FindMyMouseSpotlightColor, Mode=TwoWay}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_FindMyMouse_SpotlightRadius">
|
|
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="10"
|
|
|
|
|
Minimum="5"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.FindMyMouseSpotlightRadius}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_FindMyMouse_SpotlightInitialZoom">
|
|
|
|
|
<Slider
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
Maximum="40"
|
|
|
|
|
Minimum="1"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.FindMyMouseSpotlightInitialZoom}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_FindMyMouse_AnimationDurationMs">
|
|
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="100"
|
|
|
|
|
Minimum="0"
|
|
|
|
|
SmallChange="10"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.FindMyMouseAnimationDurationMs}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
</labs:SettingsExpander.Items>
|
|
|
|
|
</labs:SettingsExpander>
|
|
|
|
|
|
|
|
|
|
<labs:SettingsExpander
|
|
|
|
|
x:Uid="MouseUtils_FindMyMouse_ExcludedApps"
|
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
|
IsEnabled="{x:Bind ViewModel.IsFindMyMouseEnabled, Mode=OneWay}">
|
|
|
|
|
<labs:SettingsExpander.Items>
|
|
|
|
|
<labs:SettingsCard ContentAlignment="Vertical" HorizontalContentAlignment="Stretch">
|
|
|
|
|
<TextBox
|
|
|
|
|
x:Uid="MouseUtils_FindMyMouse_ExcludedApps_TextBoxControl"
|
2022-02-14 18:22:05 +00:00
|
|
|
MinWidth="240"
|
2022-11-23 19:57:09 +01:00
|
|
|
MinHeight="160"
|
|
|
|
|
AcceptsReturn="True"
|
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsFindMyMouseEnabled}"
|
|
|
|
|
ScrollViewer.IsVerticalRailEnabled="True"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Visible"
|
|
|
|
|
ScrollViewer.VerticalScrollMode="Enabled"
|
|
|
|
|
Text="{x:Bind Mode=TwoWay, Path=ViewModel.FindMyMouseExcludedApps, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
</labs:SettingsExpander.Items>
|
|
|
|
|
</labs:SettingsExpander>
|
2021-11-22 13:31:31 +00:00
|
|
|
</controls:SettingsGroup>
|
2021-11-23 16:52:17 +00:00
|
|
|
|
2021-11-22 13:31:31 +00:00
|
|
|
<controls:SettingsGroup x:Uid="MouseUtils_MouseHighlighter">
|
2022-11-23 19:57:09 +01:00
|
|
|
<labs:SettingsCard
|
|
|
|
|
x:Uid="MouseUtils_Enable_MouseHighlighter"
|
2023-07-20 00:12:46 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/FluentIcons/FluentIconsMouseHighlighter.png}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsHighlighterEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
|
IsOn="{x:Bind ViewModel.IsMouseHighlighterEnabled, Mode=TwoWay}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 14:02:31 +01:00
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsHighlighterEnabledGpoConfigured}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsHighlighterEnabledGpoConfigured}"
|
|
|
|
|
Severity="Informational" />
|
2023-08-08 18:01:23 +02:00
|
|
|
<labs:SettingsExpander
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="MouseUtils_MouseHighlighter_ActivationShortcut"
|
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
2023-08-08 18:01:23 +02:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsMouseHighlighterEnabled, Mode=OneWay}"
|
|
|
|
|
IsExpanded="True">
|
2022-11-23 19:57:09 +01:00
|
|
|
<controls:ShortcutControl
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
HotkeySettings="{x:Bind Path=ViewModel.MouseHighlighterActivationShortcut, Mode=TwoWay}" />
|
2023-08-08 18:01:23 +02:00
|
|
|
<labs:SettingsExpander.Items>
|
|
|
|
|
<labs:SettingsCard ContentAlignment="Left">
|
|
|
|
|
<CheckBox
|
|
|
|
|
x:Uid="MouseUtils_AutoActivate"
|
|
|
|
|
IsChecked="{x:Bind ViewModel.MouseHighlighterAutoActivate, Mode=TwoWay}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
</labs:SettingsExpander.Items>
|
|
|
|
|
</labs:SettingsExpander>
|
2022-11-23 19:57:09 +01:00
|
|
|
<labs:SettingsExpander
|
2022-11-29 13:36:39 +01:00
|
|
|
x:Uid="Appearance_Behavior"
|
2022-11-23 19:57:09 +01:00
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
|
IsEnabled="{x:Bind ViewModel.IsMouseHighlighterEnabled, Mode=OneWay}">
|
|
|
|
|
<labs:SettingsExpander.Items>
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_MouseHighlighter_PrimaryButtonClickColor">
|
2023-07-26 23:48:00 +09:00
|
|
|
<controls:AlphaColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MouseHighlighterLeftButtonClickColor, Mode=TwoWay}" />
|
2022-11-23 19:57:09 +01:00
|
|
|
</labs:SettingsCard>
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_MouseHighlighter_SecondaryButtonClickColor">
|
2023-07-26 23:48:00 +09:00
|
|
|
<controls:AlphaColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MouseHighlighterRightButtonClickColor, Mode=TwoWay}" />
|
2022-11-23 19:57:09 +01:00
|
|
|
</labs:SettingsCard>
|
2023-07-26 23:48:00 +09:00
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_MouseHighlighter_AlwaysColor">
|
|
|
|
|
<controls:AlphaColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MouseHighlighterAlwaysColor, Mode=TwoWay}" />
|
2022-11-23 19:57:09 +01:00
|
|
|
</labs:SettingsCard>
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_MouseHighlighter_HighlightRadius">
|
|
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="10"
|
|
|
|
|
Minimum="5"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MouseHighlighterRadius}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_MouseHighlighter_FadeDelayMs">
|
|
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="100"
|
|
|
|
|
Minimum="100"
|
|
|
|
|
SmallChange="10"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MouseHighlighterFadeDelayMs}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_MouseHighlighter_FadeDurationMs">
|
|
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="100"
|
|
|
|
|
Minimum="100"
|
|
|
|
|
SmallChange="10"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MouseHighlighterFadeDurationMs}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
</labs:SettingsExpander.Items>
|
|
|
|
|
</labs:SettingsExpander>
|
2021-11-22 13:31:31 +00:00
|
|
|
</controls:SettingsGroup>
|
2022-01-24 13:29:16 +00:00
|
|
|
|
2023-02-24 13:30:30 +00:00
|
|
|
<controls:SettingsGroup x:Uid="MouseUtils_MouseJump">
|
|
|
|
|
<labs:SettingsCard
|
|
|
|
|
x:Uid="MouseUtils_Enable_MouseJump"
|
2023-07-20 00:12:46 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/FluentIcons/FluentIconsMouseJump.png}"
|
2023-02-24 13:30:30 +00:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsJumpEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
|
IsOn="{x:Bind ViewModel.IsMouseJumpEnabled, Mode=TwoWay}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
|
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsJumpEnabledGpoConfigured}"
|
|
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsJumpEnabledGpoConfigured}"
|
|
|
|
|
Severity="Informational" />
|
|
|
|
|
<labs:SettingsCard
|
|
|
|
|
x:Uid="MouseUtils_MouseJump_ActivationShortcut"
|
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
|
IsEnabled="{x:Bind ViewModel.IsMouseJumpEnabled, Mode=OneWay}">
|
|
|
|
|
<controls:ShortcutControl
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
HotkeySettings="{x:Bind Path=ViewModel.MouseJumpActivationShortcut, Mode=TwoWay}" />
|
|
|
|
|
</labs:SettingsCard>
|
2023-04-24 16:15:07 +01:00
|
|
|
<labs:SettingsCard
|
|
|
|
|
x:Uid="MouseUtils_MouseJump_ThumbnailSize"
|
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
|
IsEnabled="{x:Bind ViewModel.IsMouseJumpEnabled, Mode=OneWay}">
|
|
|
|
|
<labs:SettingsCard.Description>
|
|
|
|
|
<StackPanel
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Margin="0,4,0,0"
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
<TextBlock
|
|
|
|
|
x:Uid="MouseUtils_MouseJump_ThumbnailSize_Description_Prefix"
|
|
|
|
|
Margin="0,0,4,0"
|
|
|
|
|
Style="{ThemeResource SecondaryTextStyle}" />
|
|
|
|
|
<TextBlock
|
|
|
|
|
Margin="0,0,4,0"
|
|
|
|
|
FontWeight="SemiBold"
|
|
|
|
|
Style="{ThemeResource SecondaryTextStyle}"
|
|
|
|
|
Text="{x:Bind ViewModel.MouseJumpThumbnailSize.Width, Mode=OneWay}" />
|
|
|
|
|
<TextBlock
|
|
|
|
|
Margin="0,5,4,0"
|
|
|
|
|
AutomationProperties.AccessibilityView="Raw"
|
|
|
|
|
FontFamily="{ThemeResource SymbolThemeFontFamily}"
|
|
|
|
|
FontSize="10"
|
|
|
|
|
Foreground="{ThemeResource SystemBaseMediumColor}"
|
|
|
|
|
Style="{ThemeResource SecondaryTextStyle}"
|
|
|
|
|
Text="" />
|
|
|
|
|
<TextBlock
|
|
|
|
|
Margin="0,0,4,0"
|
|
|
|
|
FontWeight="SemiBold"
|
|
|
|
|
Style="{ThemeResource SecondaryTextStyle}"
|
|
|
|
|
Text="{x:Bind ViewModel.MouseJumpThumbnailSize.Height, Mode=OneWay}" />
|
|
|
|
|
<TextBlock
|
|
|
|
|
x:Uid="MouseUtils_MouseJump_ThumbnailSize_Description_Suffix"
|
|
|
|
|
Margin="0,0,4,0"
|
|
|
|
|
Foreground="{ThemeResource SystemBaseMediumColor}"
|
|
|
|
|
Style="{ThemeResource SecondaryTextStyle}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</labs:SettingsCard.Description>
|
|
|
|
|
<StackPanel
|
|
|
|
|
Grid.Column="2"
|
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
Spacing="8">
|
|
|
|
|
<Button
|
|
|
|
|
x:Uid="EditButton"
|
|
|
|
|
Width="40"
|
|
|
|
|
Height="36"
|
|
|
|
|
Content=""
|
|
|
|
|
FontFamily="{ThemeResource SymbolThemeFontFamily}"
|
|
|
|
|
Style="{StaticResource SubtleButtonStyle}">
|
|
|
|
|
<ToolTipService.ToolTip>
|
|
|
|
|
<TextBlock x:Uid="EditTooltip" />
|
|
|
|
|
</ToolTipService.ToolTip>
|
|
|
|
|
<Button.Flyout>
|
|
|
|
|
<Flyout x:Uid="MouseJumpThumbnailSize_Edit">
|
|
|
|
|
<StackPanel Margin="0,12,0,0" Spacing="16">
|
|
|
|
|
<NumberBox
|
|
|
|
|
x:Uid="MouseUtils_MouseJump_ThumbnailSize_Edit_Width"
|
|
|
|
|
Width="140"
|
|
|
|
|
Minimum="160"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind ViewModel.MouseJumpThumbnailSize.Width, Mode=TwoWay}" />
|
|
|
|
|
<NumberBox
|
|
|
|
|
x:Uid="MouseUtils_MouseJump_ThumbnailSize_Edit_Height"
|
|
|
|
|
Width="140"
|
|
|
|
|
Minimum="120"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind ViewModel.MouseJumpThumbnailSize.Height, Mode=TwoWay}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Flyout>
|
|
|
|
|
</Button.Flyout>
|
|
|
|
|
</Button>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</labs:SettingsCard>
|
2023-02-24 13:30:30 +00:00
|
|
|
</controls:SettingsGroup>
|
|
|
|
|
|
2022-01-26 14:01:24 +00:00
|
|
|
<controls:SettingsGroup x:Uid="MouseUtils_MousePointerCrosshairs">
|
2022-11-23 19:57:09 +01:00
|
|
|
<labs:SettingsCard
|
|
|
|
|
x:Uid="MouseUtils_Enable_MousePointerCrosshairs"
|
2023-07-20 00:12:46 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/FluentIcons/FluentIconsMouseCrosshairs.png}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMousePointerCrosshairsEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
|
IsOn="{x:Bind ViewModel.IsMousePointerCrosshairsEnabled, Mode=TwoWay}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 14:02:31 +01:00
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsMousePointerCrosshairsEnabledGpoConfigured}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsMousePointerCrosshairsEnabledGpoConfigured}"
|
|
|
|
|
Severity="Informational" />
|
2023-08-08 18:01:23 +02:00
|
|
|
<labs:SettingsExpander
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="MouseUtils_MousePointerCrosshairs_ActivationShortcut"
|
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
2023-08-08 18:01:23 +02:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsMousePointerCrosshairsEnabled, Mode=OneWay}"
|
|
|
|
|
IsExpanded="True">
|
2022-11-23 19:57:09 +01:00
|
|
|
<controls:ShortcutControl
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
HotkeySettings="{x:Bind Path=ViewModel.MousePointerCrosshairsActivationShortcut, Mode=TwoWay}" />
|
2023-08-08 18:01:23 +02:00
|
|
|
<labs:SettingsExpander.Items>
|
|
|
|
|
<labs:SettingsCard ContentAlignment="Left">
|
|
|
|
|
<CheckBox
|
|
|
|
|
x:Uid="MouseUtils_AutoActivate"
|
|
|
|
|
IsChecked="{x:Bind ViewModel.MousePointerCrosshairsAutoActivate, Mode=TwoWay}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
</labs:SettingsExpander.Items>
|
|
|
|
|
</labs:SettingsExpander>
|
2022-11-23 19:57:09 +01:00
|
|
|
|
|
|
|
|
<labs:SettingsExpander
|
2022-11-29 13:36:39 +01:00
|
|
|
x:Uid="Appearance_Behavior"
|
2022-11-23 19:57:09 +01:00
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
|
IsEnabled="{x:Bind ViewModel.IsMousePointerCrosshairsEnabled, Mode=OneWay}">
|
|
|
|
|
<labs:SettingsExpander.Items>
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsColor">
|
|
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MousePointerCrosshairsColor, Mode=TwoWay}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsOpacity">
|
|
|
|
|
<Slider
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
Maximum="100"
|
|
|
|
|
Minimum="1"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MousePointerCrosshairsOpacity}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsRadius">
|
|
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="10"
|
|
|
|
|
Maximum="500"
|
|
|
|
|
Minimum="1"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MousePointerCrosshairsRadius}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsThickness">
|
|
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="10"
|
|
|
|
|
Maximum="50"
|
|
|
|
|
Minimum="1"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MousePointerCrosshairsThickness}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsBorderColor">
|
|
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MousePointerCrosshairsBorderColor, Mode=TwoWay}" />
|
|
|
|
|
</labs:SettingsCard>
|
2022-10-26 14:02:31 +01:00
|
|
|
|
2022-11-23 19:57:09 +01:00
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsBorderSize">
|
|
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="2"
|
|
|
|
|
Maximum="50"
|
|
|
|
|
Minimum="0"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MousePointerCrosshairsBorderSize}" />
|
2023-07-18 14:33:32 +02:00
|
|
|
</labs:SettingsCard>
|
|
|
|
|
|
|
|
|
|
<labs:SettingsCard ContentAlignment="Left">
|
|
|
|
|
<CheckBox
|
|
|
|
|
x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsAutoHide"
|
|
|
|
|
IsChecked="{x:Bind ViewModel.MousePointerCrosshairsAutoHide, Mode=TwoWay}" />
|
2023-07-19 07:24:47 -07:00
|
|
|
</labs:SettingsCard>
|
|
|
|
|
|
|
|
|
|
<labs:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_IsCrosshairsFixedLengthEnabled">
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
|
IsOn="{x:Bind ViewModel.MousePointerCrosshairsIsFixedLengthEnabled, Mode=TwoWay}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
|
|
|
|
|
<labs:SettingsCard
|
|
|
|
|
x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsFixedLength"
|
|
|
|
|
IsEnabled="{x:Bind ViewModel.MousePointerCrosshairsIsFixedLengthEnabled, Mode=OneWay}">
|
|
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="10"
|
|
|
|
|
Minimum="1"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind Mode=TwoWay, Path=ViewModel.MousePointerCrosshairsFixedLength}" />
|
2022-11-23 19:57:09 +01:00
|
|
|
</labs:SettingsCard>
|
|
|
|
|
</labs:SettingsExpander.Items>
|
|
|
|
|
</labs:SettingsExpander>
|
2022-01-24 13:29:16 +00:00
|
|
|
</controls:SettingsGroup>
|
2021-10-22 13:30:18 +01:00
|
|
|
</StackPanel>
|
|
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
|
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
2022-11-23 19:57:09 +01:00
|
|
|
<controls:PageLink
|
|
|
|
|
x:Uid="LearnMore_MouseUtils"
|
|
|
|
|
Link="https://aka.ms/PowerToysOverview_MouseUtilities" />
|
2021-10-22 13:30:18 +01:00
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<controls:SettingsPageControl.SecondaryLinks>
|
2022-11-23 19:57:09 +01:00
|
|
|
<controls:PageLink
|
|
|
|
|
Link="https://devblogs.microsoft.com/oldnewthing/author/oldnewthing"
|
|
|
|
|
Text="Raymond Chen's Find My Mouse" />
|
2023-02-24 13:30:30 +00:00
|
|
|
<controls:PageLink
|
|
|
|
|
Link="https://michael-clayton.com/projects/fancymouse"
|
|
|
|
|
Text="Michael Clayton's Mouse Jump (FancyMouse)" />
|
2021-10-22 13:30:18 +01:00
|
|
|
</controls:SettingsPageControl.SecondaryLinks>
|
|
|
|
|
</controls:SettingsPageControl>
|
|
|
|
|
</Page>
|