2023-10-24 12:25:55 +02:00
<Page
2022-11-23 19:57:09 +01:00
x:Class="Microsoft.PowerToys.Settings.UI.Views.PowerLauncherPage"
2020-12-15 15:16:09 +03:00
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2022-10-26 14:02:31 +01:00
xmlns:ViewModels="using:Microsoft.PowerToys.Settings.UI.ViewModels"
2024-01-12 18:01:40 +01:00
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
2024-05-08 16:16:54 +02:00
xmlns:converters="using:Microsoft.PowerToys.Settings.UI.Converters"
2020-12-15 15:16:09 +03:00
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
2021-08-12 14:53:12 +02:00
xmlns:i="using:Microsoft.Xaml.Interactivity"
2022-11-23 19:57:09 +01:00
xmlns:ic="using:Microsoft.Xaml.Interactions.Core"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
2024-01-12 18:01:40 +01:00
xmlns:tkcontrols="using:CommunityToolkit.WinUI.Controls"
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">
2020-12-15 15:16:09 +03:00
2024-05-08 16:16:54 +02:00
<Page.Resources>
<Style x:Key="OptionSeparator" TargetType="Rectangle">
<Setter Property="Height" Value="1" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="Fill" Value="{ThemeResource CardStrokeColorDefaultBrush}" />
</Style>
<converters:RunOptionTemplateSelector
x:Key="RunOptionTemplateSelector"
CheckBoxComboBoxTemplate="{StaticResource CheckBoxComboBoxTemplate}"
CheckBoxMultilineTextBoxTemplate="{StaticResource CheckBoxMultilineTextBoxTemplate}"
CheckBoxNumberBoxTemplate="{StaticResource CheckBoxNumberBoxTemplate}"
CheckBoxTemplate="{StaticResource CheckBoxTemplate}"
CheckBoxTextBoxTemplate="{StaticResource CheckBoxTextBoxTemplate}"
ComboBoxTemplate="{StaticResource ComboBoxTemplate}"
EmptyTemplate="{StaticResource EmptyTemplate}"
MultilineTextBoxTemplate="{StaticResource MultilineTextBoxTemplate}"
NumberBoxTemplate="{StaticResource NumberBoxTemplate}"
TextboxTemplate="{StaticResource TextBoxTemplate}" />
<DataTemplate x:Key="CheckBoxTemplate" x:DataType="ViewModels:PluginAdditionalOptionViewModel">
<StackPanel HorizontalAlignment="Stretch" Orientation="Vertical">
<tkcontrols:SettingsCard
MinHeight="0"
Margin="1"
Padding="0,6,0,12"
Background="Transparent"
BorderThickness="0,0,0,0"
ContentAlignment="Left"
CornerRadius="0">
<controls:CheckBoxWithDescriptionControl
Margin="56,0,0,0"
Description="{x:Bind Path=DisplayDescription}"
Header="{x:Bind Path=DisplayLabel}"
IsChecked="{x:Bind Value, Mode=TwoWay}" />
</tkcontrols:SettingsCard>
<Rectangle Style="{StaticResource OptionSeparator}" />
</StackPanel>
</DataTemplate>
<DataTemplate x:Key="ComboBoxTemplate" x:DataType="ViewModels:PluginAdditionalOptionViewModel">
<StackPanel HorizontalAlignment="Stretch" Orientation="Vertical">
<tkcontrols:SettingsCard
MinHeight="0"
Margin="56,8,45,8"
Background="Transparent"
BorderThickness="0,0,0,0"
CornerRadius="0"
Description="{x:Bind Path=DisplayDescription}"
Header="{x:Bind Path=DisplayLabel}">
<ComboBox
MinWidth="{StaticResource SettingActionControlMinWidth}"
DisplayMemberPath="Key"
ItemsSource="{x:Bind Path=ComboBoxItems}"
SelectedValue="{x:Bind ComboBoxValue, Mode=TwoWay}"
SelectedValuePath="Value" />
</tkcontrols:SettingsCard>
<Rectangle Style="{StaticResource OptionSeparator}" />
</StackPanel>
</DataTemplate>
<DataTemplate x:Key="TextBoxTemplate" x:DataType="ViewModels:PluginAdditionalOptionViewModel">
<StackPanel HorizontalAlignment="Stretch" Orientation="Vertical">
<tkcontrols:SettingsCard
MinHeight="0"
Margin="56,8,45,8"
Background="Transparent"
BorderThickness="0,0,0,0"
CornerRadius="0"
Description="{x:Bind Path=DisplayDescription}"
Header="{x:Bind Path=DisplayLabel}">
<TextBox
MinWidth="{StaticResource SettingActionControlMinWidth}"
MaxWidth="450"
2025-03-16 17:30:27 +01:00
IsSpellCheckEnabled="False"
2024-05-08 16:16:54 +02:00
MaxLength="{x:Bind TextBoxMaxLength, Mode=OneWay}"
PlaceholderText="{x:Bind Path=PlaceholderText}"
Text="{x:Bind TextValue, Mode=TwoWay}" />
</tkcontrols:SettingsCard>
<Rectangle Style="{StaticResource OptionSeparator}" />
</StackPanel>
</DataTemplate>
<DataTemplate x:Key="NumberBoxTemplate" x:DataType="ViewModels:PluginAdditionalOptionViewModel">
<StackPanel HorizontalAlignment="Stretch" Orientation="Vertical">
<tkcontrols:SettingsCard
MinHeight="0"
Margin="56,8,45,8"
Background="Transparent"
BorderThickness="0,0,0,0"
CornerRadius="0"
Description="{x:Bind Path=DisplayDescription}"
Header="{x:Bind Path=DisplayLabel}">
<NumberBox
MinWidth="{StaticResource SettingActionControlMinWidth}"
LargeChange="{x:Bind NumberBoxLargeChange, Mode=OneWay}"
Maximum="{x:Bind NumberBoxMax, Mode=OneWay}"
Minimum="{x:Bind NumberBoxMin, Mode=OneWay}"
SmallChange="{x:Bind NumberBoxSmallChange, Mode=OneWay}"
SpinButtonPlacementMode="Compact"
Value="{x:Bind NumberValue, Mode=TwoWay}" />
</tkcontrols:SettingsCard>
<Rectangle Style="{StaticResource OptionSeparator}" />
</StackPanel>
</DataTemplate>
<DataTemplate x:Key="MultilineTextBoxTemplate" x:DataType="ViewModels:PluginAdditionalOptionViewModel">
<StackPanel HorizontalAlignment="Stretch" Orientation="Vertical">
<tkcontrols:SettingsCard
MinHeight="0"
Margin="56,8,45,8"
HorizontalContentAlignment="Stretch"
Background="Transparent"
BorderThickness="0,0,0,0"
ContentAlignment="Vertical"
CornerRadius="0"
Description="{x:Bind Path=DisplayDescription}"
Header="{x:Bind Path=DisplayLabel}">
<TextBox
MinWidth="{StaticResource SettingActionControlMinWidth}"
MinHeight="160"
AcceptsReturn="True"
2025-03-16 17:30:27 +01:00
IsSpellCheckEnabled="False"
2024-05-08 16:16:54 +02:00
PlaceholderText="{x:Bind Path=PlaceholderText}"
ScrollViewer.IsVerticalRailEnabled="True"
ScrollViewer.VerticalScrollBarVisibility="Visible"
ScrollViewer.VerticalScrollMode="Enabled"
Text="{x:Bind TextValue, Mode=TwoWay}" />
</tkcontrols:SettingsCard>
<Rectangle Style="{StaticResource OptionSeparator}" />
</StackPanel>
</DataTemplate>
<DataTemplate x:Key="CheckBoxComboBoxTemplate" x:DataType="ViewModels:PluginAdditionalOptionViewModel">
<StackPanel HorizontalAlignment="Stretch" Orientation="Vertical">
<tkcontrols:SettingsCard
MinHeight="0"
Margin="1"
Padding="0,6,0,4"
Background="Transparent"
BorderThickness="0,0,0,0"
ContentAlignment="Left"
CornerRadius="0">
<controls:CheckBoxWithDescriptionControl
Margin="56,0,0,0"
Description="{x:Bind Path=DisplayDescription}"
Header="{x:Bind Path=DisplayLabel}"
IsChecked="{x:Bind Value, Mode=TwoWay}" />
</tkcontrols:SettingsCard>
<tkcontrols:SettingsCard
MinHeight="0"
Margin="84,0,45,8"
Background="Transparent"
BorderThickness="0,0,0,0"
CornerRadius="0"
Description="{x:Bind Path=SecondDisplayDescription}"
Header="{x:Bind Path=SecondDisplayLabel}"
IsEnabled="{x:Bind SecondSettingIsEnabled, Mode=OneWay}">
<ComboBox
MinWidth="{StaticResource SettingActionControlMinWidth}"
DisplayMemberPath="Key"
ItemsSource="{x:Bind Path=ComboBoxItems}"
SelectedValue="{x:Bind ComboBoxValue, Mode=TwoWay}"
SelectedValuePath="Value" />
</tkcontrols:SettingsCard>
<Rectangle Style="{StaticResource OptionSeparator}" />
</StackPanel>
</DataTemplate>
<DataTemplate x:Key="CheckBoxTextBoxTemplate" x:DataType="ViewModels:PluginAdditionalOptionViewModel">
<StackPanel HorizontalAlignment="Stretch" Orientation="Vertical">
<tkcontrols:SettingsCard
MinHeight="0"
Margin="1"
Padding="0,6,0,4"
Background="Transparent"
BorderThickness="0,0,0,0"
ContentAlignment="Left"
CornerRadius="0">
<controls:CheckBoxWithDescriptionControl
Margin="56,0,0,0"
Description="{x:Bind Path=DisplayDescription}"
Header="{x:Bind Path=DisplayLabel}"
IsChecked="{x:Bind Value, Mode=TwoWay}" />
</tkcontrols:SettingsCard>
<tkcontrols:SettingsCard
MinHeight="0"
Margin="84,0,45,8"
Background="Transparent"
BorderThickness="0,0,0,0"
CornerRadius="0"
Description="{x:Bind Path=SecondDisplayDescription}"
Header="{x:Bind Path=SecondDisplayLabel}"
IsEnabled="{x:Bind SecondSettingIsEnabled, Mode=OneWay}">
<TextBox
MinWidth="{StaticResource SettingActionControlMinWidth}"
MaxWidth="450"
2025-03-16 17:30:27 +01:00
IsSpellCheckEnabled="False"
2024-05-08 16:16:54 +02:00
MaxLength="{x:Bind TextBoxMaxLength, Mode=OneWay}"
PlaceholderText="{x:Bind Path=PlaceholderText}"
Text="{x:Bind TextValue, Mode=TwoWay}" />
</tkcontrols:SettingsCard>
<Rectangle Style="{StaticResource OptionSeparator}" />
</StackPanel>
</DataTemplate>
<DataTemplate x:Key="CheckBoxMultilineTextBoxTemplate" x:DataType="ViewModels:PluginAdditionalOptionViewModel">
<StackPanel HorizontalAlignment="Stretch" Orientation="Vertical">
<tkcontrols:SettingsCard
MinHeight="0"
Margin="1"
Padding="0,6,0,4"
Background="Transparent"
BorderThickness="0,0,0,0"
ContentAlignment="Left"
CornerRadius="0">
<controls:CheckBoxWithDescriptionControl
Margin="56,0,0,0"
Description="{x:Bind Path=DisplayDescription}"
Header="{x:Bind Path=DisplayLabel}"
IsChecked="{x:Bind Value, Mode=TwoWay}" />
</tkcontrols:SettingsCard>
<tkcontrols:SettingsCard
MinHeight="0"
Margin="84,0,45,8"
HorizontalContentAlignment="Stretch"
Background="Transparent"
BorderThickness="0,0,0,0"
ContentAlignment="Vertical"
CornerRadius="0"
Description="{x:Bind Path=SecondDisplayDescription}"
Header="{x:Bind Path=SecondDisplayLabel}"
IsEnabled="{x:Bind SecondSettingIsEnabled, Mode=OneWay}">
<TextBox
MinWidth="{StaticResource SettingActionControlMinWidth}"
MinHeight="160"
AcceptsReturn="True"
2025-03-16 17:30:27 +01:00
IsSpellCheckEnabled="False"
2024-05-08 16:16:54 +02:00
PlaceholderText="{x:Bind Path=PlaceholderText}"
ScrollViewer.IsVerticalRailEnabled="True"
ScrollViewer.VerticalScrollBarVisibility="Visible"
ScrollViewer.VerticalScrollMode="Enabled"
Text="{x:Bind TextValue, Mode=TwoWay}" />
</tkcontrols:SettingsCard>
<Rectangle Style="{StaticResource OptionSeparator}" />
</StackPanel>
</DataTemplate>
<DataTemplate x:Key="CheckBoxNumberBoxTemplate" x:DataType="ViewModels:PluginAdditionalOptionViewModel">
<StackPanel HorizontalAlignment="Stretch" Orientation="Vertical">
<tkcontrols:SettingsCard
MinHeight="0"
Margin="1"
Padding="0,6,0,4"
Background="Transparent"
BorderThickness="0,0,0,0"
ContentAlignment="Left"
CornerRadius="0">
<controls:CheckBoxWithDescriptionControl
Margin="56,0,0,0"
Description="{x:Bind Path=DisplayDescription}"
Header="{x:Bind Path=DisplayLabel}"
IsChecked="{x:Bind Value, Mode=TwoWay}" />
</tkcontrols:SettingsCard>
<tkcontrols:SettingsCard
MinHeight="0"
Margin="84,0,45,8"
Background="Transparent"
BorderThickness="0,0,0,0"
CornerRadius="0"
Description="{x:Bind Path=SecondDisplayDescription}"
Header="{x:Bind Path=SecondDisplayLabel}"
IsEnabled="{x:Bind SecondSettingIsEnabled, Mode=OneWay}">
<NumberBox
MinWidth="{StaticResource SettingActionControlMinWidth}"
LargeChange="{x:Bind NumberBoxLargeChange, Mode=OneWay}"
Maximum="{x:Bind NumberBoxMax, Mode=OneWay}"
Minimum="{x:Bind NumberBoxMin, Mode=OneWay}"
SmallChange="{x:Bind NumberBoxSmallChange, Mode=OneWay}"
SpinButtonPlacementMode="Compact"
Value="{x:Bind NumberValue, Mode=TwoWay}" />
</tkcontrols:SettingsCard>
<Rectangle Style="{StaticResource OptionSeparator}" />
</StackPanel>
</DataTemplate>
<DataTemplate x:Key="EmptyTemplate" x:DataType="ViewModels:PluginAdditionalOptionViewModel">
<StackPanel HorizontalAlignment="Stretch" Orientation="Vertical" />
</DataTemplate>
</Page.Resources>
2024-01-26 17:12:33 +01:00
<controls:SettingsPageControl x:Uid="PowerLauncher" ModuleImageSource="ms-appx:///Assets/Settings/Modules/Run.png">
2024-01-12 18:01:40 +01:00
<controls:SettingsPageControl.ModuleContent>
2021-07-05 16:25:23 +02:00
2023-09-14 18:41:31 +02:00
<StackPanel ChildrenTransitions="{StaticResource SettingsCardsAnimations}" Orientation="Vertical">
2024-01-12 18:01:40 +01:00
<tkcontrols:SettingsCard
2022-11-29 13:36:39 +01:00
x:Uid="PowerLauncher_EnablePowerLauncher"
2024-01-26 17:12:33 +01:00
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/Icons/PowerToysRun.png}"
2024-01-03 16:41:26 +01:00
IsEnabled="{x:Bind ViewModel.IsEnabledGpoConfigured, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}">
2023-09-14 18:41:31 +02:00
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.EnablePowerLauncher, 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.IsEnabledGpoConfigured, Mode=OneWay}"
IsTabStop="{x:Bind ViewModel.IsEnabledGpoConfigured, Mode=OneWay}"
2025-01-19 15:32:46 +01:00
Severity="Informational">
<InfoBar.IconSource>
<FontIconSource FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph="" />
</InfoBar.IconSource>
</InfoBar>
2022-11-23 19:57:09 +01:00
2024-01-12 18:01:40 +01:00
<controls:SettingsGroup x:Uid="Shortcut" IsEnabled="{x:Bind ViewModel.EnablePowerLauncher, Mode=OneWay}">
<tkcontrols:SettingsExpander
2022-11-23 19:57:09 +01:00
x:Uid="Activation_Shortcut"
2023-09-14 18:41:31 +02:00
HeaderIcon="{ui:FontIcon Glyph=}"
2022-11-23 19:57:09 +01:00
IsExpanded="True">
2024-01-12 18:01:40 +01:00
<controls:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind Path=ViewModel.OpenPowerLauncher, Mode=TwoWay}" />
<tkcontrols:SettingsExpander.Items>
<tkcontrols:SettingsCard ContentAlignment="Left">
<controls:CheckBoxWithDescriptionControl x:Uid="PowerLauncher_UseCentralizedKeyboardHook" IsChecked="{x:Bind ViewModel.UseCentralizedKeyboardHook, Mode=TwoWay}" />
</tkcontrols:SettingsCard>
<tkcontrols:SettingsCard ContentAlignment="Left">
2024-01-03 16:41:26 +01:00
<CheckBox x:Uid="PowerLauncher_IgnoreHotkeysInFullScreen" IsChecked="{x:Bind ViewModel.IgnoreHotkeysInFullScreen, Mode=TwoWay}" />
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard>
</tkcontrols:SettingsExpander.Items>
</tkcontrols:SettingsExpander>
</controls:SettingsGroup>
2020-12-15 15:16:09 +03:00
2021-08-23 19:48:52 +02:00
<!--<Custom:HotkeySettingsControl x:Uid="PowerLauncher_OpenFileLocation"
2020-12-15 15:16:09 +03:00
HorizontalAlignment="Left"
Margin="{StaticResource SmallTopMargin}"
HotkeySettings="{Binding Path=ViewModel.OpenFileLocation, Mode=TwoWay}"
IsEnabled="False"
/>
<Custom:HotkeySettingsControl x:Uid="PowerLauncher_CopyPathLocation"
HorizontalAlignment="Left"
Margin="{StaticResource SmallTopMargin}"
HotkeySettings="{Binding Path=ViewModel.CopyPathLocation, Mode=TwoWay}"
Keys="Win, Ctrl, Alt, Shift"
IsEnabled="False"
/>
<Custom:HotkeySettingsControl x:Uid="PowerLauncher_OpenConsole"
HorizontalAlignment="Left"
Margin="{StaticResource SmallTopMargin}"
HotkeySettings="{Binding Path=ViewModel.OpenConsole, Mode=TwoWay}"
Keys="Win, Ctrl, Alt, Shift"
IsEnabled="False"
/>-->
2022-11-23 19:57:09 +01:00
<!--<CheckBox x:Uid="PowerLauncher_OverrideWinRKey"
2020-12-15 15:16:09 +03:00
Margin="{StaticResource SmallTopMargin}"
IsChecked="False"
IsEnabled="False"
/>-->
2021-08-23 19:48:52 +02:00
<!--<CheckBox x:Uid="PowerLauncher_OverrideWinSKey"
2020-12-15 15:16:09 +03:00
Margin="{StaticResource SmallTopMargin}"
2024-01-03 16:41:26 +01:00
IsChecked="{x:Bind ViewModel.OverrideWinSKey, Mode=TwoWay}"
2020-12-15 15:16:09 +03:00
IsEnabled="False"
/>-->
2024-01-12 18:01:40 +01:00
<controls:SettingsGroup x:Uid="PowerLauncher_SearchResults" IsEnabled="{x:Bind ViewModel.EnablePowerLauncher, Mode=OneWay}">
<tkcontrols:SettingsExpander
2022-11-23 19:57:09 +01:00
x:Uid="PowerLauncher_SearchQueryResultsWithDelay"
2023-09-14 18:41:31 +02:00
HeaderIcon="{ui:FontIcon Glyph=}"
2022-11-23 19:57:09 +01:00
IsExpanded="True">
2024-01-03 16:41:26 +01:00
<ToggleSwitch IsOn="{x:Bind ViewModel.SearchQueryResultsWithDelay, Mode=TwoWay}" />
2024-01-12 18:01:40 +01:00
<tkcontrols:SettingsExpander.Items>
<tkcontrols:SettingsCard x:Uid="PowerLauncher_FastSearchInputDelayMs" IsEnabled="{x:Bind ViewModel.SearchQueryResultsWithDelay, Mode=OneWay}">
2022-11-23 19:57:09 +01:00
<NumberBox
MinWidth="{StaticResource SettingActionControlMinWidth}"
LargeChange="50"
Maximum="500"
Minimum="0"
SmallChange="10"
SpinButtonPlacementMode="Compact"
2024-01-03 16:41:26 +01:00
Value="{x:Bind ViewModel.SearchInputDelayFast, Mode=TwoWay}" />
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard>
<tkcontrols:SettingsCard x:Uid="PowerLauncher_SlowSearchInputDelayMs" IsEnabled="{x:Bind ViewModel.SearchQueryResultsWithDelay, Mode=OneWay}">
2022-11-23 19:57:09 +01:00
<NumberBox
MinWidth="{StaticResource SettingActionControlMinWidth}"
LargeChange="50"
Maximum="1000"
Minimum="0"
SmallChange="10"
SpinButtonPlacementMode="Compact"
2024-01-03 16:41:26 +01:00
Value="{x:Bind ViewModel.SearchInputDelay, 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-23 19:57:09 +01:00
x:Uid="PowerLauncher_MaximumNumberOfResults"
2023-09-14 18:41:31 +02:00
HeaderIcon="{ui:FontIcon Glyph=}"
2022-11-23 19:57:09 +01:00
IsExpanded="True">
<NumberBox
MinWidth="{StaticResource SettingActionControlMinWidth}"
Minimum="1"
SpinButtonPlacementMode="Compact"
2024-01-03 16:41:26 +01:00
Value="{x:Bind ViewModel.MaximumNumberOfResults, Mode=TwoWay}" />
2024-01-12 18:01:40 +01:00
<tkcontrols:SettingsExpander.Items>
<tkcontrols:SettingsCard ContentAlignment="Left">
2024-01-03 16:41:26 +01:00
<CheckBox x:Uid="PowerLauncher_ClearInputOnLaunch" IsChecked="{x:Bind ViewModel.ClearInputOnLaunch, 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-23 19:57:09 +01:00
x:Uid="PowerLauncher_SearchQueryTuningEnabled"
2023-09-14 18:41:31 +02:00
HeaderIcon="{ui:FontIcon Glyph=}"
2022-11-23 19:57:09 +01:00
IsExpanded="True">
2024-01-03 16:41:26 +01:00
<ToggleSwitch IsOn="{x:Bind ViewModel.SearchQueryTuningEnabled, Mode=TwoWay}" />
2024-01-12 18:01:40 +01:00
<tkcontrols:SettingsExpander.Items>
<tkcontrols:SettingsCard x:Uid="PowerLauncher_SearchClickedItemWeight" IsEnabled="{x:Bind ViewModel.SearchQueryTuningEnabled, Mode=OneWay}">
2022-11-23 19:57:09 +01:00
<NumberBox
MinWidth="{StaticResource SettingActionControlMinWidth}"
LargeChange="50"
Maximum="1000"
Minimum="0"
SmallChange="5"
SpinButtonPlacementMode="Compact"
2024-01-03 16:41:26 +01:00
Value="{x:Bind ViewModel.SearchClickedItemWeight, Mode=TwoWay}" />
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard>
<tkcontrols:SettingsCard ContentAlignment="Left" IsEnabled="{x:Bind ViewModel.SearchQueryTuningEnabled, Mode=OneWay}">
<controls:CheckBoxWithDescriptionControl x:Uid="PowerLauncher_WaitForSlowResults" IsChecked="{x:Bind ViewModel.SearchWaitForSlowResults, Mode=TwoWay}" />
</tkcontrols:SettingsCard>
</tkcontrols:SettingsExpander.Items>
</tkcontrols:SettingsExpander>
2023-01-10 19:34:50 +05:30
2024-01-12 18:01:40 +01:00
<tkcontrols:SettingsCard x:Uid="PowerLauncher_TabSelectsContextButtons" HeaderIcon="{ui:FontIcon Glyph=}">
2023-09-14 18:41:31 +02:00
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.TabSelectsContextButtons, Mode=TwoWay}" />
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard>
2023-01-10 19:34:50 +05:30
2024-01-12 18:01:40 +01:00
<tkcontrols:SettingsCard x:Uid="PowerLauncher_UsePinyin" HeaderIcon="{ui:FontIcon Glyph=}">
2023-10-11 14:54:49 +02:00
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.UsePinyin, Mode=TwoWay}" />
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard>
2023-09-19 10:31:33 -04:00
2024-01-12 18:01:40 +01:00
<tkcontrols:SettingsCard x:Uid="PowerLauncher_GenerateThumbnailsFromFiles" HeaderIcon="{ui:FontIcon Glyph=}">
2023-09-14 18:41:31 +02:00
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.GenerateThumbnailsFromFiles, Mode=TwoWay}" />
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard>
</controls:SettingsGroup>
2021-08-23 19:48:52 +02:00
<!--<ComboBox x:Uid="PowerLauncher_SearchResultPreference"
2020-12-15 15:16:09 +03:00
MinWidth="320"
Margin="{StaticResource SmallTopMargin}"
ItemsSource="{Binding searchResultPreferencesOptions}"
2024-01-03 16:41:26 +01:00
SelectedItem="{x:Bind SelectedSearchResultPreference, Mode=TwoWay}"
2020-12-15 15:16:09 +03:00
SelectedValuePath="Item2"
DisplayMemberPath="Item1"
IsEnabled="False"
/>
<ComboBox x:Uid="PowerLauncher_SearchTypePreference"
MinWidth="320"
Margin="{StaticResource SmallTopMargin}"
ItemsSource="{Binding searchTypePreferencesOptions}"
2024-01-03 16:41:26 +01:00
SelectedItem="{x:Bind SelectedSearchTypePreference, Mode=TwoWay}"
2020-12-15 15:16:09 +03:00
SelectedValuePath="Item2"
DisplayMemberPath="Item1"
IsEnabled="False"
/>-->
2024-01-12 18:01:40 +01:00
<controls:SettingsGroup x:Uid="Run_PositionAppearance_GroupSettings" IsEnabled="{x:Bind ViewModel.EnablePowerLauncher, Mode=OneWay}">
<tkcontrols:SettingsCard x:Uid="Run_PositionHeader" HeaderIcon="{ui:FontIcon Glyph=}">
2024-01-03 16:41:26 +01:00
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}" SelectedIndex="{x:Bind ViewModel.MonitorPositionIndex, Mode=TwoWay}">
2022-11-23 19:57:09 +01:00
<ComboBoxItem x:Uid="Run_Radio_Position_Cursor" />
<ComboBoxItem x:Uid="Run_Radio_Position_Primary_Monitor" />
<ComboBoxItem x:Uid="Run_Radio_Position_Focus" />
</ComboBox>
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="ColorModeHeader" HeaderIcon="{ui:FontIcon Glyph=}">
<tkcontrols:SettingsCard.Description>
2023-09-14 18:41:31 +02:00
<HyperlinkButton x:Uid="Windows_Color_Settings" Click="OpenColorsSettings_Click" />
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard.Description>
2024-01-03 16:41:26 +01:00
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}" SelectedIndex="{x:Bind ViewModel.ThemeIndex, Mode=TwoWay}">
2022-11-23 19:57:09 +01:00
<ComboBoxItem x:Uid="Radio_Theme_Dark" />
<ComboBoxItem x:Uid="Radio_Theme_Light" />
<ComboBoxItem x:Uid="Radio_Theme_Default" />
</ComboBox>
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard>
2023-12-19 14:11:35 +01:00
2024-01-12 18:01:40 +01:00
<tkcontrols:SettingsCard x:Uid="PowerLauncher_ShowPluginKeywords" HeaderIcon="{ui:FontIcon Glyph=}">
2024-01-03 16:41:26 +01:00
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}" SelectedIndex="{x:Bind ViewModel.ShowPluginsOverviewIndex, Mode=TwoWay}">
2023-12-19 14:11:35 +01:00
<ComboBoxItem x:Uid="ShowPluginsOverview_All" />
<ComboBoxItem x:Uid="ShowPluginsOverview_NonGlobal" />
<ComboBoxItem x:Uid="ShowPluginsOverview_None" />
</ComboBox>
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard>
2023-12-26 14:49:50 +01:00
2024-01-12 18:01:40 +01:00
<tkcontrols:SettingsCard x:Uid="PowerLauncher_TitleFontSize" HeaderIcon="{ui:FontIcon Glyph=}">
2023-12-26 14:49:50 +01:00
<StackPanel Orientation="Horizontal" Spacing="12">
<TextBlock
VerticalAlignment="Center"
AutomationProperties.AccessibilityView="Raw"
FontSize="12"
FontWeight="SemiBold"
Text="A" />
<Slider
x:Uid="PowerLauncher_TextFontSizeSlider"
LargeChange="2"
Maximum="24"
Minimum="12"
SmallChange="2"
StepFrequency="2"
TickFrequency="2"
TickPlacement="Outside"
Value="{x:Bind ViewModel.TitleFontSize, Mode=TwoWay}" />
<TextBlock
VerticalAlignment="Center"
AutomationProperties.AccessibilityView="Raw"
FontSize="24"
FontWeight="SemiBold"
Text="A" />
</StackPanel>
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard>
</controls:SettingsGroup>
2021-08-23 19:48:52 +02:00
2024-01-12 18:01:40 +01:00
<controls:SettingsGroup x:Uid="PowerLauncher_Plugins" IsEnabled="{x:Bind ViewModel.EnablePowerLauncher, Mode=OneWay}">
2022-08-23 22:28:41 +02:00
2022-11-23 19:57:09 +01:00
<InfoBar
x:Uid="Run_ConflictingKeywordInfo"
IsClosable="False"
2024-01-03 16:41:26 +01:00
IsOpen="{x:Bind ViewModel.EnablePowerLauncher, Mode=OneWay}"
IsTabStop="{x:Bind ViewModel.EnablePowerLauncher, Mode=OneWay}"
2022-11-23 19:57:09 +01:00
Severity="Informational">
2022-09-20 18:59:18 +02:00
<InfoBar.ActionButton>
2023-09-14 18:41:31 +02:00
<HyperlinkButton x:Uid="Run_ConflictingKeywordInfo_Link" NavigateUri="https://aka.ms/PowerToysOverview_PowerToysRun#direct-activation-commands" />
2022-09-20 18:59:18 +02:00
</InfoBar.ActionButton>
</InfoBar>
2022-08-23 22:28:41 +02:00
2024-01-12 18:01:40 +01:00
<tkcontrols:SettingsCard x:Uid="Run_PluginUse" HeaderIcon="{ui:FontIcon Glyph=}">
<tkcontrols:SettingsCard.Description>
2023-08-08 14:01:50 +02:00
<StackPanel>
<TextBlock x:Uid="Run_PluginUseDescription" />
2023-09-14 18:41:31 +02:00
<HyperlinkButton x:Uid="Run_PluginUseFindMorePlugins" NavigateUri="https://aka.ms/powerToysRunPlugins" />
2023-08-08 14:01:50 +02:00
</StackPanel>
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard.Description>
2022-11-23 19:57:09 +01:00
<AutoSuggestBox
x:Uid="PowerLauncher_SearchList"
MinWidth="{StaticResource SettingActionControlMinWidth}"
QueryIcon="Find"
Text="{x:Bind ViewModel.SearchText, Mode=TwoWay}">
<i:Interaction.Behaviors>
<ic:EventTriggerBehavior EventName="TextChanged">
<ic:InvokeCommandAction Command="{x:Bind ViewModel.SearchPluginsCommand}" />
</ic:EventTriggerBehavior>
</i:Interaction.Behaviors>
</AutoSuggestBox>
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard>
2022-11-23 19:57:09 +01:00
2023-10-11 16:37:15 +02:00
<InfoBar
2024-01-25 14:59:00 +01:00
x:Uid="GPO_SomeRunPluginsAreManaged"
2023-10-11 16:37:15 +02:00
IsClosable="False"
IsOpen="{x:Bind ViewModel.ShowPluginsAreGpoManagedInfo, Mode=OneWay}"
IsTabStop="{x:Bind ViewModel.ShowPluginsAreGpoManagedInfo, Mode=OneWay}"
2025-01-19 15:32:46 +01:00
Severity="Informational">
<InfoBar.IconSource>
<FontIconSource FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph="" />
</InfoBar.IconSource>
</InfoBar>
2022-11-23 19:57:09 +01:00
<InfoBar
x:Uid="Run_AllPluginsDisabled"
IsClosable="False"
IsOpen="{x:Bind ViewModel.ShowAllPluginsDisabledWarning, Mode=OneWay}"
IsTabStop="{x:Bind ViewModel.ShowAllPluginsDisabledWarning, Mode=OneWay}"
Severity="Error" />
2023-09-14 18:41:31 +02:00
<StackPanel Orientation="Horizontal" Visibility="{x:Bind ViewModel.ShowPluginsLoadingMessage, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}">
2022-11-23 19:57:09 +01:00
<ProgressRing
Width="20"
Height="20"
Margin="18,18"
IsActive="True" />
<TextBlock
x:Uid="Run_PluginsLoading"
VerticalAlignment="Center"
Style="{ThemeResource SecondaryTextStyle}" />
2021-08-23 19:48:52 +02:00
</StackPanel>
2024-05-08 16:16:54 +02:00
<ItemsRepeater x:Name="PluginsListView" ItemsSource="{x:Bind Path=ViewModel.Plugins, Mode=OneWay}">
<ItemsRepeater.Layout>
<StackLayout Spacing="2" />
</ItemsRepeater.Layout>
<ItemsRepeater.ItemTemplate>
2023-09-14 18:41:31 +02:00
<DataTemplate x:DataType="ViewModels:PowerLauncherPluginViewModel" x:DefaultBindMode="OneWay">
2021-08-23 19:48:52 +02:00
<Grid>
2024-01-12 18:01:40 +01:00
<tkcontrols:SettingsExpander Description="{x:Bind Description}" Header="{x:Bind Path=Name}">
<tkcontrols:SettingsExpander.HeaderIcon>
2022-11-23 19:57:09 +01:00
<BitmapIcon UriSource="{x:Bind IconPath}" />
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsExpander.HeaderIcon>
2023-09-14 18:41:31 +02:00
<StackPanel Orientation="Horizontal" Spacing="16">
2022-11-23 19:57:09 +01:00
<!-- todo(Stefan): InfoBadge not available
2022-09-20 18:59:18 +02:00
<InfoBadge AutomationProperties.AccessibilityView="Raw"
2022-08-23 22:28:41 +02:00
Visibility="{x:Bind ShowBadgeOnPluginSettingError}"
2021-09-19 16:22:39 +02:00
Style="{StaticResource CriticalIconInfoBadgeStyle}" />
2022-11-23 19:57:09 +01:00
-->
<!-- Temporary badge replacement for InfoBadge control (htcfreek). (Normally you need one grid per icon group. But if you want to show two badges at the same place in a StackPanel you have to put all FontIcons into the same Grid.) -->
<Grid>
<!-- Error badge -->
<FontIcon
FontFamily="{StaticResource SymbolThemeFontFamily}"
Foreground="{ThemeResource InfoBarErrorSeverityIconBackground}"
Glyph="{StaticResource InfoBarIconBackgroundGlyph}"
Visibility="{x:Bind ShowBadgeOnPluginSettingError}" />
<FontIcon
FontFamily="{StaticResource SymbolThemeFontFamily}"
Foreground="{ThemeResource InfoBarErrorSeverityIconForeground}"
Glyph="{StaticResource InfoBarErrorIconGlyph}"
Visibility="{x:Bind ShowBadgeOnPluginSettingError}" />
</Grid>
2023-10-24 12:25:55 +02:00
<ToggleSwitch
x:Uid="PowerLauncher_EnablePluginToggle"
IsEnabled="{x:Bind Path=EnabledGpoRuleIsConfigured, Converter={StaticResource BoolNegationConverter}, Mode=OneWay}"
IsOn="{x:Bind Path=Disabled, Converter={StaticResource BoolNegationConverter}, Mode=TwoWay}" />
2023-10-11 16:37:15 +02:00
2022-11-23 19:57:09 +01:00
</StackPanel>
2024-01-12 18:01:40 +01:00
<tkcontrols:SettingsExpander.Items>
<tkcontrols:SettingsCard x:Uid="PowerLauncher_ActionKeyword" IsEnabled="{x:Bind Enabled, Mode=OneWay}">
2024-01-03 16:41:26 +01:00
<TextBox MinWidth="{StaticResource SettingActionControlMinWidth}" Text="{x:Bind ActionKeyword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard>
<tkcontrols:SettingsCard
2024-07-17 16:31:42 +02:00
Padding="0,0,0,0"
2022-11-23 19:57:09 +01:00
HorizontalContentAlignment="Left"
Background="{ThemeResource SystemFillColorCriticalBackgroundBrush}"
ContentAlignment="Vertical"
Visibility="{x:Bind ShowNotAccessibleWarning, Converter={StaticResource BoolToVisibilityConverter}}">
<InfoBar
x:Uid="Run_NotAccessibleWarning"
Margin="3,0,0,0"
Background="Transparent"
BorderBrush="Transparent"
IsClosable="False"
IsOpen="True"
IsTabStop="{x:Bind ShowNotAccessibleWarning}"
Severity="Error" />
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard>
<tkcontrols:SettingsCard ContentAlignment="Left" IsEnabled="{x:Bind Enabled, Mode=OneWay}">
2022-11-23 19:57:09 +01:00
<CheckBox
Margin="0,-8,0,0"
AutomationProperties.Name="{Binding ElementName=IncludeInGlobalResultTitle, Path=Text}"
2024-01-03 16:41:26 +01:00
IsChecked="{x:Bind IsGlobal, Mode=TwoWay}">
2022-11-23 19:57:09 +01:00
<StackPanel Orientation="Vertical">
2023-09-14 18:41:31 +02:00
<TextBlock x:Name="IncludeInGlobalResultTitle" x:Uid="PowerLauncher_IncludeInGlobalResultTitle" />
2024-01-12 18:01:40 +01:00
<controls:IsEnabledTextBlock
2022-11-23 19:57:09 +01:00
x:Uid="PowerLauncher_IncludeInGlobalResultDescription"
FontSize="{StaticResource SecondaryTextFontSize}"
Foreground="{ThemeResource TextFillColorSecondaryBrush}" />
2021-08-26 19:53:25 +02:00
</StackPanel>
2022-11-23 19:57:09 +01:00
</CheckBox>
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard>
<tkcontrols:SettingsCard x:Uid="PowerLauncher_PluginWeightBoost" IsEnabled="{x:Bind IsGlobalAndEnabled, Mode=OneWay}">
2022-11-23 19:57:09 +01:00
<NumberBox
MinWidth="{StaticResource SettingActionControlMinWidth}"
LargeChange="50"
Maximum="1000"
Minimum="-1000"
SmallChange="10"
SpinButtonPlacementMode="Compact"
2024-01-03 16:41:26 +01:00
Value="{x:Bind WeightBoost, Mode=TwoWay}" />
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard>
<tkcontrols:SettingsCard
2022-11-23 19:57:09 +01:00
MinHeight="0"
HorizontalContentAlignment="Stretch"
ContentAlignment="Vertical">
2024-01-12 18:01:40 +01:00
<tkcontrols:SettingsCard.Resources>
2022-11-23 19:57:09 +01:00
<Thickness x:Key="SettingsCardPadding">0</Thickness>
<Thickness x:Key="SettingsExpanderItemPadding">0,0,0,0</Thickness>
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard.Resources>
2022-11-23 19:57:09 +01:00
<ItemsControl
Margin="0,-6,0,0"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
IsEnabled="{x:Bind Enabled, Mode=OneWay}"
2024-05-08 16:16:54 +02:00
ItemTemplateSelector="{StaticResource RunOptionTemplateSelector}"
ItemsSource="{x:Bind Path=AdditionalOptions}" />
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard>
<tkcontrols:SettingsCard
2022-11-23 19:57:09 +01:00
MinHeight="0"
BorderThickness="0"
2025-01-08 15:03:27 +01:00
ContentAlignment="Right"
IsEnabled="{x:Bind Enabled, Mode=OneWay}">
<StackPanel
HorizontalAlignment="Right"
Orientation="Horizontal"
Spacing="4">
<TextBlock Opacity="{x:Bind DisabledOpacity}" Style="{ThemeResource SecondaryTextStyle}">
<Run x:Uid="PowerLauncher_PluginVersion" />
<Run FontWeight="SemiBold" Text="{x:Bind Version}" />
</TextBlock>
<TextBlock
AutomationProperties.Name=","
IsTabStop="False"
Opacity="{x:Bind DisabledOpacity}"
Style="{ThemeResource SecondaryTextStyle}"
Text="|" />
<TextBlock Opacity="{x:Bind DisabledOpacity}" Style="{ThemeResource SecondaryTextStyle}">
<Run x:Uid="PowerLauncher_AuthoredBy" />
<Run FontWeight="SemiBold" Text="{x:Bind Author}" />
</TextBlock>
<TextBlock
AutomationProperties.Name=","
IsTabStop="False"
Opacity="{x:Bind DisabledOpacity}"
Style="{ThemeResource SecondaryTextStyle}"
Text="|"
Visibility="{x:Bind HasValidWebsiteUri, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" />
<HyperlinkButton
Margin="0"
Padding="0"
NavigateUri="{x:Bind WebsiteUri}"
Opacity="{x:Bind DisabledOpacity}"
Style="{StaticResource TextButtonStyle}"
Visibility="{x:Bind HasValidWebsiteUri, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}">
<TextBlock
x:Uid="PowerLauncher_PluginWebsite"
FontWeight="SemiBold"
Style="{ThemeResource SecondaryLinkTextStyle}" />
</HyperlinkButton>
</StackPanel>
2024-01-12 18:01:40 +01:00
</tkcontrols:SettingsCard>
</tkcontrols:SettingsExpander.Items>
</tkcontrols:SettingsExpander>
2021-08-23 19:48:52 +02:00
</Grid>
</DataTemplate>
2024-05-08 16:16:54 +02:00
</ItemsRepeater.ItemTemplate>
</ItemsRepeater>
2024-01-12 18:01:40 +01:00
</controls:SettingsGroup>
2021-08-23 19:48:52 +02:00
</StackPanel>
2020-12-15 15:16:09 +03:00
2024-01-12 18:01:40 +01:00
</controls:SettingsPageControl.ModuleContent>
<controls:SettingsPageControl.PrimaryLinks>
<controls:PageLink x:Uid="LearnMore_Run" Link="https://aka.ms/PowerToysOverview_PowerToysRun" />
<controls:PageLink x:Uid="Run_FindMorePlugins" Link="https://aka.ms/powerToysRunPlugins" />
</controls:SettingsPageControl.PrimaryLinks>
<controls:SettingsPageControl.SecondaryLinks>
<controls:PageLink Link="https://github.com/Wox-launcher/Wox/" Text="Wox" />
<controls:PageLink Link="https://github.com/betsegaw/windowwalker/" Text="Beta Tadele's Window Walker" />
</controls:SettingsPageControl.SecondaryLinks>
</controls:SettingsPageControl>
2024-07-17 16:31:42 +02:00
</Page>