Skip to content

Commit 3390e39

Browse files
committed
Add quicklink to customized theme folder
1 parent 336cb3c commit 3390e39

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Flow.Launcher/SettingWindow.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
<TextBlock Text="{Binding PluginPair.Metadata.Description}"
173173
Grid.Row="1" Opacity="0.5" />
174174
<DockPanel Grid.Row="2" Margin="0 10 0 8" HorizontalAlignment="Right">
175-
175+
176176
<TextBlock Text="{DynamicResource actionKeywords}"
177177
Visibility="{Binding ActionKeywordsVisibility}"
178178
Margin="20 0 0 0"/>
@@ -211,10 +211,10 @@
211211
<Run Text="{DynamicResource browserMoreThemes}" />
212212
</Hyperlink>
213213
</TextBlock>
214+
<Button DockPanel.Dock="Top" Margin="0,10,0,0" Width="180" HorizontalAlignment="Center" Click="Button_Click">Open Theme Folder</Button>
215+
<ListBox DockPanel.Dock="Top" SelectedItem="{Binding SelectedTheme}" ItemsSource="{Binding Themes}"
216+
Margin="10, 0, 10, 10" Width="180" Height="394" />
214217

215-
<ListBox SelectedItem="{Binding SelectedTheme}" ItemsSource="{Binding Themes}"
216-
Margin="10, 0, 10, 10" Width="180"
217-
HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
218218
</DockPanel>
219219
<Grid Margin="0" Grid.Column="1">
220220
<Grid.RowDefinitions>

Flow.Launcher/SettingWindow.xaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,5 +275,10 @@ private void OnCloseExecuted(object sender, ExecutedRoutedEventArgs e)
275275
{
276276
Close();
277277
}
278+
279+
private void Button_Click(object sender, RoutedEventArgs e)
280+
{
281+
System.Diagnostics.Process.Start("explorer",$"{DataLocation.DataDirectory()}\\Themes");
282+
}
278283
}
279284
}

0 commit comments

Comments
 (0)