Skip to content

Commit 0fe8eb5

Browse files
committed
Add "Enabled" Column in Customize Action Keyword Tab
1 parent 70cb55e commit 0fe8eb5

File tree

2 files changed

+28
-7
lines changed

2 files changed

+28
-7
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<system:String x:Key="plugin_explorer_edit">Edit</system:String>
2727
<system:String x:Key="plugin_explorer_add">Add</system:String>
2828
<system:String x:Key="plugin_explorer_generalsetting_header">General Setting</system:String>
29-
<system:String x:Key="plugin_explorer_manageactionkeywords_header">Customise Action Keywords</system:String>
29+
<system:String x:Key="plugin_explorer_manageactionkeywords_header">Customize Action Keywords</system:String>
3030
<system:String x:Key="plugin_explorer_quickaccesslinks_header">Quick Access Links</system:String>
3131
<system:String x:Key="plugin_explorer_everything_setting_header">Everything Setting</system:String>
3232
<system:String x:Key="plugin_explorer_previewpanel_setting_header">Preview Panel</system:String>
@@ -59,6 +59,8 @@
5959
<system:String x:Key="plugin_explorer_path_enumeration_engine_none">Direct Enumeration</system:String>
6060
<system:String x:Key="plugin_explorer_file_editor_path">File Editor Path</system:String>
6161
<system:String x:Key="plugin_explorer_folder_editor_path">Folder Editor Path</system:String>
62+
<system:String x:Key="plugin_explorer_enabled">Enabled</system:String>
63+
<system:String x:Key="plugin_explorer_disabled">Disabled</system:String>
6264

6365
<system:String x:Key="plugin_explorer_Content_Search_Engine">Content Search Engine</system:String>
6466
<system:String x:Key="plugin_explorer_Directory_Recursive_Search_Engine">Directory Recursive Search Engine</system:String>

Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
</Style>
128128
</TextBlock.Style>
129129
</TextBlock>
130+
130131
<TextBlock
131132
Margin="250 5 0 0"
132133
IsEnabled="{Binding Enabled}"
@@ -144,8 +145,26 @@
144145
</Style>
145146
</TextBlock.Style>
146147
</TextBlock>
148+
149+
<TextBlock Margin="500 5 0 0">
150+
<TextBlock.Style>
151+
<Style TargetType="{x:Type TextBlock}">
152+
<Style.Triggers>
153+
<DataTrigger Binding="{Binding Enabled}" Value="True">
154+
<Setter Property="Text" Value="{DynamicResource plugin_explorer_enabled}" />
155+
<Setter Property="Foreground" Value="{DynamicResource Color05B}" />
156+
</DataTrigger>
157+
<DataTrigger Binding="{Binding Enabled}" Value="False">
158+
<Setter Property="Text" Value="{DynamicResource plugin_explorer_disabled}" />
159+
<Setter Property="Foreground" Value="{DynamicResource Color18B}" />
160+
</DataTrigger>
161+
</Style.Triggers>
162+
</Style>
163+
</TextBlock.Style>
164+
</TextBlock>
147165
</Grid>
148166
</DataTemplate>
167+
149168
<converters:EnumNameConverter x:Key="EnumNameConverter" />
150169
</UserControl.Resources>
151170
<Grid Margin="0">
@@ -346,9 +365,9 @@
346365
Grid.Row="3"
347366
Grid.Column="1"
348367
MinWidth="350"
349-
Margin="0,9,0,6"
350-
ToolTip="{DynamicResource plugin_explorer_Excluded_File_Types_Tooltip}"
351-
Text="{Binding ExcludedFileTypes}" />
368+
Margin="0 9 0 6"
369+
Text="{Binding ExcludedFileTypes}"
370+
ToolTip="{DynamicResource plugin_explorer_Excluded_File_Types_Tooltip}" />
352371
<TextBlock
353372
Grid.Row="4"
354373
Grid.Column="0"
@@ -360,13 +379,13 @@
360379
Grid.Row="4"
361380
Grid.Column="1"
362381
MinWidth="350"
363-
Margin="0,9,0,6"
382+
Margin="0 9 0 6"
364383
HorizontalAlignment="Left"
365384
VerticalAlignment="Center"
366-
PreviewTextInput="AllowOnlyNumericInput"
367385
MaxLength="6"
386+
PreviewTextInput="AllowOnlyNumericInput"
368387
Text="{Binding MaxResult}"
369-
ToolTip="{DynamicResource plugin_explorer_Maximum_Results_Tooltip}"/>
388+
ToolTip="{DynamicResource plugin_explorer_Maximum_Results_Tooltip}" />
370389
</Grid>
371390
</StackPanel>
372391
<StackPanel Orientation="Horizontal">

0 commit comments

Comments
 (0)