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"
|
2023-09-14 18:41:31 +02:00
|
|
|
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
|
|
|
|
|
xmlns:converters="using:CommunityToolkit.WinUI.Converters"
|
|
|
|
|
xmlns:custom="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2022-11-23 19:57:09 +01:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
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"
|
2023-09-14 18:41:31 +02:00
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI"
|
2022-11-23 19:57:09 +01:00
|
|
|
AutomationProperties.LandmarkType="Main"
|
|
|
|
|
mc:Ignorable="d">
|
2022-03-04 12:28:11 +00:00
|
|
|
<Page.Resources>
|
2023-09-04 17:58:37 +02:00
|
|
|
<localConverters:FindMyMouseActivationIntToVisibilityConverter x:Key="FindMyMouseActivationIntToVisibilityConverter" />
|
2023-09-14 18:41:31 +02:00
|
|
|
<converters:BoolToVisibilityConverter
|
|
|
|
|
x:Key="BoolToInvertedVisibilityConverter"
|
|
|
|
|
FalseValue="Visible"
|
|
|
|
|
TrueValue="Collapsed" />
|
2022-03-04 12:28:11 +00:00
|
|
|
</Page.Resources>
|
2023-09-14 18:41:31 +02:00
|
|
|
<custom:SettingsPageControl x:Uid="MouseUtils" ModuleImageSource="ms-appx:///Assets/Settings/Modules/MouseUtils.png">
|
|
|
|
|
<custom:SettingsPageControl.ModuleContent>
|
|
|
|
|
<StackPanel ChildrenTransitions="{StaticResource SettingsCardsAnimations}" Orientation="Vertical">
|
|
|
|
|
<custom:SettingsGroup x:Uid="MouseUtils_FindMyMouse">
|
|
|
|
|
<controls:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="MouseUtils_Enable_FindMyMouse"
|
2023-07-20 00:12:46 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/FluentIcons/FluentIconsFindMyMouse.png}"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsFindMyMouseEnabledGpoConfigured, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.IsFindMyMouseEnabled, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 14:02:31 +01:00
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.IsFindMyMouseEnabledGpoConfigured, Mode=OneWay}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.IsFindMyMouseEnabledGpoConfigured, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Severity="Informational" />
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsExpander
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="MouseUtils_FindMyMouse_ActivationMethod"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsFindMyMouseEnabled, Mode=OneWay}"
|
|
|
|
|
IsExpanded="True">
|
2023-09-14 18:41:31 +02:00
|
|
|
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}" SelectedIndex="{x:Bind Path=ViewModel.FindMyMouseActivationMethod, Mode=TwoWay}">
|
2022-11-23 19:57:09 +01:00
|
|
|
<ComboBoxItem x:Uid="MouseUtils_FindMyMouse_ActivationDoubleControlPress" />
|
2023-09-04 17:58:37 +02:00
|
|
|
<ComboBoxItem x:Uid="MouseUtils_FindMyMouse_ActivationDoubleRightControlPress" />
|
2022-11-23 19:57:09 +01:00
|
|
|
<ComboBoxItem x:Uid="MouseUtils_FindMyMouse_ActivationShakeMouse" />
|
2023-09-04 17:58:37 +02:00
|
|
|
<ComboBoxItem x:Uid="MouseUtils_FindMyMouse_ActivationCustomizedShortcut" />
|
2022-11-23 19:57:09 +01:00
|
|
|
</ComboBox>
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsExpander.Items>
|
2024-01-03 16:41:26 +01:00
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_FindMyMouse_ShakingMinimumDistance" Visibility="{x:Bind ViewModel.FindMyMouseActivationMethod, Converter={StaticResource FindMyMouseActivationIntToVisibilityConverter}, Mode=OneWay, ConverterParameter=2}">
|
2022-11-23 19:57:09 +01:00
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="1000"
|
|
|
|
|
Maximum="1000000"
|
|
|
|
|
Minimum="0"
|
|
|
|
|
SmallChange="100"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
2024-01-03 16:41:26 +01:00
|
|
|
Value="{x:Bind ViewModel.FindMyMouseShakingMinimumDistance, Mode=TwoWay}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
|
|
|
|
<controls:SettingsCard
|
2023-09-04 17:58:37 +02:00
|
|
|
x:Uid="MouseUtils_FindMyMouse_ActivationShortcut"
|
2024-01-02 15:09:35 +01:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2024-01-03 16:41:26 +01:00
|
|
|
Visibility="{x:Bind ViewModel.FindMyMouseActivationMethod, Converter={StaticResource FindMyMouseActivationIntToVisibilityConverter}, Mode=OneWay, ConverterParameter=3}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<custom:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind Path=ViewModel.FindMyMouseActivationShortcut, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
|
|
|
|
<controls:SettingsCard ContentAlignment="Left">
|
|
|
|
|
<CheckBox x:Uid="MouseUtils_Prevent_Activation_On_Game_Mode" IsChecked="{x:Bind ViewModel.FindMyMouseDoNotActivateOnGameMode, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
|
|
|
|
</controls:SettingsExpander.Items>
|
|
|
|
|
</controls:SettingsExpander>
|
|
|
|
|
|
|
|
|
|
<controls:SettingsExpander
|
2022-11-29 13:36:39 +01:00
|
|
|
x:Uid="Appearance_Behavior"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsFindMyMouseEnabled, Mode=OneWay}"
|
|
|
|
|
IsExpanded="False">
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsExpander.Items>
|
|
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_FindMyMouse_OverlayOpacity">
|
2022-11-23 19:57:09 +01:00
|
|
|
<Slider
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
Maximum="100"
|
|
|
|
|
Minimum="1"
|
2024-01-03 16:41:26 +01:00
|
|
|
Value="{x:Bind ViewModel.FindMyMouseOverlayOpacity, Mode=TwoWay}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
|
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_FindMyMouse_BackgroundColor">
|
|
|
|
|
<custom:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.FindMyMouseBackgroundColor, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
|
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_FindMyMouse_SpotlightColor">
|
|
|
|
|
<custom:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.FindMyMouseSpotlightColor, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
|
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_FindMyMouse_SpotlightRadius">
|
2022-11-23 19:57:09 +01:00
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="10"
|
|
|
|
|
Minimum="5"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
2024-01-03 16:41:26 +01:00
|
|
|
Value="{x:Bind ViewModel.FindMyMouseSpotlightRadius, Mode=TwoWay}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
|
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_FindMyMouse_SpotlightInitialZoom">
|
2022-11-23 19:57:09 +01:00
|
|
|
<Slider
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
Maximum="40"
|
|
|
|
|
Minimum="1"
|
2024-01-03 16:41:26 +01:00
|
|
|
Value="{x:Bind ViewModel.FindMyMouseSpotlightInitialZoom, Mode=TwoWay}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
|
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_FindMyMouse_AnimationDurationMs">
|
2022-11-23 19:57:09 +01:00
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsAnimationEnabledBySystem, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
LargeChange="100"
|
|
|
|
|
Minimum="0"
|
|
|
|
|
SmallChange="10"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
2024-01-03 16:41:26 +01:00
|
|
|
Value="{x:Bind ViewModel.FindMyMouseAnimationDurationMs, Mode=TwoWay}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
|
|
|
|
</controls:SettingsExpander.Items>
|
|
|
|
|
</controls:SettingsExpander>
|
2023-09-05 15:25:24 +02:00
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="MouseUtils_FindMyMouse_AnimationDurationMs_Disabled"
|
|
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="True"
|
|
|
|
|
Severity="Informational"
|
2024-01-03 16:41:26 +01:00
|
|
|
Visibility="{x:Bind ViewModel.IsAnimationEnabledBySystem, Mode=OneWay, Converter={StaticResource BoolToInvertedVisibilityConverter}}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsExpander
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="MouseUtils_FindMyMouse_ExcludedApps"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsFindMyMouseEnabled, Mode=OneWay}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsExpander.Items>
|
|
|
|
|
<controls:SettingsCard HorizontalContentAlignment="Stretch" ContentAlignment="Vertical">
|
2022-11-23 19:57:09 +01:00
|
|
|
<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"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsFindMyMouseEnabled, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
ScrollViewer.IsVerticalRailEnabled="True"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Visible"
|
|
|
|
|
ScrollViewer.VerticalScrollMode="Enabled"
|
2024-01-03 16:41:26 +01:00
|
|
|
Text="{x:Bind ViewModel.FindMyMouseExcludedApps, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
2022-11-23 19:57:09 +01:00
|
|
|
TextWrapping="Wrap" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
|
|
|
|
</controls:SettingsExpander.Items>
|
|
|
|
|
</controls:SettingsExpander>
|
|
|
|
|
</custom:SettingsGroup>
|
2021-11-23 16:52:17 +00:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<custom:SettingsGroup x:Uid="MouseUtils_MouseHighlighter">
|
|
|
|
|
<controls:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="MouseUtils_Enable_MouseHighlighter"
|
2023-07-20 00:12:46 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/FluentIcons/FluentIconsMouseHighlighter.png}"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsHighlighterEnabledGpoConfigured, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.IsMouseHighlighterEnabled, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 14:02:31 +01:00
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.IsHighlighterEnabledGpoConfigured, Mode=OneWay}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.IsHighlighterEnabledGpoConfigured, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Severity="Informational" />
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsExpander
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="MouseUtils_MouseHighlighter_ActivationShortcut"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2023-08-08 18:01:23 +02:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsMouseHighlighterEnabled, Mode=OneWay}"
|
|
|
|
|
IsExpanded="True">
|
2023-09-14 18:41:31 +02:00
|
|
|
<custom:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind Path=ViewModel.MouseHighlighterActivationShortcut, Mode=TwoWay}" />
|
|
|
|
|
<controls:SettingsExpander.Items>
|
|
|
|
|
<controls:SettingsCard ContentAlignment="Left">
|
|
|
|
|
<CheckBox x:Uid="MouseUtils_AutoActivate" IsChecked="{x:Bind ViewModel.MouseHighlighterAutoActivate, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
|
|
|
|
</controls:SettingsExpander.Items>
|
|
|
|
|
</controls:SettingsExpander>
|
|
|
|
|
<controls:SettingsExpander
|
2022-11-29 13:36:39 +01:00
|
|
|
x:Uid="Appearance_Behavior"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsMouseHighlighterEnabled, Mode=OneWay}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsExpander.Items>
|
|
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_MouseHighlighter_PrimaryButtonClickColor">
|
|
|
|
|
<custom:AlphaColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MouseHighlighterLeftButtonClickColor, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
|
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_MouseHighlighter_SecondaryButtonClickColor">
|
|
|
|
|
<custom:AlphaColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MouseHighlighterRightButtonClickColor, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
|
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_MouseHighlighter_AlwaysColor">
|
|
|
|
|
<custom:AlphaColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MouseHighlighterAlwaysColor, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
|
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_MouseHighlighter_HighlightRadius">
|
2022-11-23 19:57:09 +01:00
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="10"
|
|
|
|
|
Minimum="5"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
2024-01-03 16:41:26 +01:00
|
|
|
Value="{x:Bind ViewModel.MouseHighlighterRadius, Mode=TwoWay}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
|
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_MouseHighlighter_FadeDelayMs">
|
2022-11-23 19:57:09 +01:00
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="100"
|
2023-10-24 12:11:29 +02:00
|
|
|
Minimum="0"
|
2022-11-23 19:57:09 +01:00
|
|
|
SmallChange="10"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
2024-01-03 16:41:26 +01:00
|
|
|
Value="{x:Bind ViewModel.MouseHighlighterFadeDelayMs, Mode=TwoWay}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
|
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_MouseHighlighter_FadeDurationMs">
|
2022-11-23 19:57:09 +01:00
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="100"
|
2023-10-24 12:11:29 +02:00
|
|
|
Minimum="0"
|
2022-11-23 19:57:09 +01:00
|
|
|
SmallChange="10"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
2024-01-03 16:41:26 +01:00
|
|
|
Value="{x:Bind ViewModel.MouseHighlighterFadeDurationMs, Mode=TwoWay}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
|
|
|
|
</controls:SettingsExpander.Items>
|
|
|
|
|
</controls:SettingsExpander>
|
|
|
|
|
</custom:SettingsGroup>
|
2022-01-24 13:29:16 +00:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<custom:SettingsGroup x:Uid="MouseUtils_MouseJump">
|
|
|
|
|
<controls:SettingsCard
|
2023-02-24 13:30:30 +00:00
|
|
|
x:Uid="MouseUtils_Enable_MouseJump"
|
2023-07-20 00:12:46 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/FluentIcons/FluentIconsMouseJump.png}"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsJumpEnabledGpoConfigured, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.IsMouseJumpEnabled, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
2023-02-24 13:30:30 +00:00
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
|
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.IsJumpEnabledGpoConfigured, Mode=OneWay}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.IsJumpEnabledGpoConfigured, Mode=OneWay}"
|
2023-02-24 13:30:30 +00:00
|
|
|
Severity="Informational" />
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsCard
|
2023-02-24 13:30:30 +00:00
|
|
|
x:Uid="MouseUtils_MouseJump_ActivationShortcut"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
|
|
|
|
IsEnabled="{x:Bind ViewModel.IsMouseJumpEnabled, Mode=OneWay}">
|
|
|
|
|
<custom:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind Path=ViewModel.MouseJumpActivationShortcut, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
|
|
|
|
<controls:SettingsCard
|
|
|
|
|
x:Uid="MouseUtils_MouseJump_ThumbnailSize"
|
|
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2023-02-24 13:30:30 +00:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsMouseJumpEnabled, Mode=OneWay}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsCard.Description>
|
2023-04-24 16:15:07 +01:00
|
|
|
<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>
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard.Description>
|
2023-04-24 16:15:07 +01:00
|
|
|
<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>
|
2023-11-09 18:08:42 +01:00
|
|
|
<Flyout x:Uid="MouseJumpThumbnailSize_Edit" ShouldConstrainToRootBounds="False">
|
|
|
|
|
<StackPanel Spacing="16">
|
2023-04-24 16:15:07 +01:00
|
|
|
<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>
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
|
|
|
|
</custom:SettingsGroup>
|
2023-02-24 13:30:30 +00:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<custom:SettingsGroup x:Uid="MouseUtils_MousePointerCrosshairs">
|
|
|
|
|
<controls:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="MouseUtils_Enable_MousePointerCrosshairs"
|
2023-07-20 00:12:46 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/FluentIcons/FluentIconsMouseCrosshairs.png}"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsMousePointerCrosshairsEnabledGpoConfigured, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.IsMousePointerCrosshairsEnabled, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 14:02:31 +01:00
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.IsMousePointerCrosshairsEnabledGpoConfigured, Mode=OneWay}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.IsMousePointerCrosshairsEnabledGpoConfigured, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Severity="Informational" />
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsExpander
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="MouseUtils_MousePointerCrosshairs_ActivationShortcut"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2023-08-08 18:01:23 +02:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsMousePointerCrosshairsEnabled, Mode=OneWay}"
|
|
|
|
|
IsExpanded="True">
|
2023-09-14 18:41:31 +02:00
|
|
|
<custom:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind Path=ViewModel.MousePointerCrosshairsActivationShortcut, Mode=TwoWay}" />
|
|
|
|
|
<controls:SettingsExpander.Items>
|
|
|
|
|
<controls:SettingsCard ContentAlignment="Left">
|
|
|
|
|
<CheckBox x:Uid="MouseUtils_AutoActivate" IsChecked="{x:Bind ViewModel.MousePointerCrosshairsAutoActivate, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
|
|
|
|
</controls:SettingsExpander.Items>
|
|
|
|
|
</controls:SettingsExpander>
|
2022-11-23 19:57:09 +01:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsExpander
|
2022-11-29 13:36:39 +01:00
|
|
|
x:Uid="Appearance_Behavior"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsMousePointerCrosshairsEnabled, Mode=OneWay}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsExpander.Items>
|
|
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsColor">
|
|
|
|
|
<custom:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MousePointerCrosshairsColor, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
|
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsOpacity">
|
2022-11-23 19:57:09 +01:00
|
|
|
<Slider
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
Maximum="100"
|
|
|
|
|
Minimum="1"
|
2024-01-03 16:41:26 +01:00
|
|
|
Value="{x:Bind ViewModel.MousePointerCrosshairsOpacity, Mode=TwoWay}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsRadius">
|
2022-11-23 19:57:09 +01:00
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="10"
|
|
|
|
|
Maximum="500"
|
|
|
|
|
Minimum="1"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
2024-01-03 16:41:26 +01:00
|
|
|
Value="{x:Bind ViewModel.MousePointerCrosshairsRadius, Mode=TwoWay}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsThickness">
|
2022-11-23 19:57:09 +01:00
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="10"
|
|
|
|
|
Maximum="50"
|
|
|
|
|
Minimum="1"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
2024-01-03 16:41:26 +01:00
|
|
|
Value="{x:Bind ViewModel.MousePointerCrosshairsThickness, Mode=TwoWay}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsBorderColor">
|
|
|
|
|
<custom:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MousePointerCrosshairsBorderColor, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
2022-10-26 14:02:31 +01:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsBorderSize">
|
2022-11-23 19:57:09 +01:00
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="2"
|
|
|
|
|
Maximum="50"
|
|
|
|
|
Minimum="0"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
2024-01-03 16:41:26 +01:00
|
|
|
Value="{x:Bind ViewModel.MousePointerCrosshairsBorderSize, Mode=TwoWay}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
|
|
|
|
|
|
|
|
|
<controls:SettingsCard ContentAlignment="Left">
|
|
|
|
|
<CheckBox x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsAutoHide" IsChecked="{x:Bind ViewModel.MousePointerCrosshairsAutoHide, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
2023-07-19 07:24:47 -07:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_IsCrosshairsFixedLengthEnabled">
|
|
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.MousePointerCrosshairsIsFixedLengthEnabled, Mode=TwoWay}" />
|
|
|
|
|
</controls:SettingsCard>
|
2023-07-19 07:24:47 -07:00
|
|
|
|
2023-09-14 18:41:31 +02:00
|
|
|
<controls:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsFixedLength" IsEnabled="{x:Bind ViewModel.MousePointerCrosshairsIsFixedLengthEnabled, Mode=OneWay}">
|
2023-07-19 07:24:47 -07:00
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="10"
|
|
|
|
|
Minimum="1"
|
|
|
|
|
SmallChange="1"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
2024-01-03 16:41:26 +01:00
|
|
|
Value="{x:Bind ViewModel.MousePointerCrosshairsFixedLength, Mode=TwoWay}" />
|
2023-09-14 18:41:31 +02:00
|
|
|
</controls:SettingsCard>
|
|
|
|
|
</controls:SettingsExpander.Items>
|
|
|
|
|
</controls:SettingsExpander>
|
|
|
|
|
</custom:SettingsGroup>
|
2021-10-22 13:30:18 +01:00
|
|
|
</StackPanel>
|
2023-09-14 18:41:31 +02:00
|
|
|
</custom:SettingsPageControl.ModuleContent>
|
|
|
|
|
<custom:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<custom:PageLink x:Uid="LearnMore_MouseUtils" Link="https://aka.ms/PowerToysOverview_MouseUtilities" />
|
|
|
|
|
</custom:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<custom:SettingsPageControl.SecondaryLinks>
|
|
|
|
|
<custom:PageLink Link="https://devblogs.microsoft.com/oldnewthing/author/oldnewthing" Text="Raymond Chen's Find My Mouse" />
|
|
|
|
|
<custom:PageLink Link="https://michael-clayton.com/projects/fancymouse" Text="Michael Clayton's Mouse Jump (FancyMouse)" />
|
|
|
|
|
</custom:SettingsPageControl.SecondaryLinks>
|
|
|
|
|
</custom:SettingsPageControl>
|
2021-10-22 13:30:18 +01:00
|
|
|
</Page>
|