|
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
5 | 5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
6 | 6 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
| 7 | + xmlns:ui="http://schemas.modernwpf.com/2019" |
7 | 8 | Title="{DynamicResource flowlauncher_plugin_program_suffixes}"
|
8 |
| - Width="700" |
| 9 | + Width="600" |
9 | 10 | Background="{DynamicResource PopuBGColor}"
|
10 | 11 | Foreground="{DynamicResource PopupTextColor}"
|
11 | 12 | ResizeMode="NoResize"
|
|
15 | 16 | <WindowChrome.WindowChrome>
|
16 | 17 | <WindowChrome CaptionHeight="32" ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}" />
|
17 | 18 | </WindowChrome.WindowChrome>
|
| 19 | + <Window.Resources> |
| 20 | + <Style |
| 21 | + x:Key="CustomFileTypeTextBox" |
| 22 | + BasedOn="{StaticResource DefaultTextBoxStyle}" |
| 23 | + TargetType="TextBox"> |
| 24 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 25 | + <Style.Triggers> |
| 26 | + <DataTrigger Binding="{Binding ElementName=CustomFiles, Path=IsChecked}" Value="True"> |
| 27 | + <Setter Property="Visibility" Value="Visible" /> |
| 28 | + </DataTrigger> |
| 29 | + </Style.Triggers> |
| 30 | + </Style> |
| 31 | + <Style |
| 32 | + x:Key="CustomURLTypeTextBox" |
| 33 | + BasedOn="{StaticResource DefaultTextBoxStyle}" |
| 34 | + TargetType="TextBox"> |
| 35 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 36 | + <Style.Triggers> |
| 37 | + <DataTrigger Binding="{Binding ElementName=CustomProtocol, Path=IsChecked}" Value="True"> |
| 38 | + <Setter Property="Visibility" Value="Visible" /> |
| 39 | + </DataTrigger> |
| 40 | + </Style.Triggers> |
| 41 | + </Style> |
| 42 | + |
| 43 | + <Style x:Key="SuffixToolTip" TargetType="TextBlock"> |
| 44 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 45 | + <Style.Triggers> |
| 46 | + <DataTrigger Binding="{Binding ElementName=tbSuffixes, Path=IsFocused}" Value="True"> |
| 47 | + <Setter Property="Visibility" Value="Visible" /> |
| 48 | + </DataTrigger> |
| 49 | + </Style.Triggers> |
| 50 | + </Style> |
| 51 | + |
| 52 | + <Style x:Key="URLToolTip" TargetType="TextBlock"> |
| 53 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 54 | + <Style.Triggers> |
| 55 | + <DataTrigger Binding="{Binding ElementName=tbProtocols, Path=IsFocused}" Value="True"> |
| 56 | + <Setter Property="Visibility" Value="Visible" /> |
| 57 | + </DataTrigger> |
| 58 | + </Style.Triggers> |
| 59 | + </Style> |
| 60 | + </Window.Resources> |
| 61 | + |
18 | 62 | <Grid>
|
19 | 63 | <Grid.RowDefinitions>
|
20 | 64 | <RowDefinition Height="auto" />
|
|
70 | 114 | FontSize="14"
|
71 | 115 | Text="{DynamicResource flowlauncher_plugin_program_only_index_tip}"
|
72 | 116 | TextWrapping="Wrap" />
|
| 117 | + <Border> |
| 118 | + <TextBlock |
| 119 | + Margin="0,0,0,0" |
| 120 | + Style="{StaticResource URLToolTip}" |
| 121 | + Text="{DynamicResource flowlauncher_plugin_program_protocol_tooltip}" |
| 122 | + TextWrapping="Wrap" /> |
| 123 | + </Border> |
| 124 | + |
| 125 | + <Border> |
| 126 | + <TextBlock |
| 127 | + Margin="0,0,0,0" |
| 128 | + Style="{StaticResource SuffixToolTip}" |
| 129 | + Text="{DynamicResource flowlauncher_plugin_program_suffixes_tooltip}" |
| 130 | + TextWrapping="Wrap" /> |
| 131 | + </Border> |
| 132 | + |
| 133 | + |
73 | 134 | <!--
|
74 | 135 | <TextBox x:Name="tbSuffixes" Margin="0,20,0,20" />
|
75 | 136 | -->
|
76 |
| - <Grid Margin="0,12,0,12"> |
| 137 | + <Grid Margin="0,20,0,12"> |
77 | 138 | <Grid.ColumnDefinitions>
|
78 |
| - <ColumnDefinition Width="290" /> |
79 |
| - <ColumnDefinition Width="290" /> |
| 139 | + <ColumnDefinition Width="250" /> |
| 140 | + <ColumnDefinition Width="250" /> |
80 | 141 | </Grid.ColumnDefinitions>
|
81 | 142 |
|
82 |
| - <StackPanel Grid.Column="0" Margin="12,0,0,0"> |
| 143 | + <StackPanel Grid.Column="0" Margin="0,0,0,0"> |
83 | 144 | <TextBlock
|
84 | 145 | Margin="0,0,0,8"
|
85 |
| - FontSize="18" |
86 |
| - FontWeight="SemiBold"> |
87 |
| - Excutable Types |
88 |
| - </TextBlock> |
89 |
| - <CheckBox Name="apprefMS" Margin="20,0,0,0">appref-ms</CheckBox> |
90 |
| - <CheckBox Name="EXE" Margin="20,0,0,0">EXE</CheckBox> |
91 |
| - <CheckBox Name="LNK" Margin="20,0,0,0">Lnk</CheckBox> |
92 |
| - <CheckBox Name="CustomFiles" Margin="20,0,0,0">Custom File Types</CheckBox> |
93 |
| - <TextBox x:Name="tbSuffixes" Margin="20,4,0,20" /> |
| 146 | + FontSize="16" |
| 147 | + FontWeight="SemiBold" |
| 148 | + Text="{DynamicResource flowlauncher_plugin_program_suffixes_excutable_types}" /> |
| 149 | + <CheckBox Name="apprefMS" Margin="10,0,0,0">appref-ms</CheckBox> |
| 150 | + <CheckBox Name="EXE" Margin="10,0,0,0">EXE</CheckBox> |
| 151 | + <CheckBox Name="LNK" Margin="10,0,0,0">Lnk</CheckBox> |
| 152 | + <CheckBox |
| 153 | + Name="CustomFiles" |
| 154 | + Margin="10,0,0,0" |
| 155 | + Content="{DynamicResource flowlauncher_plugin_program_suffixes_custom_file_types}" /> |
| 156 | + <TextBox |
| 157 | + x:Name="tbSuffixes" |
| 158 | + Margin="10,4,0,0" |
| 159 | + Style="{StaticResource CustomFileTypeTextBox}" /> |
94 | 160 | </StackPanel>
|
95 | 161 |
|
96 | 162 | <Border
|
97 | 163 | Grid.Column="1"
|
98 |
| - Margin="12,0,0,0" |
| 164 | + Margin="20,0,0,0" |
99 | 165 | Padding="20,0,0,0"
|
100 |
| - BorderBrush="Black" |
| 166 | + BorderBrush="{DynamicResource PopupButtonAreaBorderColor}" |
101 | 167 | BorderThickness="1,0,0,0">
|
102 | 168 | <StackPanel>
|
103 | 169 | <TextBlock
|
104 | 170 | Margin="0,0,0,8"
|
105 |
| - FontSize="18" |
106 |
| - FontWeight="SemiBold"> |
107 |
| - URL Types |
108 |
| - </TextBlock> |
109 |
| - <CheckBox Name="steam" Margin="20,0,0,0">Steam Games</CheckBox> |
110 |
| - <CheckBox Name="epic" Margin="20,0,0,0">Epic Games</CheckBox> |
111 |
| - <CheckBox Name="http" Margin="20,0,0,0">Http/Https</CheckBox> |
112 |
| - <CheckBox Name="CustomProtocol" Margin="20,0,0,0">Custom URL Protocols</CheckBox> |
113 |
| - <TextBox x:Name="tbProtocols" Margin="0,4,0,20" /> |
| 171 | + FontSize="16" |
| 172 | + FontWeight="SemiBold" |
| 173 | + Text="{DynamicResource flowlauncher_plugin_program_suffixes_URL_types}" /> |
| 174 | + <CheckBox Name="steam" Margin="10,0,0,0">Steam Games</CheckBox> |
| 175 | + <CheckBox Name="epic" Margin="10,0,0,0">Epic Games</CheckBox> |
| 176 | + <CheckBox Name="http" Margin="10,0,0,0">Http/Https</CheckBox> |
| 177 | + <CheckBox |
| 178 | + Name="CustomProtocol" |
| 179 | + Margin="10,0,0,0" |
| 180 | + Content="{DynamicResource flowlauncher_plugin_program_suffixes_custom_urls}" /> |
| 181 | + <TextBox |
| 182 | + x:Name="tbProtocols" |
| 183 | + Margin="10,4,0,0" |
| 184 | + Style="{StaticResource CustomURLTypeTextBox}" /> |
114 | 185 | </StackPanel>
|
115 | 186 | </Border>
|
116 | 187 | </Grid>
|
|
123 | 194 | BorderThickness="0,1,0,0">
|
124 | 195 | <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
125 | 196 | <Button
|
126 |
| - x:Name="btnCancel" |
| 197 | + x:Name="btnResetl" |
127 | 198 | Height="30"
|
128 | 199 | MinWidth="140"
|
129 | 200 | Margin="0,0,5,0"
|
130 | 201 | Click="BtnCancel_OnClick"
|
| 202 | + Content="{DynamicResource flowlauncher_plugin_program_reset}" /> |
| 203 | + <Button |
| 204 | + x:Name="btnCancel" |
| 205 | + Height="30" |
| 206 | + MinWidth="140" |
| 207 | + Margin="5,0,5,0" |
| 208 | + Click="BtnCancel_OnClick" |
131 | 209 | Content="{DynamicResource cancel}" />
|
132 | 210 |
|
133 | 211 | <Button
|
|
0 commit comments