Add quicklink to customized theme folder

This commit is contained in:
弘韬 张 2020-11-15 11:05:46 +08:00
parent 336cb3c6db
commit 3390e3958e
2 changed files with 9 additions and 4 deletions

View file

@ -172,7 +172,7 @@
<TextBlock Text="{Binding PluginPair.Metadata.Description}"
Grid.Row="1" Opacity="0.5" />
<DockPanel Grid.Row="2" Margin="0 10 0 8" HorizontalAlignment="Right">
<TextBlock Text="{DynamicResource actionKeywords}"
Visibility="{Binding ActionKeywordsVisibility}"
Margin="20 0 0 0"/>
@ -211,10 +211,10 @@
<Run Text="{DynamicResource browserMoreThemes}" />
</Hyperlink>
</TextBlock>
<Button DockPanel.Dock="Top" Margin="0,10,0,0" Width="180" HorizontalAlignment="Center" Click="Button_Click">Open Theme Folder</Button>
<ListBox DockPanel.Dock="Top" SelectedItem="{Binding SelectedTheme}" ItemsSource="{Binding Themes}"
Margin="10, 0, 10, 10" Width="180" Height="394" />
<ListBox SelectedItem="{Binding SelectedTheme}" ItemsSource="{Binding Themes}"
Margin="10, 0, 10, 10" Width="180"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
</DockPanel>
<Grid Margin="0" Grid.Column="1">
<Grid.RowDefinitions>

View file

@ -275,5 +275,10 @@ namespace Flow.Launcher
{
Close();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
System.Diagnostics.Process.Start("explorer",$"{DataLocation.DataDirectory()}\\Themes");
}
}
}