mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
1964 lines
126 KiB
XML
1964 lines
126 KiB
XML
<Window x:Class="Flow.Launcher.SettingWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:converters="clr-namespace:Flow.Launcher.Converters"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:flowlauncher="clr-namespace:Flow.Launcher"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase"
|
|
xmlns:svgc="http://sharpvectors.codeplex.com/svgc/"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:ui="http://schemas.modernwpf.com/2019"
|
|
xmlns:userSettings="clr-namespace:Flow.Launcher.Infrastructure.UserSettings;assembly=Flow.Launcher.Infrastructure"
|
|
xmlns:vm="clr-namespace:Flow.Launcher.ViewModel"
|
|
Title="{DynamicResource flowlauncher_settings}"
|
|
Width="1000"
|
|
Height="700"
|
|
MinWidth="900"
|
|
MinHeight="600"
|
|
d:DataContext="{d:DesignInstance vm:SettingWindowViewModel}"
|
|
Closed="OnClosed"
|
|
Icon="Images\app.ico"
|
|
Loaded="OnLoaded"
|
|
MouseDown="window_MouseDown"
|
|
ResizeMode="CanResizeWithGrip"
|
|
WindowStartupLocation="CenterScreen"
|
|
mc:Ignorable="d">
|
|
<Window.InputBindings>
|
|
<KeyBinding Key="Escape" Command="Close" />
|
|
</Window.InputBindings>
|
|
<Window.CommandBindings>
|
|
<CommandBinding Command="Close" Executed="OnCloseExecuted" />
|
|
</Window.CommandBindings>
|
|
|
|
<Window.Resources>
|
|
<converters:BorderClipConverter x:Key="BorderClipConverter" />
|
|
<CollectionViewSource x:Key="SortedFonts" Source="{Binding Source={x:Static Fonts.SystemFontFamilies}}">
|
|
<CollectionViewSource.SortDescriptions>
|
|
<scm:SortDescription PropertyName="Source" />
|
|
</CollectionViewSource.SortDescriptions>
|
|
</CollectionViewSource>
|
|
|
|
<Style x:Key="SettingGrid" TargetType="ItemsControl">
|
|
<Setter Property="Focusable" Value="False" />
|
|
<Setter Property="Margin" Value="0" />
|
|
<Setter Property="ItemsPanel">
|
|
<Setter.Value>
|
|
<ItemsPanelTemplate>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto" MinWidth="20" MaxWidth="60" />
|
|
<ColumnDefinition Width="8*" />
|
|
<ColumnDefinition Width="Auto" MinWidth="40" MaxWidth="550" />
|
|
</Grid.ColumnDefinitions>
|
|
</Grid>
|
|
</ItemsPanelTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="SettingGroupBox" TargetType="{x:Type Border}">
|
|
<Setter Property="Background" Value="#ffffff" />
|
|
<Setter Property="BorderBrush" Value="#e5e5e5" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="CornerRadius" Value="5" />
|
|
<Setter Property="Margin" Value="0,5,0,0" />
|
|
<Setter Property="Padding" Value="0,15,0,15" />
|
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
|
|
|
</Style>
|
|
<Style x:Key="SettingTitleLabel" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
</Style>
|
|
|
|
<Style x:Key="SettingSubTitleLabel" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="Foreground" Value="#5F5F5F" />
|
|
<Setter Property="FontSize" Value="12" />
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
<Setter Property="Padding" Value="0,0,24,0" />
|
|
<Setter Property="TextWrapping" Value="WrapWithOverflow" />
|
|
</Style>
|
|
<Style x:Key="TextPanel" TargetType="{x:Type StackPanel}">
|
|
<Setter Property="Grid.Column" Value="1" />
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
<Setter Property="Width" Value="Auto" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
|
</Style>
|
|
<Style x:Key="SideControlCheckBox" BasedOn="{StaticResource DefaultCheckBoxStyle}" TargetType="{x:Type CheckBox}">
|
|
<Setter Property="Width" Value="24" />
|
|
<Setter Property="Grid.Column" Value="2" />
|
|
<Setter Property="Margin" Value="0,4,0,4" />
|
|
<Setter Property="LayoutTransform">
|
|
<Setter.Value>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="SideToggleSwitch" BasedOn="{StaticResource DefaultToggleSwitch}" TargetType="{x:Type ui:ToggleSwitch}">
|
|
<Setter Property="Grid.Column" Value="2" />
|
|
<Setter Property="Margin" Value="0,4,0,4" />
|
|
</Style>
|
|
|
|
<Style x:Key="logo" TargetType="{x:Type TabItem}">
|
|
<!--#region Logo Style-->
|
|
<Setter Property="Margin" Value="0" />
|
|
<Setter Property="HorizontalAlignment" Value="center" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Foreground" Value="black" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="Focusable" Value="false" />
|
|
<Setter Property="Cursor" Value="Arrow" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
<Border>
|
|
<Grid>
|
|
<Grid>
|
|
<Border x:Name="Spacer"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
Margin="0,10,5,0"
|
|
Padding="0,0,0,0"
|
|
BorderBrush="Transparent"
|
|
BorderThickness="0">
|
|
<Border x:Name="border" Background="WhiteSmoke" CornerRadius="5">
|
|
<ContentPresenter x:Name="ContentSite"
|
|
Margin="12,12,0,12"
|
|
HorizontalAlignment="LEFT"
|
|
VerticalAlignment="Center"
|
|
ContentSource="Header"
|
|
TextBlock.Foreground="#000" />
|
|
</Border>
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="Transparent" />
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="transparent" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<!--#endregion-->
|
|
</Style>
|
|
<Style TargetType="{x:Type TabItem}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
<Border>
|
|
<Grid>
|
|
<Grid>
|
|
<Border x:Name="Spacer"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
Margin="8,4,8,0"
|
|
Padding="0,0,0,0"
|
|
BorderBrush="Transparent"
|
|
BorderThickness="0">
|
|
<Border x:Name="border" Background="#f3f3f3" CornerRadius="5">
|
|
<ContentPresenter x:Name="ContentSite"
|
|
Margin="12,12,0,12"
|
|
HorizontalAlignment="LEFT"
|
|
VerticalAlignment="Center"
|
|
ContentSource="Header"
|
|
TextBlock.Foreground="#000" />
|
|
</Border>
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="#eaeaea" />
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="#eaeaea" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- Plugin Store Item when Selected layout for nothing -->
|
|
<Style x:Key="StoreItem" TargetType="{x:Type ToggleButton}">
|
|
<Style.Triggers>
|
|
<Trigger Property="IsChecked" Value="True" />
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<Style x:Key="PluginList" TargetType="ListBoxItem">
|
|
<Setter Property="Background" Value="#ffffff" />
|
|
<Setter Property="Padding" Value="0,12,0,12" />
|
|
<Setter Property="Margin" Value="0,0,18,5" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
|
<Setter Property="BorderBrush" Value="#e5e5e5" />
|
|
<!--#region Template for blue highlight win10-->
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ListBoxItem}">
|
|
<Border x:Name="Bd"
|
|
Padding="{TemplateBinding Padding}"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="5"
|
|
SnapsToDevicePixels="True">
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Content="{TemplateBinding Content}"
|
|
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="IsMouseOver" Value="True" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter TargetName="Bd" Property="Background" Value="#f6f6f6" />
|
|
<Setter TargetName="Bd" Property="BorderBrush" Value="#e5e5e5" />
|
|
<Setter TargetName="Bd" Property="CornerRadius" Value="5" />
|
|
|
|
</MultiTrigger>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="Selector.IsSelectionActive" Value="False" />
|
|
<Condition Property="IsSelected" Value="True" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter TargetName="Bd" Property="Background" Value="#ffffff" />
|
|
<Setter TargetName="Bd" Property="BorderBrush" Value="#e5e5e5" />
|
|
<Setter TargetName="Bd" Property="Margin" Value="0,0,0,0" />
|
|
|
|
|
|
</MultiTrigger>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="Selector.IsSelectionActive" Value="True" />
|
|
<Condition Property="IsSelected" Value="True" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter TargetName="Bd" Property="Background" Value="#ffffff" />
|
|
<Setter TargetName="Bd" Property="BorderBrush" Value="#e5e5e5" />
|
|
<Setter TargetName="Bd" Property="CornerRadius" Value="5" />
|
|
<Setter TargetName="Bd" Property="Margin" Value="0,0,0,0" />
|
|
|
|
|
|
</MultiTrigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter TargetName="Bd" Property="TextElement.Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<!--#endregion-->
|
|
<Setter Property="Height" Value="Auto" />
|
|
</Style>
|
|
|
|
<!--#region PluginStore Style-->
|
|
<Style x:Key="StoreList" TargetType="ListBoxItem">
|
|
<Setter Property="Background" Value="#ffffff" />
|
|
<Setter Property="Padding" Value="0,0,0,0" />
|
|
<Setter Property="Margin" Value="0,0,8,5" />
|
|
<Setter Property="BorderBrush" Value="#e5e5e5" />
|
|
<Setter Property="MinWidth" Value="330" />
|
|
<Setter Property="Height" Value="98" />
|
|
<!--#region Template for blue highlight win10-->
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ListBoxItem}">
|
|
<Border x:Name="Bd"
|
|
Padding="{TemplateBinding Padding}"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="5"
|
|
SnapsToDevicePixels="True">
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Content="{TemplateBinding Content}"
|
|
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="IsMouseOver" Value="True" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter TargetName="Bd" Property="Background" Value="#f6f6f6" />
|
|
<Setter TargetName="Bd" Property="BorderBrush" Value="#e5e5e5" />
|
|
<Setter TargetName="Bd" Property="CornerRadius" Value="5" />
|
|
|
|
</MultiTrigger>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="Selector.IsSelectionActive" Value="False" />
|
|
<Condition Property="IsSelected" Value="True" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter TargetName="Bd" Property="Background" Value="#ffffff" />
|
|
<Setter TargetName="Bd" Property="BorderBrush" Value="#e5e5e5" />
|
|
<Setter TargetName="Bd" Property="Margin" Value="0,0,0,0" />
|
|
|
|
|
|
</MultiTrigger>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="Selector.IsSelectionActive" Value="True" />
|
|
<Condition Property="IsSelected" Value="True" />
|
|
</MultiTrigger.Conditions>
|
|
<Setter TargetName="Bd" Property="Background" Value="#ffffff" />
|
|
<Setter TargetName="Bd" Property="BorderBrush" Value="#e5e5e5" />
|
|
<Setter TargetName="Bd" Property="CornerRadius" Value="5" />
|
|
<Setter TargetName="Bd" Property="Margin" Value="0,0,0,0" />
|
|
|
|
|
|
</MultiTrigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter TargetName="Bd" Property="TextElement.Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<!--#endregion-->
|
|
</Style>
|
|
|
|
<!-- For Tab Header responsive Width -->
|
|
<Style TargetType="{x:Type TabControl}">
|
|
<Setter Property="FontSize" Value="14" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabControl}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="2.2*" />
|
|
<ColumnDefinition Width="7.8*" />
|
|
</Grid.ColumnDefinitions>
|
|
<TabPanel Grid.Column="0"
|
|
Margin="0,0,0,0"
|
|
Panel.ZIndex="1"
|
|
Background="#f3f3f3"
|
|
IsItemsHost="True" />
|
|
<Border Grid.Column="1"
|
|
BorderBrush="Black"
|
|
BorderThickness="0"
|
|
CornerRadius="0">
|
|
<ContentPresenter Grid.Column="1" ContentSource="SelectedContent" />
|
|
</Border>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
</Window.Resources>
|
|
|
|
|
|
<TabControl Height="auto"
|
|
Background="#f3f3f3"
|
|
SelectedIndex="1"
|
|
TabStripPlacement="Left">
|
|
<TabItem Style="{DynamicResource logo}">
|
|
<TabItem.Header>
|
|
<Grid Margin="0,18,0,0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="50" />
|
|
<RowDefinition Height="27" />
|
|
<RowDefinition Height="25" />
|
|
</Grid.RowDefinitions>
|
|
<Image Grid.Row="0"
|
|
Width="50"
|
|
Height="50"
|
|
Source="images/app.png" />
|
|
<TextBlock Grid.Row="1"
|
|
Margin="0,12,0,0"
|
|
Text="Flow Launcher"
|
|
TextAlignment="center" />
|
|
<TextBlock Grid.Row="2"
|
|
Margin="0,5,0,0"
|
|
FontSize="12"
|
|
Text="{Binding Version}"
|
|
TextAlignment="center" />
|
|
</Grid>
|
|
</TabItem.Header>
|
|
</TabItem>
|
|
<TabItem>
|
|
<!-- LEFT TAB WIDTH -->
|
|
<TabItem.Header>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0"
|
|
Margin="0,0,12,0"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
<TextBlock Grid.Column="1" Text="{DynamicResource general}" />
|
|
</Grid>
|
|
</TabItem.Header>
|
|
|
|
<ScrollViewer Margin="0,0,0,0" Background="#f3f3f3" ScrollViewer.CanContentScroll="False">
|
|
<StackPanel Margin="5,18,25,30" Orientation="Vertical">
|
|
<TextBlock Grid.Row="2"
|
|
Margin="0,5,0,5"
|
|
FontSize="30"
|
|
Text="{DynamicResource general}"
|
|
TextAlignment="left" />
|
|
|
|
<Border Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource startFlowLauncherOnSystemStartup}" />
|
|
</StackPanel>
|
|
<CheckBox Checked="OnAutoStartupChecked"
|
|
IsChecked="{Binding Settings.StartFlowLauncherOnSystemStartup}"
|
|
Style="{DynamicResource SideControlCheckBox}"
|
|
Unchecked="OnAutoStartupUncheck" />
|
|
<TextBlock Grid.Column="0"
|
|
Margin="24,0,16,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
</ItemsControl>
|
|
</Border>
|
|
|
|
<Border Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource hideOnStartup}" />
|
|
</StackPanel>
|
|
<CheckBox IsChecked="{Binding Settings.HideOnStartup}" Style="{DynamicResource SideControlCheckBox}" />
|
|
<TextBlock Grid.Column="0"
|
|
Margin="24,0,16,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
</ItemsControl>
|
|
</Border>
|
|
|
|
<Border Margin="0,30,0,0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource hideFlowLauncherWhenLoseFocus}" />
|
|
</StackPanel>
|
|
<CheckBox IsChecked="{Binding Settings.HideWhenDeactive}" Style="{DynamicResource SideControlCheckBox}" />
|
|
</ItemsControl>
|
|
</Border>
|
|
|
|
|
|
<Border Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource hideNotifyIcon}" />
|
|
</StackPanel>
|
|
<CheckBox IsChecked="{Binding Settings.HideNotifyIcon}" Style="{DynamicResource SideControlCheckBox}" />
|
|
</ItemsControl>
|
|
</Border>
|
|
|
|
<Border Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource rememberLastLocation}" />
|
|
</StackPanel>
|
|
<CheckBox IsChecked="{Binding Settings.RememberLastLaunchLocation}" Style="{DynamicResource SideControlCheckBox}" />
|
|
</ItemsControl>
|
|
</Border>
|
|
|
|
<Border Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource ignoreHotkeysOnFullscreen}" />
|
|
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource ignoreHotkeysOnFullscreenToolTip}" />
|
|
</StackPanel>
|
|
<CheckBox IsChecked="{Binding Settings.IgnoreHotkeysOnFullscreen}" Style="{DynamicResource SideControlCheckBox}" />
|
|
<TextBlock Grid.Column="0"
|
|
Margin="24,0,16,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
</ItemsControl>
|
|
</Border>
|
|
|
|
<Border Margin="0,30,0,0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource ShouldUsePinyin}" />
|
|
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource ShouldUsePinyinToolTip}" />
|
|
</StackPanel>
|
|
<CheckBox IsChecked="{Binding Settings.ShouldUsePinyin}" Style="{DynamicResource SideControlCheckBox}" ToolTip="{DynamicResource ShouldUsePinyinToolTip}" />
|
|
<TextBlock Grid.Column="0"
|
|
Margin="24,0,16,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
</ItemsControl>
|
|
</Border>
|
|
|
|
<Border Margin="0,30,0,0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource autoUpdates}" />
|
|
</StackPanel>
|
|
<ui:ToggleSwitch Grid.Column="2"
|
|
Width="100"
|
|
FocusVisualMargin="5"
|
|
IsOn="{Binding AutoUpdates}"
|
|
Style="{DynamicResource SideToggleSwitch}" />
|
|
<TextBlock Grid.Column="0"
|
|
Margin="24,0,16,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
</ItemsControl>
|
|
</Border>
|
|
|
|
<Border Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource portableMode}" />
|
|
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource portableModeToolTIp}" />
|
|
</StackPanel>
|
|
<ui:ToggleSwitch Grid.Column="2"
|
|
Width="100"
|
|
FocusVisualMargin="5"
|
|
IsOn="{Binding PortableMode}"
|
|
Style="{DynamicResource SideToggleSwitch}" />
|
|
<TextBlock Grid.Column="0"
|
|
Margin="24,0,16,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
</ItemsControl>
|
|
</Border>
|
|
|
|
<Border Margin="0,30,0,0"
|
|
Padding="0"
|
|
CornerRadius="5"
|
|
Style="{DynamicResource SettingGroupBox}">
|
|
<StackPanel Orientation="Vertical">
|
|
<Border Margin="0" BorderThickness="0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Grid.Column="1" VerticalAlignment="Center" Text="{DynamicResource querySearchPrecision}" />
|
|
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource querySearchPrecisionToolTip}" />
|
|
</StackPanel>
|
|
<ComboBox Grid.Column="2"
|
|
MaxWidth="200"
|
|
Margin="10,0,18,0"
|
|
ItemsSource="{Binding QuerySearchPrecisionStrings}"
|
|
SelectedItem="{Binding Settings.QuerySearchPrecisionString}" />
|
|
</ItemsControl>
|
|
</Border>
|
|
<Separator Width="Auto" BorderBrush="#e5e5e5" BorderThickness="1" />
|
|
<Border Margin="0" BorderThickness="0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Grid.Column="1" VerticalAlignment="Center" Text="{DynamicResource lastQueryMode}" />
|
|
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource lastQueryModeToolTip}" />
|
|
</StackPanel>
|
|
<ComboBox Grid.Column="2"
|
|
MaxWidth="200"
|
|
Margin="10,0,18,0"
|
|
DisplayMemberPath="Display"
|
|
ItemsSource="{Binding LastQueryModes}"
|
|
SelectedValue="{Binding Settings.LastQueryMode}"
|
|
SelectedValuePath="Value" />
|
|
</ItemsControl>
|
|
</Border>
|
|
<Separator Width="Auto" BorderBrush="#e5e5e5" BorderThickness="1" />
|
|
<Border Margin="0" BorderThickness="0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<TextBlock Grid.Column="1" VerticalAlignment="Center" Text="{DynamicResource maxShowResults}" />
|
|
<ComboBox Grid.Column="2"
|
|
Width="100"
|
|
Margin="10,0,18,0"
|
|
HorizontalContentAlignment="Center"
|
|
ItemsSource="{Binding MaxResultsRange}"
|
|
SelectedItem="{Binding Settings.MaxResultsToShow}" />
|
|
<TextBlock Grid.Column="0"
|
|
Margin="24,0,16,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
</ItemsControl>
|
|
</Border>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<Border Margin="0,30,0,0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Grid.Column="1" VerticalAlignment="Center" Text="{DynamicResource defaultFileManager}" />
|
|
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource defaultFileManagerToolTip}" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal">
|
|
<Button Width="160"
|
|
MaxWidth="250"
|
|
Margin="10,0,18,0"
|
|
Click="OnSelectFileManagerClick"
|
|
Content="{Binding Settings.CustomExplorer.Name}" />
|
|
</StackPanel>
|
|
|
|
<TextBlock Grid.Column="0"
|
|
Margin="24,0,16,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
</ItemsControl>
|
|
</Border>
|
|
<Separator Width="Auto" BorderBrush="#e5e5e5" BorderThickness="1" />
|
|
<Border Margin="0,0,0,0" BorderThickness="0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Grid.Column="1" VerticalAlignment="Center" Text="{DynamicResource defaultBrowser}" />
|
|
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource defaultBrowserToolTip}" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal">
|
|
<Button Width="160"
|
|
MaxWidth="250"
|
|
Margin="10,0,18,0"
|
|
Click="OnSelectDefaultBrowserClick"
|
|
Content="{Binding Settings.CustomBrowser.Name}" />
|
|
</StackPanel>
|
|
<TextBlock Grid.Column="0"
|
|
Margin="24,0,16,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
</ItemsControl>
|
|
</Border>
|
|
|
|
|
|
<Border Margin="0,30,0,0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource pythonDirectory}" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal">
|
|
<TextBox Width="300" Height="34" Text="{Binding Settings.PluginSettings.PythonDirectory, TargetNullValue='No Setting'}" />
|
|
<Button Height="34"
|
|
Margin="10,10,18,10"
|
|
Click="OnSelectPythonDirectoryClick"
|
|
Content="{DynamicResource selectPythonDirectory}" />
|
|
</StackPanel>
|
|
</ItemsControl>
|
|
</Border>
|
|
|
|
<Border Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource language}" />
|
|
</StackPanel>
|
|
<ComboBox Grid.Column="2"
|
|
MaxWidth="200"
|
|
Margin="10,0,16,0"
|
|
DisplayMemberPath="Display"
|
|
ItemsSource="{Binding Languages}"
|
|
SelectedValue="{Binding Language}"
|
|
SelectedValuePath="LanguageCode" />
|
|
</ItemsControl>
|
|
</Border>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
<TabItem>
|
|
<TabItem.Header>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0"
|
|
Margin="0,0,12,0"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
<TextBlock Grid.Column="1" Text="{DynamicResource plugin}" />
|
|
</Grid>
|
|
</TabItem.Header>
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="73" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0" Padding="5,18,0,0" Background="#f3f3f3">
|
|
<TextBlock Margin="0,5,0,0"
|
|
FontSize="30"
|
|
Text="{DynamicResource plugin}"
|
|
TextAlignment="left" />
|
|
</Border>
|
|
<Border Grid.Row="1"
|
|
Grid.Column="0"
|
|
Padding="0,0,0,0"
|
|
Background="#f3f3f3">
|
|
<ListBox Width="Auto"
|
|
Margin="5,0,0,0"
|
|
Padding="0,0,7,0"
|
|
HorizontalAlignment="Stretch"
|
|
ItemContainerStyle="{StaticResource PluginList}"
|
|
ItemsSource="{Binding PluginViewModels}"
|
|
ScrollViewer.CanContentScroll="False"
|
|
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
|
SelectedItem="{Binding SelectedPlugin}"
|
|
SnapsToDevicePixels="True">
|
|
<ListBox.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Margin="0,0,0,18" />
|
|
</ItemsPanelTemplate>
|
|
</ListBox.ItemsPanel>
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Expander x:Name="expanderHeader"
|
|
Grid.Column="4"
|
|
Padding="0"
|
|
Background="Transparent"
|
|
FlowDirection="RightToLeft"
|
|
IsExpanded="{Binding Mode=TwoWay, Path=IsSelected, RelativeSource={RelativeSource AncestorType=ListBoxItem, Mode=FindAncestor}}"
|
|
Style="{StaticResource ExpanderStyle1}">
|
|
<Expander.Header>
|
|
<Grid Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Expander}}, Path=ActualWidth}" HorizontalAlignment="Left" FlowDirection="LeftToRight">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="100" MinWidth="100" />
|
|
<ColumnDefinition Width="*" MinWidth="350" MaxWidth="700" />
|
|
<ColumnDefinition MaxWidth="1400" />
|
|
<ColumnDefinition Width="100" />
|
|
<ColumnDefinition Width="90" />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Grid.Column="0"
|
|
Margin="24,0,0,0"
|
|
VerticalAlignment="Center"
|
|
FlowDirection="LeftToRight">
|
|
<Image Width="32"
|
|
Height="32"
|
|
Margin="32,0,0,0"
|
|
FlowDirection="LeftToRight"
|
|
RenderOptions.BitmapScalingMode="HighQuality"
|
|
Source="{Binding Image, IsAsync=True}"
|
|
Stretch="Uniform" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="1" Margin="12,0,14,0">
|
|
<TextBlock Text="{Binding PluginPair.Metadata.Name}" TextWrapping="Wrap" ToolTip="{Binding PluginPair.Metadata.Version}" />
|
|
<TextBlock Margin="0,2,0,0" Foreground="#5f5f5f" TextWrapping="WrapWithOverflow">
|
|
<Run FontSize="12" Text="{Binding PluginPair.Metadata.Description}" />
|
|
</TextBlock>
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="3" Orientation="Horizontal">
|
|
<TextBlock MaxWidth="100"
|
|
Margin="0,0,8,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="12"
|
|
Text="{DynamicResource priority}" />
|
|
<Border>
|
|
<Button x:Name="PriorityButton"
|
|
Margin="0,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Click="OnPluginPriorityClick"
|
|
Content="{Binding Priority, UpdateSourceTrigger=PropertyChanged}"
|
|
Cursor="Hand"
|
|
ToolTip="Change Plugin Results Priority">
|
|
<!--#region Priority Button Style-->
|
|
<Button.Resources>
|
|
<Style TargetType="Border">
|
|
<Setter Property="CornerRadius" Value="2" />
|
|
</Style>
|
|
</Button.Resources>
|
|
<Button.Style>
|
|
<Style BasedOn="{StaticResource DefaultButtonStyle}" TargetType="Button">
|
|
<Setter Property="Padding" Value="12,8,12,8" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="FontWeight" Value="DemiBold" />
|
|
<Setter Property="Foreground" Value="Black" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding ElementName=PriorityButton, UpdateSourceTrigger=PropertyChanged, Path=Content}" Value="0">
|
|
<Setter Property="Foreground" Value="#878787" />
|
|
<Setter Property="FontWeight" Value="Normal" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Button.Style>
|
|
<!--#endregion-->
|
|
</Button>
|
|
</Border>
|
|
</StackPanel>
|
|
<ui:ToggleSwitch Grid.Column="4"
|
|
MaxWidth="110"
|
|
HorizontalAlignment="Right"
|
|
IsOn="{Binding PluginState}"
|
|
OffContent="{DynamicResource disable}"
|
|
OnContent="{DynamicResource enable}" />
|
|
</Grid>
|
|
|
|
</Expander.Header>
|
|
|
|
<Grid FlowDirection="LeftToRight">
|
|
<StackPanel Margin="0,12,0,0" Orientation="Vertical">
|
|
<StackPanel>
|
|
<Border Width="auto"
|
|
Height="52"
|
|
Padding="0"
|
|
BorderThickness="0,1,0,0"
|
|
CornerRadius="0"
|
|
Style="{DynamicResource SettingGroupBox}"
|
|
Visibility="{Binding ActionKeywordsVisibility}">
|
|
<ItemsControl Padding="22,0,18,0" VerticalAlignment="Center">
|
|
<DockPanel>
|
|
<TextBlock Margin="48,0,10,0"
|
|
VerticalAlignment="Center"
|
|
DockPanel.Dock="Left"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
<TextBlock Grid.Column="0"
|
|
Margin="0,0,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
DockPanel.Dock="Left"
|
|
Style="{DynamicResource SettingTitleLabel}"
|
|
Text="{DynamicResource actionKeywords}" />
|
|
|
|
|
|
<Button Grid.Column="2"
|
|
Width="100"
|
|
Height="34"
|
|
Margin="5,0,0,0"
|
|
HorizontalAlignment="Right"
|
|
Click="OnPluginActionKeywordsClick"
|
|
Content="{Binding ActionKeywordsText}"
|
|
Cursor="Hand"
|
|
DockPanel.Dock="Right"
|
|
FontWeight="Bold"
|
|
ToolTip="Change Action Keywords"
|
|
Visibility="{Binding ActionKeywordsVisibility}" />
|
|
</DockPanel>
|
|
|
|
</ItemsControl>
|
|
</Border>
|
|
</StackPanel>
|
|
|
|
<StackPanel>
|
|
|
|
|
|
<Border Padding="0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
Background="White"
|
|
BorderBrush="#e6e6e6"
|
|
BorderThickness="0,1,0,0">
|
|
<!--#region SubInfo Styling-->
|
|
<Border.Style>
|
|
<Style TargetType="{x:Type Border}">
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding ElementName=PluginSettingControl, Path=ActualHeight}" Value="0">
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="Padding" Value="0" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Border.Style>
|
|
</Border>
|
|
<!--#endregion-->
|
|
<ContentControl x:Name="PluginSettingControl"
|
|
MaxWidth="750"
|
|
MaxHeight="550"
|
|
Margin="0"
|
|
Padding="1"
|
|
VerticalAlignment="Stretch"
|
|
Content="{Binding SettingControl}" />
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel>
|
|
<Border Margin="0"
|
|
Padding="0,12,0,0"
|
|
VerticalAlignment="Center"
|
|
BorderThickness="0,1,0,0"
|
|
CornerRadius="0"
|
|
Style="{DynamicResource SettingGroupBox}"
|
|
Visibility="{Binding ActionKeywordsVisibility}">
|
|
<ItemsControl Style="{DynamicResource SettingGrid}">
|
|
<StackPanel Margin="0,0,-14,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal"
|
|
Style="{StaticResource TextPanel}">
|
|
<TextBlock MaxWidth="100"
|
|
Margin="10,0,0,0"
|
|
FontSize="11"
|
|
Foreground="#8F8F8F"
|
|
Text="{DynamicResource author}" />
|
|
<TextBlock MaxWidth="100"
|
|
Margin="5,0,0,0"
|
|
FontSize="11"
|
|
Foreground="#8F8F8F"
|
|
Text="{Binding PluginPair.Metadata.Author}" />
|
|
<TextBlock MaxWidth="100"
|
|
Margin="5,0,0,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="11"
|
|
Foreground="#8F8F8F"
|
|
Text="|" />
|
|
<TextBlock MaxWidth="100"
|
|
Margin="5,0,0,0"
|
|
FontSize="11"
|
|
Foreground="#8F8F8F"
|
|
Text="{DynamicResource plugin_init_time}" />
|
|
<TextBlock MaxWidth="100"
|
|
Margin="5,0,0,0"
|
|
FontSize="11"
|
|
Foreground="#8F8F8F"
|
|
Text="{Binding InitilizaTime}" />
|
|
<TextBlock MaxWidth="100"
|
|
Margin="5,0,0,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="11"
|
|
Foreground="#8F8F8F"
|
|
Text="|" />
|
|
<TextBlock MaxWidth="100"
|
|
Margin="5,0,0,0"
|
|
FontSize="11"
|
|
Foreground="#8F8F8F"
|
|
Text="{DynamicResource plugin_query_time}" />
|
|
<TextBlock MaxWidth="100"
|
|
Margin="5,0,0,0"
|
|
FontSize="11"
|
|
Foreground="#8F8F8F"
|
|
Text="{Binding QueryTime}" />
|
|
<TextBlock MaxWidth="100"
|
|
Margin="5,0,0,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="11"
|
|
Foreground="#8F8F8F"
|
|
Text="| version" />
|
|
<TextBlock MaxWidth="100"
|
|
Margin="5,0,0,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="11"
|
|
Foreground="#8F8F8F"
|
|
Text="{Binding PluginPair.Metadata.Version}" />
|
|
|
|
<TextBlock MaxWidth="120"
|
|
Margin="10,0,0,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Cursor="Hand"
|
|
FontSize="12">
|
|
<Hyperlink Foreground="#8F8F8F" NavigateUri="{Binding PluginPair.Metadata.Website}" RequestNavigate="OnRequestNavigate">
|
|
<Run Text="Website" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
|
|
<TextBlock MaxWidth="120"
|
|
Margin="10,0,0,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Cursor="Hand"
|
|
FontSize="12"
|
|
Foreground="#8f8f8f"
|
|
MouseUp="OnPluginDirecotyClick"
|
|
Text="{DynamicResource pluginDirectory}"
|
|
TextDecorations="Underline" />
|
|
</StackPanel>
|
|
|
|
</ItemsControl>
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Expander>
|
|
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</Border>
|
|
|
|
</Grid>
|
|
</TabItem>
|
|
|
|
<!--#region Plugin Store-->
|
|
<TabItem>
|
|
<TabItem.Header>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0"
|
|
Margin="0,0,12,0"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
<TextBlock Grid.Column="1" Text="{DynamicResource pluginStore}" />
|
|
</Grid>
|
|
</TabItem.Header>
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="72" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0"
|
|
Grid.Column="0"
|
|
Padding="5,18,0,0"
|
|
Background="#f3f3f3">
|
|
<TextBlock Margin="0,5,0,5"
|
|
FontSize="30"
|
|
Text="{DynamicResource pluginStore}"
|
|
TextAlignment="left" />
|
|
</Border>
|
|
<Border Grid.Row="0"
|
|
Grid.Column="1"
|
|
Padding="5,18,32,0"
|
|
Background="#f3f3f3">
|
|
<Button Height="34"
|
|
Margin="0,5,0,5"
|
|
Padding="12,4,12,4"
|
|
HorizontalAlignment="Right"
|
|
Background="#ffffff"
|
|
BorderBrush="#cecece"
|
|
BorderThickness="1,1,1,2"
|
|
Click="OnPluginStoreRefreshClick"
|
|
Content="{DynamicResource refresh}"
|
|
FontSize="13" />
|
|
</Border>
|
|
<Border Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Padding="0,0,0,0"
|
|
Background="#f3f3f3">
|
|
<ListBox x:Name="StoreListBox"
|
|
Width="Auto"
|
|
Margin="6,0,0,0"
|
|
Padding="0,0,0,0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalContentAlignment="Center"
|
|
ItemContainerStyle="{StaticResource StoreList}"
|
|
ItemsSource="{Binding ExternalPlugins}"
|
|
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
|
SelectionMode="Single">
|
|
<ListBox.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<UniformGrid Margin="0,0,6,18"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Columns="2"
|
|
IsItemsHost="True"
|
|
SnapsToDevicePixels="True" />
|
|
</ItemsPanelTemplate>
|
|
</ListBox.ItemsPanel>
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<!-- Hover Layout Style -->
|
|
|
|
<ToggleButton Width="{Binding ActualWidth, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}}"
|
|
HorizontalAlignment="Left"
|
|
HorizontalContentAlignment="left"
|
|
Background="Transparent"
|
|
IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}, Path=IsSelected}"
|
|
Style="{StaticResource StoreItem}">
|
|
<ToggleButton.Template>
|
|
<ControlTemplate TargetType="{x:Type ButtonBase}">
|
|
<ContentPresenter x:Name="contentPresenter"
|
|
Margin="{TemplateBinding Padding}"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Content="{TemplateBinding Content}"
|
|
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
Focusable="False"
|
|
RecognizesAccessKey="True"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
<ControlTemplate.Triggers />
|
|
</ControlTemplate>
|
|
</ToggleButton.Template>
|
|
|
|
<Grid HorizontalAlignment="Left" VerticalAlignment="Stretch">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="72" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Grid.Column="0" Margin="0,0,0,0" VerticalAlignment="Center">
|
|
<StackPanel.Style>
|
|
<Style>
|
|
<Setter Property="StackPanel.Visibility" Value="Visible" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding Mode=TwoWay, Path=IsSelected, RelativeSource={RelativeSource AncestorType=ListBoxItem, Mode=FindAncestor}}" Value="true">
|
|
<Setter Property="StackPanel.Opacity" Value="1" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</StackPanel.Style>
|
|
|
|
<Border Margin="8,0,0,0">
|
|
<Image Width="32"
|
|
Height="32"
|
|
Margin="0,0,0,0"
|
|
VerticalAlignment="Center"
|
|
RenderOptions.BitmapScalingMode="HighQuality"
|
|
Source="{Binding IcoPath, IsAsync=True}"
|
|
Stretch="Uniform" />
|
|
</Border>
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="1"
|
|
Margin="0,0,8,0"
|
|
VerticalAlignment="Center"
|
|
Panel.ZIndex="0">
|
|
<StackPanel.Style>
|
|
<Style>
|
|
<Setter Property="StackPanel.Visibility" Value="Visible" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding Mode=TwoWay, Path=IsSelected, RelativeSource={RelativeSource AncestorType=ListBoxItem, Mode=FindAncestor}}" Value="true">
|
|
<Setter Property="StackPanel.Opacity" Value="1" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</StackPanel.Style>
|
|
<TextBlock Padding="0,0,20,0"
|
|
Text="{Binding Name}"
|
|
TextWrapping="WrapWithOverflow"
|
|
ToolTip="{Binding Version}" />
|
|
<TextBlock Margin="0,2,0,0"
|
|
Padding="0,0,20,0"
|
|
Foreground="#5f5f5f"
|
|
TextWrapping="WrapWithOverflow">
|
|
<Run FontSize="12" Foreground="#5f5f5f" Text="{Binding Description}" />
|
|
</TextBlock>
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch">
|
|
<StackPanel.Style>
|
|
<Style>
|
|
<Setter Property="StackPanel.Visibility" Value="Collapsed" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding Mode=TwoWay, Path=IsSelected, RelativeSource={RelativeSource AncestorType=ListBoxItem, Mode=FindAncestor}}" Value="true">
|
|
<Setter Property="StackPanel.Visibility" Value="Visible" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</StackPanel.Style>
|
|
|
|
|
|
<Grid Height="94"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Panel.ZIndex="1">
|
|
<Grid.Background>
|
|
<SolidColorBrush Opacity=".95" Color="#f6f6f6" />
|
|
</Grid.Background>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="{Binding ActualWidth, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}}" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<StackPanel Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Center">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Margin="20,0,0,0"
|
|
Padding="0,0,0,0"
|
|
FontWeight="Bold"
|
|
Text="{Binding Name}"
|
|
TextWrapping="WrapWithOverflow"
|
|
ToolTip="{Binding Name}" />
|
|
<TextBlock Margin="10,0,0,0"
|
|
Padding="0,0,20,0"
|
|
Text="{Binding Version}"
|
|
TextWrapping="WrapWithOverflow"
|
|
ToolTip="{Binding Version}" />
|
|
</StackPanel>
|
|
<StackPanel Margin="20,2,120,0" Orientation="Vertical">
|
|
<TextBlock Padding="0,0,0,0" TextWrapping="Wrap">
|
|
<Hyperlink Foreground="#5F5F5F" NavigateUri="{Binding Website}" RequestNavigate="OnRequestNavigate">
|
|
<Run FontSize="12" Text="{Binding Author}" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<Border Padding="0,0,20,0">
|
|
<Button Name="ShortCutButtonPrev"
|
|
Grid.Column="1"
|
|
Width="90"
|
|
MinHeight="40"
|
|
Margin="0,0,0,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Click="OnExternalPluginInstallClick"
|
|
Content="{DynamicResource install}"
|
|
Foreground="Black" />
|
|
</Border>
|
|
</Grid>
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
</ToggleButton>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</Border>
|
|
|
|
</Grid>
|
|
</TabItem>
|
|
<!--#endregion-->
|
|
|
|
<TabItem>
|
|
<TabItem.Header>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0"
|
|
Margin="0,0,12,0"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
<TextBlock Grid.Column="1" Text="{DynamicResource theme}" />
|
|
</Grid>
|
|
</TabItem.Header>
|
|
<Border Padding="0,0,0,0">
|
|
<ScrollViewer Margin="0,0,0,0"
|
|
Padding="6,0,24,0"
|
|
Background="#f3f3f3"
|
|
ScrollViewer.CanContentScroll="False">
|
|
<Grid Margin="0,0,0,0" Background="#f3f3f3">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0" />
|
|
<RowDefinition Height="350" />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0" Padding="5,18,0,0">
|
|
<TextBlock Margin="0,5,0,5"
|
|
FontSize="30"
|
|
Text="{DynamicResource theme}"
|
|
TextAlignment="left" />
|
|
</Border>
|
|
|
|
<StackPanel Grid.Row="1" Margin="0" Background="{Binding PreviewBackground}">
|
|
<StackPanel Margin="0,30,0,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Border Width="{Binding WindowWidthSize}" Style="{DynamicResource WindowBorderStyle}">
|
|
<Border Style="{DynamicResource WindowRadius}">
|
|
<Border.Clip>
|
|
<MultiBinding Converter="{StaticResource BorderClipConverter}">
|
|
<Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}" />
|
|
<Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}" />
|
|
<Binding Path="CornerRadius" RelativeSource="{RelativeSource Self}" />
|
|
</MultiBinding>
|
|
</Border.Clip>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="54" />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0">
|
|
<TextBox IsReadOnly="True" Style="{DynamicResource QueryBoxStyle}" Text="{DynamicResource hiThere}" />
|
|
|
|
</Border>
|
|
<Canvas Style="{DynamicResource SearchIconPosition}">
|
|
<Path Margin="0"
|
|
Data="{DynamicResource SearchIconImg}"
|
|
Stretch="Fill"
|
|
Style="{DynamicResource SearchIconStyle}" />
|
|
</Canvas>
|
|
|
|
<Border Grid.Row="1" Margin="0,0,0,0">
|
|
<Rectangle Width="Auto"
|
|
HorizontalAlignment="Stretch"
|
|
Style="{DynamicResource SeparatorStyle}"
|
|
Visibility="Visible" />
|
|
</Border>
|
|
|
|
<ContentControl Grid.Row="2">
|
|
<flowlauncher:ResultListBox DataContext="{Binding PreviewResults, Mode=OneTime}" Visibility="Visible" />
|
|
</ContentControl>
|
|
|
|
</Grid>
|
|
</Border>
|
|
</Border>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="2" VerticalAlignment="Top">
|
|
<Border Margin="0,12,0,0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource queryWindowShadowEffect}" />
|
|
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource shadowEffectCPUUsage}" />
|
|
</StackPanel>
|
|
<ui:ToggleSwitch Grid.Row="0"
|
|
Grid.Column="2"
|
|
Width="100"
|
|
Margin="0,0,2,0"
|
|
IsOn="{Binding DropShadowEffect, Mode=TwoWay}" />
|
|
<TextBlock Grid.Column="0"
|
|
Margin="24,0,16,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
</ItemsControl>
|
|
</Border>
|
|
<Border Margin="0,8,0,0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource windowWidthSize}" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal">
|
|
<TextBlock Width="100"
|
|
Margin="0,0,8,2"
|
|
VerticalAlignment="Center"
|
|
Text="{Binding ElementName=WindowWidthValue, Path=Value, UpdateSourceTrigger=PropertyChanged}"
|
|
TextAlignment="Right" />
|
|
<Slider Name="WindowWidthValue"
|
|
Width="300"
|
|
Margin="0,0,18,0"
|
|
IsMoveToPointEnabled="True"
|
|
IsSnapToTickEnabled="True"
|
|
Maximum="900"
|
|
Minimum="400"
|
|
TickFrequency="10"
|
|
Value="{Binding WindowWidthSize, Mode=TwoWay}" />
|
|
</StackPanel>
|
|
<TextBlock Grid.Column="0"
|
|
Margin="24,0,16,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
</ItemsControl>
|
|
</Border>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="3">
|
|
<Border Margin="0,8,0,0"
|
|
Padding="0"
|
|
HorizontalAlignment="Stretch"
|
|
Style="{DynamicResource SettingGroupBox}">
|
|
<ListBox Margin="12,12,12,12"
|
|
HorizontalAlignment="Center"
|
|
HorizontalContentAlignment="Center"
|
|
ui:ScrollViewerHelper.AutoHideScrollBars="True"
|
|
Background="#ffffff"
|
|
ItemsSource="{Binding Themes}"
|
|
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
|
ScrollViewer.VerticalScrollBarVisibility="Disabled"
|
|
SelectedItem="{Binding SelectedTheme}">
|
|
<ListBox.ItemContainerStyle>
|
|
<Style TargetType="ListBoxItem">
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
|
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
|
<Setter Property="Padding" Value="0,0,0,0" />
|
|
<Setter Property="Margin" Value="4" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ListBoxItem}">
|
|
<Border x:Name="Bd"
|
|
Padding="{TemplateBinding Padding}"
|
|
Background="#fefefe"
|
|
BorderBrush="#e5e5e5"
|
|
BorderThickness="1,1,1,0"
|
|
CornerRadius="4"
|
|
SnapsToDevicePixels="true">
|
|
<Border x:Name="Bd2"
|
|
BorderBrush="#d3d3d3"
|
|
BorderThickness="0,0,0,2"
|
|
CornerRadius="4">
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
<Setter TargetName="Bd" Property="Background" Value="#f6f6f6" />
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="true">
|
|
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource ToggleSwitchFillOn}" />
|
|
<Setter TargetName="Bd2" Property="BorderThickness" Value="0" />
|
|
<Setter TargetName="Bd2" Property="TextElement.Foreground" Value="#ffffff" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ListBox.ItemContainerStyle>
|
|
<ListBox.Template>
|
|
<!-- For Scroll Wheel inside listbox area -->
|
|
<ControlTemplate>
|
|
<ItemsPresenter />
|
|
</ControlTemplate>
|
|
</ListBox.Template>
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid Width="Auto" Height="34" Margin="0,0,0,0">
|
|
<TextBlock Margin="0"
|
|
Padding="14,12,14,12"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Focusable="True"
|
|
FontSize="12"
|
|
Text="{Binding}"
|
|
TextWrapping="Wrap" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
<ListBox.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<WrapPanel />
|
|
</ItemsPanelTemplate>
|
|
</ListBox.ItemsPanel>
|
|
</ListBox>
|
|
|
|
</Border>
|
|
<Border>
|
|
<TextBlock Margin="10" HorizontalAlignment="Right" DockPanel.Dock="Top">
|
|
<Hyperlink NavigateUri="{Binding Theme, Mode=OneWay}" RequestNavigate="OnRequestNavigate">
|
|
<Run Text="{DynamicResource howToCreateTheme}" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
</Border>
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Grid.Row="4" Margin="0,0,0,10" Orientation="Vertical">
|
|
|
|
<Border Margin="0,30,0,0"
|
|
Padding="0"
|
|
CornerRadius="5"
|
|
Style="{DynamicResource SettingGroupBox}">
|
|
<StackPanel Orientation="Vertical">
|
|
<Border Margin="0" BorderThickness="0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource useGlyphUI}" />
|
|
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource useGlyphUIEffect}" />
|
|
</StackPanel>
|
|
<ui:ToggleSwitch Grid.Row="0"
|
|
Grid.Column="2"
|
|
Width="100"
|
|
Margin="0,0,2,0"
|
|
IsOn="{Binding UseGlyphIcons, Mode=TwoWay}" />
|
|
<TextBlock Grid.Column="0"
|
|
Margin="24,0,16,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
</ItemsControl>
|
|
</Border>
|
|
<Separator Width="Auto" BorderBrush="#e5e5e5" BorderThickness="1" />
|
|
<Border Margin="0" BorderThickness="0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<TextBlock Grid.Column="1" VerticalAlignment="Center" Text="{DynamicResource queryBoxFont}" />
|
|
<StackPanel Grid.Column="2" Margin="0,0,20,0" Orientation="Horizontal">
|
|
<ComboBox Width="180"
|
|
Margin="20,0,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
ItemsSource="{Binding Source={StaticResource SortedFonts}}"
|
|
SelectedItem="{Binding SelectedQueryBoxFont}" />
|
|
<ComboBox Width="130"
|
|
Margin="10,0,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
ItemsSource="{Binding SelectedQueryBoxFont.FamilyTypefaces}"
|
|
SelectedItem="{Binding SelectedQueryBoxFontFaces}">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<ItemsControl ItemsSource="{Binding AdjustedFaceNames}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Value}" />
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
</StackPanel>
|
|
<TextBlock Grid.Column="0"
|
|
Margin="24,0,16,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
</ItemsControl>
|
|
</Border>
|
|
<Separator Width="Auto" BorderBrush="#e5e5e5" BorderThickness="1" />
|
|
<Border Margin="0" BorderThickness="0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<TextBlock Grid.Column="1" VerticalAlignment="Center" Text="{DynamicResource resultItemFont}" />
|
|
<StackPanel Grid.Column="2" Margin="0,0,20,0" Orientation="Horizontal">
|
|
<ComboBox Width="180"
|
|
Margin="20,-2,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
ItemsSource="{Binding Source={StaticResource SortedFonts}}"
|
|
SelectedItem="{Binding SelectedResultFont}" />
|
|
<ComboBox Width="130"
|
|
Margin="10,-2,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
ItemsSource="{Binding SelectedResultFont.FamilyTypefaces}"
|
|
SelectedItem="{Binding SelectedResultFontFaces}">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<ItemsControl ItemsSource="{Binding AdjustedFaceNames}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Value}" />
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
</StackPanel>
|
|
<TextBlock Grid.Column="0"
|
|
Margin="24,0,16,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
</ItemsControl>
|
|
</Border>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<StackPanel>
|
|
<Border Margin="0,12,0,18" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource ThemeFolder}" />
|
|
</StackPanel>
|
|
<Button Grid.Column="2"
|
|
Width="180"
|
|
Margin="0,0,18,0"
|
|
HorizontalAlignment="Center"
|
|
Click="OpenPluginFolder"
|
|
Content="{DynamicResource OpenThemeFolder}"
|
|
DockPanel.Dock="Top" />
|
|
<TextBlock Grid.Column="0"
|
|
Margin="24,0,16,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
</ItemsControl>
|
|
</Border>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</Border>
|
|
</TabItem>
|
|
|
|
|
|
<TabItem>
|
|
<TabItem.Header>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0"
|
|
Margin="0,0,12,0"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
<TextBlock Grid.Column="1" Text="{DynamicResource hotkey}" />
|
|
</Grid>
|
|
</TabItem.Header>
|
|
<ScrollViewer Margin="0,0,0,0"
|
|
Padding="0,0,6,0"
|
|
Background="#f3f3f3"
|
|
ScrollViewer.CanContentScroll="False">
|
|
<Border Background="#f3f3f3">
|
|
<Grid Margin="5,18,18,10">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="43" />
|
|
<RowDefinition Height="80" />
|
|
<RowDefinition Height="146" />
|
|
<RowDefinition Height="50" />
|
|
<RowDefinition Height="250" />
|
|
<RowDefinition Height="70" />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Grid.Row="0"
|
|
Margin="0,5,0,2"
|
|
FontSize="30"
|
|
Text="{DynamicResource hotkey}"
|
|
TextAlignment="left" />
|
|
|
|
<StackPanel Grid.Row="1">
|
|
<Border Margin="0,12,0,0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource flowlauncherHotkey}" />
|
|
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource flowlauncherHotkeyToolTip}" />
|
|
</StackPanel>
|
|
<flowlauncher:HotkeyControl x:Name="HotkeyControl"
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
Width="300"
|
|
Height="35"
|
|
Margin="0,0,0,0"
|
|
HorizontalAlignment="Right"
|
|
HorizontalContentAlignment="Right"
|
|
HotkeyChanged="OnHotkeyChanged"
|
|
Loaded="OnHotkeyControlLoaded" />
|
|
|
|
<TextBlock Grid.Column="0"
|
|
Margin="24,0,16,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
</ItemsControl>
|
|
</Border>
|
|
</StackPanel>
|
|
|
|
<Border Grid.Row="2"
|
|
Margin="0,12,0,0"
|
|
Padding="0"
|
|
CornerRadius="5"
|
|
Style="{DynamicResource SettingGroupBox}">
|
|
<StackPanel Orientation="Vertical">
|
|
<Border Margin="0" BorderThickness="0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Grid.Column="1" VerticalAlignment="Center" Text="{DynamicResource openResultModifiers}" />
|
|
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource openResultModifiersToolTip}" />
|
|
</StackPanel>
|
|
<ComboBox Grid.Column="2"
|
|
Width="120"
|
|
Margin="0,0,18,0"
|
|
FontSize="14"
|
|
ItemsSource="{Binding OpenResultModifiersList}"
|
|
SelectedItem="{Binding Settings.OpenResultModifiers}" />
|
|
</ItemsControl>
|
|
</Border>
|
|
|
|
<Separator Width="Auto" BorderBrush="#e5e5e5" BorderThickness="1" />
|
|
<Border Margin="0"
|
|
Padding="0,10,0,0"
|
|
BorderThickness="0"
|
|
Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<StackPanel Style="{StaticResource TextPanel}">
|
|
<TextBlock Grid.Column="1" VerticalAlignment="Center" Text="{DynamicResource showOpenResultHotkey}" />
|
|
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource showOpenResultHotkeyToolTip}" />
|
|
</StackPanel>
|
|
<CheckBox Grid.Column="2"
|
|
FontSize="14"
|
|
IsChecked="{Binding Settings.ShowOpenResultHotkey}"
|
|
Style="{DynamicResource SideControlCheckBox}" />
|
|
</ItemsControl>
|
|
</Border>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<TextBlock Grid.Row="3"
|
|
Margin="0,0,12,2"
|
|
Padding="0,12,0,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
Text="{DynamicResource customQueryHotkey}" />
|
|
<ListView Grid.Row="4"
|
|
Margin="0,0,0,0"
|
|
Background="#ffffff"
|
|
BorderBrush="DarkGray"
|
|
BorderThickness="1"
|
|
ItemsSource="{Binding Settings.CustomPluginHotkeys}"
|
|
SelectedItem="{Binding SelectedCustomPluginHotkey}"
|
|
Style="{StaticResource {x:Static GridView.GridViewStyleKey}}">
|
|
<ListView.View>
|
|
<GridView>
|
|
<GridViewColumn Width="180" Header="{DynamicResource hotkey}">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate DataType="userSettings:CustomPluginHotkey">
|
|
<TextBlock Text="{Binding Hotkey}" />
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn Width="540" Header="{DynamicResource customQuery}">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate DataType="userSettings:CustomPluginHotkey">
|
|
<TextBlock Text="{Binding ActionKeyword}" />
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
</GridView>
|
|
</ListView.View>
|
|
</ListView>
|
|
<StackPanel Grid.Row="5"
|
|
Width="350"
|
|
Margin="0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Top"
|
|
Orientation="Horizontal">
|
|
<Button Width="100"
|
|
Margin="10"
|
|
Click="OnDeleteCustomHotkeyClick"
|
|
Content="{DynamicResource delete}" />
|
|
<Button Width="100"
|
|
Margin="10"
|
|
Click="OnnEditCustomHotkeyClick"
|
|
Content="{DynamicResource edit}" />
|
|
<Button Width="100"
|
|
Margin="10,10,0,10"
|
|
Click="OnAddCustomeHotkeyClick"
|
|
Content="{DynamicResource add}" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
|
|
|
|
<TabItem>
|
|
<TabItem.Header>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0"
|
|
Margin="0,0,12,0"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
<TextBlock Grid.Column="1" Text="{DynamicResource proxy}" />
|
|
</Grid>
|
|
</TabItem.Header>
|
|
<ScrollViewer Margin="0,0,0,0"
|
|
Padding="5,0,24,0"
|
|
Background="#f3f3f3"
|
|
ScrollViewer.CanContentScroll="False">
|
|
<Border Background="#f3f3f3">
|
|
|
|
<StackPanel>
|
|
<Border Margin="0,18,0,0">
|
|
<TextBlock Grid.Row="0"
|
|
Margin="0,5,0,0"
|
|
FontSize="30"
|
|
Text="{DynamicResource proxy}"
|
|
TextAlignment="left" />
|
|
</Border>
|
|
|
|
|
|
<Border Margin="0,10,0,0"
|
|
Padding="0"
|
|
CornerRadius="5"
|
|
Style="{DynamicResource SettingGroupBox}">
|
|
<StackPanel Orientation="Vertical">
|
|
<Border Margin="0" BorderThickness="0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<TextBlock Grid.Column="1" VerticalAlignment="Center" Text="{DynamicResource enableProxy}" />
|
|
<CheckBox IsChecked="{Binding Settings.Proxy.Enabled}" Style="{DynamicResource SideControlCheckBox}" />
|
|
</ItemsControl>
|
|
</Border>
|
|
<Separator Width="Auto" BorderBrush="#e5e5e5" BorderThickness="1" />
|
|
<Border Margin="0" BorderThickness="0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<TextBlock Grid.Column="1"
|
|
Margin="22,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Text="{DynamicResource server}" />
|
|
<TextBox Grid.Column="2"
|
|
Width="300"
|
|
Margin="0,0,16,0"
|
|
Padding="5"
|
|
IsEnabled="{Binding Settings.Proxy.Enabled}"
|
|
Text="{Binding Settings.Proxy.Server}" />
|
|
</ItemsControl>
|
|
</Border>
|
|
<Separator Width="Auto" BorderBrush="#e5e5e5" BorderThickness="1" />
|
|
<Border Margin="0" BorderThickness="0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<TextBlock Grid.Column="1"
|
|
Margin="22,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Text="{DynamicResource port}" />
|
|
<TextBox Grid.Column="2"
|
|
Width="100"
|
|
Margin="0,0,16,0"
|
|
IsEnabled="{Binding Settings.Proxy.Enabled}"
|
|
Text="{Binding Settings.Proxy.Port, TargetNullValue={x:Static sys:String.Empty}}" />
|
|
</ItemsControl>
|
|
</Border>
|
|
<Separator Width="Auto" BorderBrush="#e5e5e5" BorderThickness="1" />
|
|
<Border Margin="0" BorderThickness="0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<TextBlock Grid.Column="1"
|
|
Margin="22,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Text="{DynamicResource userName}" />
|
|
<TextBox Grid.Column="2"
|
|
Width="200"
|
|
Margin="0,0,16,0"
|
|
Padding="5"
|
|
IsEnabled="{Binding Settings.Proxy.Enabled}"
|
|
Text="{Binding Settings.Proxy.UserName}" />
|
|
</ItemsControl>
|
|
</Border>
|
|
<Separator Width="Auto" BorderBrush="#e5e5e5" BorderThickness="1" />
|
|
<Border Margin="0" BorderThickness="0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<TextBlock Grid.Column="1"
|
|
Margin="22,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Text="{DynamicResource password}" />
|
|
<TextBox Grid.Column="2"
|
|
Width="200"
|
|
Margin="0,0,16,0"
|
|
Padding="5"
|
|
IsEnabled="{Binding Settings.Proxy.Enabled}"
|
|
Text="{Binding Settings.Proxy.Password}" />
|
|
</ItemsControl>
|
|
</Border>
|
|
</StackPanel>
|
|
</Border>
|
|
<Border Margin="0,12,0,0" Style="{DynamicResource SettingGroupBox}">
|
|
<ItemsControl Style="{StaticResource SettingGrid}">
|
|
<TextBlock Grid.Column="1" VerticalAlignment="Center" Text="{DynamicResource testProxy}" />
|
|
<Button Grid.Column="2"
|
|
Width="150"
|
|
Margin="0,0,16,0"
|
|
HorizontalAlignment="Right"
|
|
Click="OnTestProxyClick"
|
|
Content="{DynamicResource testProxy}"
|
|
IsEnabled="{Binding Settings.Proxy.Enabled}" />
|
|
</ItemsControl>
|
|
</Border>
|
|
</StackPanel>
|
|
</Border>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
<TabItem>
|
|
<TabItem.Header>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0"
|
|
Margin="0,0,12,0"
|
|
FontFamily="/Resources/#Segoe Fluent Icons"
|
|
FontSize="20">
|
|

|
|
</TextBlock>
|
|
<TextBlock Grid.Column="1" Text="{DynamicResource about}" />
|
|
</Grid>
|
|
</TabItem.Header>
|
|
<Border Background="#f3f3f3">
|
|
<Grid Height="400" Margin="65,0">
|
|
<!--<TextBlock Text="{DynamicResource about}" Grid.Row="0" TextAlignment="left" FontSize="30" Margin="0 5 0 5"/> -->
|
|
<Grid.Resources>
|
|
<Style TargetType="{x:Type TextBlock}">
|
|
<Setter Property="Margin" Value="10,25,0,0" />
|
|
<Setter Property="FontSize" Value="14" />
|
|
</Style>
|
|
</Grid.Resources>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Grid.Row="0"
|
|
Grid.ColumnSpan="2"
|
|
FontSize="12"
|
|
Text="{Binding ActivatedTimes, Mode=OneWay}" />
|
|
<TextBlock Grid.Row="1" Grid.Column="0" Text="{DynamicResource website}" />
|
|
<TextBlock Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left">
|
|
<Hyperlink NavigateUri="{Binding Website, Mode=OneWay}" RequestNavigate="OnRequestNavigate">
|
|
<Run Text="{Binding Website, Mode=OneWay}" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
<TextBlock Grid.Row="2" Grid.Column="0" Text="Version" />
|
|
<TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding Version}" />
|
|
<TextBlock Grid.Row="3" Grid.Column="0" Text="{DynamicResource releaseNotes}" />
|
|
<TextBlock Grid.Row="3" Grid.Column="1">
|
|
<Hyperlink NavigateUri="{Binding ReleaseNotes, Mode=OneWay}" RequestNavigate="OnRequestNavigate">
|
|
<Run Text="{Binding ReleaseNotes, Mode=OneWay}" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
<TextBlock Grid.Row="4" Grid.Column="0" Text="{DynamicResource documentation}" />
|
|
<TextBlock Grid.Row="4" Grid.Column="1">
|
|
<Hyperlink NavigateUri="{Binding Documentation, Mode=OneWay}" RequestNavigate="OnRequestNavigate">
|
|
<Run Text="{Binding Documentation, Mode=OneWay}" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
<Button Grid.Row="5"
|
|
Grid.Column="0"
|
|
Margin="10,30,10,10"
|
|
HorizontalAlignment="Left"
|
|
Click="OnCheckUpdates"
|
|
Content="{DynamicResource checkUpdates}" />
|
|
</Grid>
|
|
</Border>
|
|
</TabItem>
|
|
</TabControl>
|
|
</Window>
|