2020-07-21 08:50:42 +08:00
|
|
|
<Page
|
2020-07-18 02:01:46 +08:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:local="using:Microsoft.PowerToys.Settings.UI.Views"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.PowerLauncherPage"
|
|
|
|
xmlns:viewModel="using:Microsoft.PowerToys.Settings.UI.ViewModels"
|
|
|
|
xmlns:CustomControls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
2020-07-21 08:50:42 +08:00
|
|
|
|
2020-07-18 02:01:46 +08:00
|
|
|
<Grid ColumnSpacing="{StaticResource DefaultColumnSpacing}" RowSpacing="{StaticResource DefaultRowSpacing}">
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
<VisualStateGroup x:Name="LayoutVisualStates">
|
|
|
|
<VisualState x:Name="WideLayout">
|
|
|
|
<VisualState.StateTriggers>
|
|
|
|
<AdaptiveTrigger MinWindowWidth="{StaticResource WideLayoutMinWidth}" />
|
|
|
|
</VisualState.StateTriggers>
|
|
|
|
<VisualState.Setters>
|
2020-07-25 03:02:56 +08:00
|
|
|
<Setter Target="SidePanel.(Grid.Column)" Value="1"/>
|
|
|
|
<Setter Target="SidePanel.Width" Value="{StaticResource SidePanelWidth}"/>
|
|
|
|
<Setter Target="PowerToysRunView.(Grid.Row)" Value="0" />
|
|
|
|
<Setter Target="LinksPanel.(RelativePanel.Below)" Value="AboutImage"/>
|
|
|
|
<Setter Target="AboutTitle.Visibility" Value="Visible" />
|
2020-07-18 02:01:46 +08:00
|
|
|
</VisualState.Setters>
|
|
|
|
</VisualState>
|
|
|
|
<VisualState x:Name="SmallLayout">
|
|
|
|
<VisualState.StateTriggers>
|
|
|
|
<AdaptiveTrigger MinWindowWidth="{StaticResource SmallLayoutMinWidth}" />
|
|
|
|
</VisualState.StateTriggers>
|
|
|
|
<VisualState.Setters>
|
2020-07-25 03:02:56 +08:00
|
|
|
<Setter Target="SidePanel.(Grid.Column)" Value="0"/>
|
|
|
|
<Setter Target="SidePanel.Width" Value="500"/>
|
|
|
|
<Setter Target="PowerToysRunView.(Grid.Row)" Value="1" />
|
|
|
|
<Setter Target="LinksPanel.(RelativePanel.RightOf)" Value="AboutImage"/>
|
|
|
|
<Setter Target="LinksPanel.(RelativePanel.AlignTopWith)" Value="AboutImage"/>
|
|
|
|
<Setter Target="AboutImage.Margin" Value="0,12,12,0"/>
|
|
|
|
<Setter Target="AboutTitle.Visibility" Value="Collapsed" />
|
2020-07-18 02:01:46 +08:00
|
|
|
</VisualState.Setters>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
2020-07-25 03:02:56 +08:00
|
|
|
<StackPanel Orientation="Vertical" x:Name="PowerToysRunView">
|
2020-07-18 02:01:46 +08:00
|
|
|
<ToggleSwitch x:Uid="PowerLauncher_EnablePowerLauncher"
|
2020-07-25 03:02:56 +08:00
|
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.EnablePowerLauncher}"/>
|
2020-07-18 02:01:46 +08:00
|
|
|
|
2020-07-25 03:02:56 +08:00
|
|
|
<TextBlock x:Uid="PowerLauncher_Shortcuts"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
|
|
|
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
|
2020-07-18 02:01:46 +08:00
|
|
|
|
|
|
|
<CustomControls:HotkeySettingsControl x:Uid="PowerLauncher_OpenPowerLauncher"
|
|
|
|
Width="240"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
HotkeySettings="{x:Bind Path=ViewModel.OpenPowerLauncher, Mode=TwoWay}"
|
2020-07-25 03:02:56 +08:00
|
|
|
Keys="Win, Ctrl, Alt, Shift"
|
2020-07-18 02:01:46 +08:00
|
|
|
Enabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"/>
|
|
|
|
<!--<Custom:HotkeySettingsControl x:Uid="PowerLauncher_OpenFileLocation"
|
|
|
|
Width="320"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
HotkeySettings="{Binding Path=ViewModel.OpenFileLocation, Mode=TwoWay}"
|
|
|
|
IsEnabled="False"
|
|
|
|
/>
|
|
|
|
<Custom:HotkeySettingsControl x:Uid="PowerLauncher_CopyPathLocation"
|
|
|
|
Width="320"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
HotkeySettings="{Binding Path=ViewModel.CopyPathLocation, Mode=TwoWay}"
|
2020-07-25 03:02:56 +08:00
|
|
|
Keys="Win, Ctrl, Alt, Shift"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsEnabled="False"
|
|
|
|
/>
|
|
|
|
<Custom:HotkeySettingsControl x:Uid="PowerLauncher_OpenConsole"
|
|
|
|
Width="320"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
HotkeySettings="{Binding Path=ViewModel.OpenConsole, Mode=TwoWay}"
|
2020-07-25 03:02:56 +08:00
|
|
|
Keys="Win, Ctrl, Alt, Shift"
|
2020-07-18 02:01:46 +08:00
|
|
|
IsEnabled="False"
|
|
|
|
/>-->
|
|
|
|
|
|
|
|
<!--<CheckBox x:Uid="PowerLauncher_OverrideWinRKey"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsChecked="False"
|
|
|
|
IsEnabled="False"
|
|
|
|
/>-->
|
|
|
|
|
|
|
|
<!--<CheckBox x:Uid="PowerLauncher_OverrideWinSKey"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsChecked="{Binding Mode=TwoWay, Path=ViewModel.OverrideWinSKey}"
|
|
|
|
IsEnabled="False"
|
|
|
|
/>-->
|
|
|
|
|
|
|
|
<CheckBox x:Uid="PowerLauncher_IgnoreHotkeysInFullScreen"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.IgnoreHotkeysInFullScreen}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"
|
|
|
|
/>
|
|
|
|
|
2020-07-25 03:02:56 +08:00
|
|
|
<TextBlock x:Uid="PowerLauncher_SearchResults"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
|
|
|
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
|
|
|
|
|
|
|
|
<!--<ComboBox x:Uid="PowerLauncher_SearchResultPreference"
|
|
|
|
MinWidth="320"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
ItemsSource="{Binding searchResultPreferencesOptions}"
|
|
|
|
SelectedItem="{Binding Mode=TwoWay, Path=SelectedSearchResultPreference}"
|
|
|
|
SelectedValuePath="Item2"
|
|
|
|
DisplayMemberPath="Item1"
|
|
|
|
IsEnabled="False"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<ComboBox x:Uid="PowerLauncher_SearchTypePreference"
|
|
|
|
MinWidth="320"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
ItemsSource="{Binding searchTypePreferencesOptions}"
|
|
|
|
SelectedItem="{Binding Mode=TwoWay, Path=SelectedSearchTypePreference}"
|
|
|
|
SelectedValuePath="Item2"
|
|
|
|
DisplayMemberPath="Item1"
|
|
|
|
IsEnabled="False"
|
|
|
|
/>-->
|
|
|
|
|
|
|
|
<TextBlock x:Uid="PowerLauncher_MaximumNumberOfResults"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
|
|
|
|
|
|
|
|
<muxc:NumberBox Value="{Binding Mode=TwoWay, Path=MaximumNumberOfResults}"
|
|
|
|
Width="240"
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Minimum="1"
|
|
|
|
Margin="{StaticResource HeaderTextTopMargin}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"/>
|
|
|
|
|
2020-07-18 02:01:46 +08:00
|
|
|
<CheckBox x:Uid="PowerLauncher_ClearInputOnLaunch"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.ClearInputOnLaunch}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"
|
|
|
|
/>
|
2020-07-21 08:50:42 +08:00
|
|
|
|
|
|
|
<CheckBox x:Uid="PowerLauncher_DisableDriveDetectionWarning"
|
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
|
|
|
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.DisableDriveDetectionWarning}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.EnablePowerLauncher}"
|
|
|
|
/>
|
|
|
|
|
2020-07-18 02:01:46 +08:00
|
|
|
</StackPanel>
|
2020-07-25 03:02:56 +08:00
|
|
|
|
|
|
|
<RelativePanel x:Name="SidePanel"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Width="{StaticResource SidePanelWidth}"
|
|
|
|
Grid.Column="1">
|
|
|
|
<StackPanel x:Name="DescriptionPanel">
|
|
|
|
<TextBlock x:Uid="About_PowerLauncher" x:Name="AboutTitle" Grid.ColumnSpan="2"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
|
|
|
Margin="{StaticResource XSmallBottomMargin}"/>
|
|
|
|
<TextBlock x:Uid="PowerLauncher_Description"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
Grid.Row="1" />
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<Border x:Name="AboutImage"
|
|
|
|
CornerRadius="4"
|
|
|
|
Grid.Row="2"
|
|
|
|
MaxWidth="240"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Margin="{StaticResource SmallTopBottomMargin}"
|
|
|
|
RelativePanel.Below="DescriptionPanel">
|
2020-07-29 06:02:09 +08:00
|
|
|
<Image Source="ms-appx:///Assets/Modules/PowerLauncher.png" />
|
2020-07-25 03:02:56 +08:00
|
|
|
</Border>
|
|
|
|
|
|
|
|
<StackPanel x:Name="LinksPanel"
|
|
|
|
RelativePanel.Below="AboutImage"
|
|
|
|
Orientation="Vertical" >
|
|
|
|
<HyperlinkButton NavigateUri="https://aka.ms/PowerToysOverview_PowerToysRun">
|
|
|
|
<TextBlock x:Uid="Module_overview" />
|
|
|
|
</HyperlinkButton>
|
2020-08-07 01:09:50 +08:00
|
|
|
<HyperlinkButton NavigateUri="https://aka.ms/powerToysGiveFeedback">
|
2020-07-25 03:02:56 +08:00
|
|
|
<TextBlock x:Uid="Give_Feedback" />
|
|
|
|
</HyperlinkButton>
|
|
|
|
|
|
|
|
<TextBlock x:Uid="AttributionTitle"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
|
|
|
Foreground="{ Binding Mode=TwoWay, Path=TextColor}"/>
|
|
|
|
|
|
|
|
<HyperlinkButton Margin="0,-3,0,0" NavigateUri="https://github.com/Wox-launcher/Wox/">
|
|
|
|
<TextBlock Text="Wox"/>
|
|
|
|
</HyperlinkButton>
|
|
|
|
|
|
|
|
<HyperlinkButton NavigateUri="https://github.com/betsegaw/windowwalker/">
|
|
|
|
<TextBlock Text="Beta Tadele's Window Walker" />
|
|
|
|
</HyperlinkButton>
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</RelativePanel>
|
2020-07-18 02:01:46 +08:00
|
|
|
</Grid>
|
2020-03-27 23:58:53 +08:00
|
|
|
</Page>
|