Dont separate 9 and 16 cols themes wiht dirs

this separation should be done in other way, not with dirs.
This commit is contained in:
eylles 2021-12-27 13:20:09 -06:00
parent 685ea69702
commit 5a134aacc6
No known key found for this signature in database
GPG Key ID: 87BB13678A662E19

View File

@ -65,10 +65,8 @@ def list_themes(dark=True, nine=False):
def list_themes_user(): def list_themes_user():
"""List user theme files.""" """List user theme files."""
themes = [*os.scandir(os.path.join(CONF_DIR, "colorschemes/dark/9")), themes = [*os.scandir(os.path.join(CONF_DIR, "colorschemes/dark/")),
*os.scandir(os.path.join(CONF_DIR, "colorschemes/dark/16")), *os.scandir(os.path.join(CONF_DIR, "colorschemes/light/"))]
*os.scandir(os.path.join(CONF_DIR, "colorschemes/light/9")),
*os.scandir(os.path.join(CONF_DIR, "colorschemes/light/16"))]
return [t for t in themes if os.path.isfile(t.path)] return [t for t in themes if os.path.isfile(t.path)]