Skip to content

Make it easier to add a custom theme #201

@giggio

Description

@giggio

Describe the solution you'd like

Currently the theme settings tab already has a link to "Browse for more themes" and that is super useful. But it is not clear where to put the theme you created.

I found out reading the code that it is supposed to be at %APPDATA%\FlowLauncher\Themes, so I added it there and it worked. If it is a portable installation it will be different.

It would be nice if there was another link to that folder, on the same settings tab (or the apropriate folder if it is a portable instalation).

Describe alternatives you've considered

The alternative is searching in the docs (I couldn't find it, hopefully this issue will help others find it) or reading the code. Docs could help, but the link would make it more intuitive and simpler to use.

Additional context

The code is this:

private string DirectoryPath => Path.Combine(Constant.ProgramDirectory, Folder);
private string UserDirectoryPath => Path.Combine(DataLocation.DataDirectory(), Folder);
public Theme()
{
_themeDirectories.Add(DirectoryPath);
_themeDirectories.Add(UserDirectoryPath);

And this:

public static string RoamingDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "FlowLauncher");
public static string DataDirectory()
{
if (PortableDataLocationInUse())
return PortableDataPath;
return RoamingDataPath;

From the second code file you can see that if the installation is portable the directory will not be on %APPDATA%.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions