Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Enabled" Column in Customize Action Keyword Tab #2918

Merged
merged 2 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
<system:String x:Key="plugin_explorer_path_enumeration_engine_none">Direct Enumeration</system:String>
<system:String x:Key="plugin_explorer_file_editor_path">File Editor Path</system:String>
<system:String x:Key="plugin_explorer_folder_editor_path">Folder Editor Path</system:String>
<system:String x:Key="plugin_explorer_enabled">Enabled</system:String>
<system:String x:Key="plugin_explorer_disabled">Disabled</system:String>

<system:String x:Key="plugin_explorer_Content_Search_Engine">Content Search Engine</system:String>
<system:String x:Key="plugin_explorer_Directory_Recursive_Search_Engine">Directory Recursive Search Engine</system:String>
Expand Down
31 changes: 25 additions & 6 deletions Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
</Style>
</TextBlock.Style>
</TextBlock>

<TextBlock
Margin="250 5 0 0"
IsEnabled="{Binding Enabled}"
Expand All @@ -144,8 +145,26 @@
</Style>
</TextBlock.Style>
</TextBlock>

<TextBlock Margin="500 5 0 0">
<TextBlock.Style>
<Style TargetType="{x:Type TextBlock}">
<Style.Triggers>
<DataTrigger Binding="{Binding Enabled}" Value="True">
<Setter Property="Text" Value="{DynamicResource plugin_explorer_enabled}" />
<Setter Property="Foreground" Value="{DynamicResource Color05B}" />
</DataTrigger>
<DataTrigger Binding="{Binding Enabled}" Value="False">
<Setter Property="Text" Value="{DynamicResource plugin_explorer_disabled}" />
<Setter Property="Foreground" Value="{DynamicResource Color18B}" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</Grid>
</DataTemplate>

<converters:EnumNameConverter x:Key="EnumNameConverter" />
</UserControl.Resources>
<Grid Margin="0">
Expand Down Expand Up @@ -346,9 +365,9 @@
Grid.Row="3"
Grid.Column="1"
MinWidth="350"
Margin="0,9,0,6"
ToolTip="{DynamicResource plugin_explorer_Excluded_File_Types_Tooltip}"
Text="{Binding ExcludedFileTypes}" />
Margin="0 9 0 6"
Text="{Binding ExcludedFileTypes}"
ToolTip="{DynamicResource plugin_explorer_Excluded_File_Types_Tooltip}" />
<TextBlock
Grid.Row="4"
Grid.Column="0"
Expand All @@ -360,13 +379,13 @@
Grid.Row="4"
Grid.Column="1"
MinWidth="350"
Margin="0,9,0,6"
Margin="0 9 0 6"
HorizontalAlignment="Left"
VerticalAlignment="Center"
PreviewTextInput="AllowOnlyNumericInput"
MaxLength="6"
PreviewTextInput="AllowOnlyNumericInput"
Text="{Binding MaxResult}"
ToolTip="{DynamicResource plugin_explorer_Maximum_Results_Tooltip}"/>
ToolTip="{DynamicResource plugin_explorer_Maximum_Results_Tooltip}" />
</Grid>
</StackPanel>
<StackPanel Orientation="Horizontal">
Expand Down
Loading