mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
move Themes string to Constant
This commit is contained in:
parent
048981a749
commit
83ccfac04f
3 changed files with 5 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ namespace Flow.Launcher.Core.Resource
|
||||||
private ResourceDictionary _oldResource;
|
private ResourceDictionary _oldResource;
|
||||||
private string _oldTheme;
|
private string _oldTheme;
|
||||||
public Settings Settings { get; set; }
|
public Settings Settings { get; set; }
|
||||||
private const string Folder = "Themes";
|
private const string Folder = Constant.Themes;
|
||||||
private const string Extension = ".xaml";
|
private const string Extension = ".xaml";
|
||||||
private string DirectoryPath => Path.Combine(Constant.ProgramDirectory, Folder);
|
private string DirectoryPath => Path.Combine(Constant.ProgramDirectory, Folder);
|
||||||
private string UserDirectoryPath => Path.Combine(DataLocation.DataDirectory(), Folder);
|
private string UserDirectoryPath => Path.Combine(DataLocation.DataDirectory(), Folder);
|
||||||
|
|
|
||||||
|
|
@ -33,5 +33,7 @@ namespace Flow.Launcher.Infrastructure
|
||||||
public static readonly string QueryTextBoxIconImagePath = $"{ProgramDirectory}\\Images\\mainsearch.png";
|
public static readonly string QueryTextBoxIconImagePath = $"{ProgramDirectory}\\Images\\mainsearch.png";
|
||||||
|
|
||||||
public const string DefaultTheme = "Darker";
|
public const string DefaultTheme = "Darker";
|
||||||
|
|
||||||
|
public const string Themes = "Themes";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ using NHotkey;
|
||||||
using NHotkey.Wpf;
|
using NHotkey.Wpf;
|
||||||
using Flow.Launcher.Core.Plugin;
|
using Flow.Launcher.Core.Plugin;
|
||||||
using Flow.Launcher.Core.Resource;
|
using Flow.Launcher.Core.Resource;
|
||||||
|
using Flow.Launcher.Infrastructure;
|
||||||
using Flow.Launcher.Infrastructure.Hotkey;
|
using Flow.Launcher.Infrastructure.Hotkey;
|
||||||
using Flow.Launcher.Infrastructure.UserSettings;
|
using Flow.Launcher.Infrastructure.UserSettings;
|
||||||
using Flow.Launcher.Plugin;
|
using Flow.Launcher.Plugin;
|
||||||
|
|
@ -278,7 +279,7 @@ namespace Flow.Launcher
|
||||||
|
|
||||||
private void OpenPluginFolder(object sender, RoutedEventArgs e)
|
private void OpenPluginFolder(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
FilesFolders.OpenPath(Path.Combine(DataLocation.DataDirectory(), "Themes"));
|
FilesFolders.OpenPath(Path.Combine(DataLocation.DataDirectory(), Constant.Themes));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue