2021-11-27 22:37:08 +00:00
|
|
|
<Window
|
|
|
|
|
x:Class="Flow.Launcher.Plugin.Program.ProgramSuffixes"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2022-10-22 08:21:45 +00:00
|
|
|
xmlns:ui="http://schemas.modernwpf.com/2019"
|
2021-11-27 22:37:08 +00:00
|
|
|
Title="{DynamicResource flowlauncher_plugin_program_suffixes}"
|
2022-10-22 08:21:45 +00:00
|
|
|
Width="600"
|
2021-11-27 22:37:08 +00:00
|
|
|
Background="{DynamicResource PopuBGColor}"
|
|
|
|
|
Foreground="{DynamicResource PopupTextColor}"
|
2022-10-23 09:29:37 +00:00
|
|
|
DataContext="{Binding RelativeSource={RelativeSource Self}}"
|
2021-11-27 22:37:08 +00:00
|
|
|
ResizeMode="NoResize"
|
|
|
|
|
SizeToContent="Height"
|
|
|
|
|
WindowStartupLocation="CenterScreen"
|
|
|
|
|
mc:Ignorable="d">
|
|
|
|
|
<WindowChrome.WindowChrome>
|
|
|
|
|
<WindowChrome CaptionHeight="32" ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}" />
|
|
|
|
|
</WindowChrome.WindowChrome>
|
2022-10-22 08:21:45 +00:00
|
|
|
<Window.Resources>
|
|
|
|
|
<Style
|
|
|
|
|
x:Key="CustomFileTypeTextBox"
|
|
|
|
|
BasedOn="{StaticResource DefaultTextBoxStyle}"
|
|
|
|
|
TargetType="TextBox">
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding ElementName=CustomFiles, Path=IsChecked}" Value="True">
|
|
|
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style
|
|
|
|
|
x:Key="CustomURLTypeTextBox"
|
|
|
|
|
BasedOn="{StaticResource DefaultTextBoxStyle}"
|
|
|
|
|
TargetType="TextBox">
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding ElementName=CustomProtocol, Path=IsChecked}" Value="True">
|
|
|
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
|
2022-10-22 09:02:20 +00:00
|
|
|
<Style x:Key="SettingGroupBoxSuffixToolTip" TargetType="Border">
|
|
|
|
|
<Setter Property="Background" Value="{DynamicResource Color00B}" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource Color03B}" />
|
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
|
|
|
<Setter Property="CornerRadius" Value="5" />
|
|
|
|
|
<Setter Property="Margin" Value="0,5,0,0" />
|
|
|
|
|
<Setter Property="Padding" Value="15,15,15,15" />
|
|
|
|
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
2022-10-22 08:21:45 +00:00
|
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding ElementName=tbSuffixes, Path=IsFocused}" Value="True">
|
|
|
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
|
|
|
</DataTrigger>
|
2022-10-22 09:02:20 +00:00
|
|
|
<DataTrigger Binding="{Binding ElementName=tbSuffixes, Path=IsFocused}" Value="False">
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
|
|
|
</DataTrigger>
|
2022-10-22 08:21:45 +00:00
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
|
2022-10-22 09:02:20 +00:00
|
|
|
<Style x:Key="SettingGroupBoxURLToolTip" TargetType="Border">
|
|
|
|
|
<Setter Property="Background" Value="{DynamicResource Color00B}" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource Color03B}" />
|
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
|
|
|
<Setter Property="CornerRadius" Value="5" />
|
|
|
|
|
<Setter Property="Margin" Value="0,5,0,0" />
|
|
|
|
|
<Setter Property="Padding" Value="15,15,15,15" />
|
|
|
|
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
2022-10-22 08:21:45 +00:00
|
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding ElementName=tbProtocols, Path=IsFocused}" Value="True">
|
|
|
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
|
|
|
</DataTrigger>
|
2022-10-22 09:02:20 +00:00
|
|
|
<DataTrigger Binding="{Binding ElementName=tbProtocols, Path=IsFocused}" Value="False">
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
|
|
|
</DataTrigger>
|
2022-10-22 08:21:45 +00:00
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
2022-10-22 09:02:20 +00:00
|
|
|
|
2022-10-22 08:21:45 +00:00
|
|
|
</Window.Resources>
|
|
|
|
|
|
2022-10-22 09:02:20 +00:00
|
|
|
<Grid x:Name="WindowArea">
|
2021-11-27 22:37:08 +00:00
|
|
|
<Grid.RowDefinitions>
|
2022-10-22 06:39:40 +00:00
|
|
|
<RowDefinition Height="auto" />
|
2021-11-27 22:37:08 +00:00
|
|
|
<RowDefinition Height="80" />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="0">
|
|
|
|
|
<StackPanel>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Button
|
|
|
|
|
Grid.Column="4"
|
|
|
|
|
Click="BtnCancel_OnClick"
|
|
|
|
|
Style="{StaticResource TitleBarCloseButtonStyle}">
|
|
|
|
|
<Path
|
|
|
|
|
Width="46"
|
|
|
|
|
Height="32"
|
|
|
|
|
Data="M 18,11 27,20 M 18,20 27,11"
|
|
|
|
|
Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}"
|
|
|
|
|
StrokeThickness="1">
|
|
|
|
|
<Path.Style>
|
|
|
|
|
<Style TargetType="Path">
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding Path=IsActive, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value="False">
|
|
|
|
|
<Setter Property="Opacity" Value="0.5" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
</Path.Style>
|
|
|
|
|
</Path>
|
|
|
|
|
</Button>
|
|
|
|
|
</Grid>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Margin="26,12,26,0">
|
2022-10-22 06:39:40 +00:00
|
|
|
|
2021-11-27 22:37:08 +00:00
|
|
|
<StackPanel Margin="0,0,0,12">
|
2022-10-22 06:39:40 +00:00
|
|
|
|
2021-11-27 22:37:08 +00:00
|
|
|
<TextBlock
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Margin="0,0,0,0"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
FontWeight="SemiBold"
|
|
|
|
|
Text="{DynamicResource flowlauncher_plugin_program_suffixes}"
|
|
|
|
|
TextAlignment="Left" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<TextBlock
|
2022-10-22 09:02:20 +00:00
|
|
|
Margin="0,0,0,10"
|
2021-11-27 22:37:08 +00:00
|
|
|
FontSize="14"
|
|
|
|
|
Text="{DynamicResource flowlauncher_plugin_program_only_index_tip}"
|
|
|
|
|
TextWrapping="Wrap" />
|
2022-10-22 09:02:20 +00:00
|
|
|
<Border Style="{DynamicResource SettingGroupBoxURLToolTip}">
|
2022-10-22 08:21:45 +00:00
|
|
|
<TextBlock
|
2022-10-22 09:02:20 +00:00
|
|
|
FontSize="14"
|
2022-10-22 08:21:45 +00:00
|
|
|
Text="{DynamicResource flowlauncher_plugin_program_protocol_tooltip}"
|
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
|
</Border>
|
|
|
|
|
|
2022-10-22 09:02:20 +00:00
|
|
|
<Border Style="{DynamicResource SettingGroupBoxSuffixToolTip}">
|
2022-10-22 08:21:45 +00:00
|
|
|
<TextBlock
|
2022-10-22 09:02:20 +00:00
|
|
|
FontSize="14"
|
2022-10-22 08:21:45 +00:00
|
|
|
Text="{DynamicResource flowlauncher_plugin_program_suffixes_tooltip}"
|
|
|
|
|
TextWrapping="Wrap" />
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
|
2022-10-22 06:39:40 +00:00
|
|
|
<!--
|
|
|
|
|
<TextBox x:Name="tbSuffixes" Margin="0,20,0,20" />
|
|
|
|
|
-->
|
2022-10-22 08:21:45 +00:00
|
|
|
<Grid Margin="0,20,0,12">
|
2022-10-22 06:39:40 +00:00
|
|
|
<Grid.ColumnDefinitions>
|
2022-10-22 08:21:45 +00:00
|
|
|
<ColumnDefinition Width="250" />
|
|
|
|
|
<ColumnDefinition Width="250" />
|
2022-10-22 06:39:40 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
2022-10-22 08:21:45 +00:00
|
|
|
<StackPanel Grid.Column="0" Margin="0,0,0,0">
|
2022-10-22 06:39:40 +00:00
|
|
|
<TextBlock
|
|
|
|
|
Margin="0,0,0,8"
|
2022-10-22 08:21:45 +00:00
|
|
|
FontSize="16"
|
|
|
|
|
FontWeight="SemiBold"
|
|
|
|
|
Text="{DynamicResource flowlauncher_plugin_program_suffixes_excutable_types}" />
|
2022-10-23 12:01:18 +00:00
|
|
|
<CheckBox Name="apprefMS" Margin="10,0,0,0" IsChecked="{Binding SuffixesStatus[appref-ms]}">appref-ms</CheckBox>
|
|
|
|
|
<CheckBox Name="exe" Margin="10,0,0,0" IsChecked="{Binding SuffixesStatus[exe]}">exe</CheckBox>
|
|
|
|
|
<CheckBox Name="lnk" Margin="10,0,0,0" IsChecked="{Binding SuffixesStatus[lnk]}">lnk</CheckBox>
|
2022-10-22 08:21:45 +00:00
|
|
|
<CheckBox
|
|
|
|
|
Name="CustomFiles"
|
|
|
|
|
Margin="10,0,0,0"
|
2022-10-23 14:09:22 +00:00
|
|
|
IsChecked="{Binding UseCustomSuffixes}"
|
2022-10-22 08:21:45 +00:00
|
|
|
Content="{DynamicResource flowlauncher_plugin_program_suffixes_custom_file_types}" />
|
|
|
|
|
<TextBox
|
|
|
|
|
x:Name="tbSuffixes"
|
2022-10-22 09:02:20 +00:00
|
|
|
Margin="10,4,0,6"
|
2022-10-22 08:21:45 +00:00
|
|
|
Style="{StaticResource CustomFileTypeTextBox}" />
|
2022-10-22 06:39:40 +00:00
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<Border
|
|
|
|
|
Grid.Column="1"
|
2022-10-22 09:17:33 +00:00
|
|
|
Margin="20,0,0,10"
|
2022-10-22 06:39:40 +00:00
|
|
|
Padding="20,0,0,0"
|
2022-10-22 08:21:45 +00:00
|
|
|
BorderBrush="{DynamicResource PopupButtonAreaBorderColor}"
|
2022-10-22 06:39:40 +00:00
|
|
|
BorderThickness="1,0,0,0">
|
|
|
|
|
<StackPanel>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Margin="0,0,0,8"
|
2022-10-22 08:21:45 +00:00
|
|
|
FontSize="16"
|
|
|
|
|
FontWeight="SemiBold"
|
|
|
|
|
Text="{DynamicResource flowlauncher_plugin_program_suffixes_URL_types}" />
|
2022-11-01 12:02:21 +00:00
|
|
|
<CheckBox Name="steam" Margin="10,0,0,0" IsChecked="{Binding ProtocolsStatus[steam]}">Steam Games</CheckBox>
|
|
|
|
|
<CheckBox Name="epic" Margin="10,0,0,0" IsChecked="{Binding ProtocolsStatus[epic]}">Epic Games</CheckBox>
|
|
|
|
|
<CheckBox Name="http" Margin="10,0,0,0" IsChecked="{Binding ProtocolsStatus[http]}">Http/Https</CheckBox>
|
2022-10-22 08:21:45 +00:00
|
|
|
<CheckBox
|
|
|
|
|
Name="CustomProtocol"
|
|
|
|
|
Margin="10,0,0,0"
|
2022-10-23 14:09:22 +00:00
|
|
|
IsChecked="{Binding UseCustomProtocols}"
|
2022-10-22 08:21:45 +00:00
|
|
|
Content="{DynamicResource flowlauncher_plugin_program_suffixes_custom_urls}" />
|
|
|
|
|
<TextBox
|
|
|
|
|
x:Name="tbProtocols"
|
2022-10-22 09:02:20 +00:00
|
|
|
Margin="10,4,0,6"
|
2022-10-22 08:21:45 +00:00
|
|
|
Style="{StaticResource CustomURLTypeTextBox}" />
|
2022-10-22 06:39:40 +00:00
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
2021-11-27 22:37:08 +00:00
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Border
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Background="{DynamicResource PopupButtonAreaBGColor}"
|
|
|
|
|
BorderBrush="{DynamicResource PopupButtonAreaBorderColor}"
|
|
|
|
|
BorderThickness="0,1,0,0">
|
|
|
|
|
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
|
|
|
|
<Button
|
2022-10-23 09:29:37 +00:00
|
|
|
x:Name="btnReset"
|
2021-11-27 22:37:08 +00:00
|
|
|
Height="30"
|
2021-12-14 08:35:32 +00:00
|
|
|
MinWidth="140"
|
2021-11-27 22:37:08 +00:00
|
|
|
Margin="0,0,5,0"
|
2022-10-23 09:29:37 +00:00
|
|
|
Click="BtnReset_OnClick"
|
2022-10-22 08:21:45 +00:00
|
|
|
Content="{DynamicResource flowlauncher_plugin_program_reset}" />
|
|
|
|
|
<Button
|
|
|
|
|
x:Name="btnCancel"
|
|
|
|
|
Height="30"
|
|
|
|
|
MinWidth="140"
|
|
|
|
|
Margin="5,0,5,0"
|
|
|
|
|
Click="BtnCancel_OnClick"
|
2021-11-27 22:37:08 +00:00
|
|
|
Content="{DynamicResource cancel}" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
Height="30"
|
2021-12-14 08:35:32 +00:00
|
|
|
MinWidth="140"
|
2021-11-27 22:37:08 +00:00
|
|
|
Margin="5,0,0,0"
|
|
|
|
|
HorizontalAlignment="Right"
|
2022-10-23 09:29:37 +00:00
|
|
|
Click="BtnAdd_OnClick"
|
2021-12-14 08:35:32 +00:00
|
|
|
Content="{DynamicResource flowlauncher_plugin_program_update}"
|
|
|
|
|
Style="{DynamicResource AccentButtonStyle}" />
|
2021-11-27 22:37:08 +00:00
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
2014-08-13 15:16:45 +00:00
|
|
|
</Window>
|
2016-08-19 22:24:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|