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"
|
2024-01-12 18:01:40 +01:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
|
|
|
|
xmlns:converters="using:Microsoft.PowerToys.Settings.UI.Converters"
|
2022-11-23 19:57:09 +01:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2024-11-26 15:37:59 +00:00
|
|
|
xmlns:panels="using:Microsoft.PowerToys.Settings.UI.Panels"
|
2024-01-12 18:01:40 +01:00
|
|
|
xmlns:tkcontrols="using:CommunityToolkit.WinUI.Controls"
|
|
|
|
|
xmlns:tkconverters="using:CommunityToolkit.WinUI.Converters"
|
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>
|
2024-06-03 07:44:11 -04:00
|
|
|
<converters:IndexBitFieldToVisibilityConverter x:Key="IndexBitFieldToVisibilityConverter" />
|
2022-03-04 12:28:11 +00:00
|
|
|
</Page.Resources>
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsPageControl x:Uid="MouseUtils" ModuleImageSource="ms-appx:///Assets/Settings/Modules/MouseUtils.png">
|
|
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
2023-09-14 18:41:31 +02:00
|
|
|
<StackPanel ChildrenTransitions="{StaticResource SettingsCardsAnimations}" Orientation="Vertical">
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="MouseUtils_FindMyMouse">
|
|
|
|
|
<tkcontrols:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="MouseUtils_Enable_FindMyMouse"
|
2024-01-26 17:12:33 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/Icons/FindMyMouse.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}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<InfoBar
|
2024-01-25 14:59:00 +01:00
|
|
|
x:Uid="GPO_SettingIsManaged"
|
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}"
|
2025-01-19 15:32:46 +01:00
|
|
|
Severity="Informational">
|
|
|
|
|
<InfoBar.IconSource>
|
|
|
|
|
<FontIconSource FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph="" />
|
|
|
|
|
</InfoBar.IconSource>
|
|
|
|
|
</InfoBar>
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols: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>
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsExpander.Items>
|
2024-06-03 07:44:11 -04:00
|
|
|
<tkcontrols:SettingsCard ContentAlignment="Left" Visibility="{x:Bind ViewModel.FindMyMouseActivationMethod, Converter={StaticResource IndexBitFieldToVisibilityConverter}, Mode=OneWay, ConverterParameter=0x3}">
|
|
|
|
|
<!-- Visible for both Press Left Control twice and Press Right Control twice activation methods -->
|
|
|
|
|
<CheckBox x:Uid="MouseUtils_Include_Win_Key" IsChecked="{x:Bind ViewModel.FindMyMouseIncludeWinKey, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="MouseUtils_FindMyMouse_ShakingMinimumDistance" Visibility="{x:Bind ViewModel.FindMyMouseActivationMethod, Converter={StaticResource IndexBitFieldToVisibilityConverter}, Mode=OneWay, ConverterParameter=0x4}">
|
|
|
|
|
<!-- Visible for the Shake Mouse activation method -->
|
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}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2024-06-03 07:44:11 -04:00
|
|
|
<tkcontrols:SettingsCard x:Uid="MouseUtils_FindMyMouse_ShakingIntervalMs" Visibility="{x:Bind ViewModel.FindMyMouseActivationMethod, Converter={StaticResource IndexBitFieldToVisibilityConverter}, Mode=OneWay, ConverterParameter=0x4}">
|
|
|
|
|
<!-- Visible for the Shake Mouse activation method -->
|
2024-01-16 17:35:54 +00:00
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="1000"
|
|
|
|
|
Maximum="10000"
|
|
|
|
|
Minimum="100"
|
|
|
|
|
SmallChange="100"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind ViewModel.FindMyMouseShakingIntervalMs, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
2024-06-03 07:44:11 -04:00
|
|
|
<tkcontrols:SettingsCard x:Uid="MouseUtils_FindMyMouse_ShakingFactor" Visibility="{x:Bind ViewModel.FindMyMouseActivationMethod, Converter={StaticResource IndexBitFieldToVisibilityConverter}, Mode=OneWay, ConverterParameter=0x4}">
|
|
|
|
|
<!-- Visible for the Shake Mouse activation method -->
|
2024-01-16 17:35:54 +00:00
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="100"
|
|
|
|
|
Maximum="10000"
|
|
|
|
|
Minimum="150"
|
|
|
|
|
SmallChange="10"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind ViewModel.FindMyMouseShakingFactor, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols: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-06-03 07:44:11 -04:00
|
|
|
Visibility="{x:Bind ViewModel.FindMyMouseActivationMethod, Converter={StaticResource IndexBitFieldToVisibilityConverter}, Mode=OneWay, ConverterParameter=0x8}">
|
|
|
|
|
<!-- Visible for the Shortcut activation method -->
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind Path=ViewModel.FindMyMouseActivationShortcut, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols:SettingsCard ContentAlignment="Left">
|
2023-09-14 18:41:31 +02:00
|
|
|
<CheckBox x:Uid="MouseUtils_Prevent_Activation_On_Game_Mode" IsChecked="{x:Bind ViewModel.FindMyMouseDoNotActivateOnGameMode, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</tkcontrols:SettingsExpander.Items>
|
|
|
|
|
</tkcontrols:SettingsExpander>
|
2023-09-14 18:41:31 +02:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols: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">
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsExpander.Items>
|
|
|
|
|
<tkcontrols: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}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="MouseUtils_FindMyMouse_BackgroundColor">
|
|
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.FindMyMouseBackgroundColor, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="MouseUtils_FindMyMouse_SpotlightColor">
|
|
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.FindMyMouseSpotlightColor, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols: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}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols: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}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols: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}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</tkcontrols:SettingsExpander.Items>
|
|
|
|
|
</tkcontrols:SettingsExpander>
|
2023-09-05 15:25:24 +02:00
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="MouseUtils_FindMyMouse_AnimationDurationMs_Disabled"
|
|
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="True"
|
|
|
|
|
Severity="Informational"
|
2025-08-08 16:38:46 +08:00
|
|
|
Visibility="{x:Bind ViewModel.IsAnimationEnabledBySystem, Mode=OneWay, Converter={StaticResource ReverseBoolToVisibilityConverter}}">
|
2024-08-15 17:29:25 +02:00
|
|
|
<InfoBar.ActionButton>
|
|
|
|
|
<HyperlinkButton x:Uid="OpenSettings" Click="OpenAnimationsSettings_Click" />
|
|
|
|
|
</InfoBar.ActionButton>
|
|
|
|
|
</InfoBar>
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols: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}">
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsExpander.Items>
|
|
|
|
|
<tkcontrols: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" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</tkcontrols:SettingsExpander.Items>
|
|
|
|
|
</tkcontrols:SettingsExpander>
|
|
|
|
|
</controls:SettingsGroup>
|
2021-11-23 16:52:17 +00:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="MouseUtils_MouseHighlighter">
|
|
|
|
|
<tkcontrols:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="MouseUtils_Enable_MouseHighlighter"
|
2024-01-26 17:12:33 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/Icons/MouseHighlighter.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}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<InfoBar
|
2024-01-25 14:59:00 +01:00
|
|
|
x:Uid="GPO_SettingIsManaged"
|
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}"
|
2025-01-19 15:32:46 +01:00
|
|
|
Severity="Informational">
|
|
|
|
|
<InfoBar.IconSource>
|
|
|
|
|
<FontIconSource FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph="" />
|
|
|
|
|
</InfoBar.IconSource>
|
|
|
|
|
</InfoBar>
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols: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">
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind Path=ViewModel.MouseHighlighterActivationShortcut, Mode=TwoWay}" />
|
|
|
|
|
<tkcontrols:SettingsExpander.Items>
|
|
|
|
|
<tkcontrols:SettingsCard ContentAlignment="Left">
|
2023-09-14 18:41:31 +02:00
|
|
|
<CheckBox x:Uid="MouseUtils_AutoActivate" IsChecked="{x:Bind ViewModel.MouseHighlighterAutoActivate, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</tkcontrols:SettingsExpander.Items>
|
|
|
|
|
</tkcontrols:SettingsExpander>
|
|
|
|
|
<tkcontrols: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}">
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsExpander.Items>
|
2025-06-27 14:11:39 +08:00
|
|
|
<tkcontrols:SettingsCard x:Uid="MouseUtils_MouseHighlighter_PrimaryButtonClickColor" IsEnabled="{x:Bind ViewModel.IsSpotlightModeEnabled, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}">
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:AlphaColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MouseHighlighterLeftButtonClickColor, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
2025-06-27 14:11:39 +08:00
|
|
|
<tkcontrols:SettingsCard x:Uid="MouseUtils_MouseHighlighter_SecondaryButtonClickColor" IsEnabled="{x:Bind ViewModel.IsSpotlightModeEnabled, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}">
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:AlphaColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MouseHighlighterRightButtonClickColor, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="MouseUtils_MouseHighlighter_AlwaysColor">
|
|
|
|
|
<controls:AlphaColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MouseHighlighterAlwaysColor, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
2025-06-27 14:11:39 +08:00
|
|
|
<tkcontrols:SettingsCard x:Uid="HighlightMode">
|
|
|
|
|
<ComboBox
|
|
|
|
|
x:Uid="MouseUtils_MouseHighlighter_SpotlightModeType"
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
SelectedIndex="{x:Bind ViewModel.IsSpotlightModeEnabled, Converter={StaticResource ReverseBoolToComboBoxIndexConverter}, Mode=TwoWay}">
|
|
|
|
|
<ComboBoxItem x:Uid="HighlightMode_Spotlight_Mode" />
|
|
|
|
|
<ComboBoxItem x:Uid="HighlightMode_Circle_Highlight_Mode" />
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</tkcontrols:SettingsCard>
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols: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}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols: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}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols: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}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</tkcontrols:SettingsExpander.Items>
|
|
|
|
|
</tkcontrols:SettingsExpander>
|
|
|
|
|
</controls:SettingsGroup>
|
2022-01-24 13:29:16 +00:00
|
|
|
|
2024-11-26 15:37:59 +00:00
|
|
|
<panels:MouseJumpPanel x:Name="MouseUtils_MouseJump_Panel" x:Uid="MouseUtils_MouseJump_Panel" />
|
2023-02-24 13:30:30 +00:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="MouseUtils_MousePointerCrosshairs">
|
|
|
|
|
<tkcontrols:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="MouseUtils_Enable_MousePointerCrosshairs"
|
2024-01-26 17:12:33 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/Icons/MouseCrosshairs.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}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
<InfoBar
|
2024-01-25 14:59:00 +01:00
|
|
|
x:Uid="GPO_SettingIsManaged"
|
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}"
|
2025-01-19 15:32:46 +01:00
|
|
|
Severity="Informational">
|
|
|
|
|
<InfoBar.IconSource>
|
|
|
|
|
<FontIconSource FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph="" />
|
|
|
|
|
</InfoBar.IconSource>
|
|
|
|
|
</InfoBar>
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols: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">
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind Path=ViewModel.MousePointerCrosshairsActivationShortcut, Mode=TwoWay}" />
|
|
|
|
|
<tkcontrols:SettingsExpander.Items>
|
|
|
|
|
<tkcontrols:SettingsCard ContentAlignment="Left">
|
2023-09-14 18:41:31 +02:00
|
|
|
<CheckBox x:Uid="MouseUtils_AutoActivate" IsChecked="{x:Bind ViewModel.MousePointerCrosshairsAutoActivate, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</tkcontrols:SettingsExpander.Items>
|
|
|
|
|
</tkcontrols:SettingsExpander>
|
2022-11-23 19:57:09 +01:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols: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}">
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsExpander.Items>
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsColor">
|
|
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MousePointerCrosshairsColor, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols: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}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsRadius">
|
2022-11-23 19:57:09 +01:00
|
|
|
<NumberBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
LargeChange="10"
|
|
|
|
|
Maximum="500"
|
2024-09-25 14:58:41 +02:00
|
|
|
Minimum="0"
|
2022-11-23 19:57:09 +01:00
|
|
|
SmallChange="1"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
2024-01-03 16:41:26 +01:00
|
|
|
Value="{x:Bind ViewModel.MousePointerCrosshairsRadius, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols: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}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsBorderColor">
|
|
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.MousePointerCrosshairsBorderColor, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
2022-10-26 14:02:31 +01:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols: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}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2023-09-14 18:41:31 +02:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard ContentAlignment="Left">
|
2023-09-14 18:41:31 +02:00
|
|
|
<CheckBox x:Uid="MouseUtils_MousePointerCrosshairs_CrosshairsAutoHide" IsChecked="{x:Bind ViewModel.MousePointerCrosshairsAutoHide, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2023-07-19 07:24:47 -07:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard x:Uid="MouseUtils_MousePointerCrosshairs_IsCrosshairsFixedLengthEnabled">
|
2023-09-14 18:41:31 +02:00
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.MousePointerCrosshairsIsFixedLengthEnabled, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2023-07-19 07:24:47 -07:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols: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}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</tkcontrols:SettingsExpander.Items>
|
|
|
|
|
</tkcontrols:SettingsExpander>
|
|
|
|
|
</controls:SettingsGroup>
|
2021-10-22 13:30:18 +01:00
|
|
|
</StackPanel>
|
2024-01-12 18:01:40 +01:00
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
|
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<controls:PageLink x:Uid="LearnMore_MouseUtils" Link="https://aka.ms/PowerToysOverview_MouseUtilities" />
|
|
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<controls:SettingsPageControl.SecondaryLinks>
|
|
|
|
|
<controls:PageLink Link="https://devblogs.microsoft.com/oldnewthing/author/oldnewthing" Text="Raymond Chen's Find My Mouse" />
|
|
|
|
|
<controls:PageLink Link="https://michael-clayton.com/projects/fancymouse" Text="Michael Clayton's Mouse Jump (FancyMouse)" />
|
|
|
|
|
</controls:SettingsPageControl.SecondaryLinks>
|
|
|
|
|
</controls:SettingsPageControl>
|
2021-10-22 13:30:18 +01:00
|
|
|
</Page>
|