Skip to content

Commit 83ccfac

Browse files
committed
move Themes string to Constant
1 parent 048981a commit 83ccfac

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Flow.Launcher.Core/Resource/Theme.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class Theme
2121
private ResourceDictionary _oldResource;
2222
private string _oldTheme;
2323
public Settings Settings { get; set; }
24-
private const string Folder = "Themes";
24+
private const string Folder = Constant.Themes;
2525
private const string Extension = ".xaml";
2626
private string DirectoryPath => Path.Combine(Constant.ProgramDirectory, Folder);
2727
private string UserDirectoryPath => Path.Combine(DataLocation.DataDirectory(), Folder);

Flow.Launcher.Infrastructure/Constant.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@ public static class Constant
3333
public static readonly string QueryTextBoxIconImagePath = $"{ProgramDirectory}\\Images\\mainsearch.png";
3434

3535
public const string DefaultTheme = "Darker";
36+
37+
public const string Themes = "Themes";
3638
}
3739
}

Flow.Launcher/SettingWindow.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using NHotkey.Wpf;
99
using Flow.Launcher.Core.Plugin;
1010
using Flow.Launcher.Core.Resource;
11+
using Flow.Launcher.Infrastructure;
1112
using Flow.Launcher.Infrastructure.Hotkey;
1213
using Flow.Launcher.Infrastructure.UserSettings;
1314
using Flow.Launcher.Plugin;
@@ -278,7 +279,7 @@ private void OnCloseExecuted(object sender, ExecutedRoutedEventArgs e)
278279

279280
private void OpenPluginFolder(object sender, RoutedEventArgs e)
280281
{
281-
FilesFolders.OpenPath(Path.Combine(DataLocation.DataDirectory(), "Themes"));
282+
FilesFolders.OpenPath(Path.Combine(DataLocation.DataDirectory(), Constant.Themes));
282283
}
283284
}
284285
}

0 commit comments

Comments
 (0)