mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-02-14 01:09:24 +01:00
theme: Fix minor issues.
This commit is contained in:
parent
08dd711030
commit
4ef37dbd7c
@ -21,13 +21,13 @@ def list_out():
|
|||||||
|
|
||||||
if user_themes:
|
if user_themes:
|
||||||
print("\033[1;32mUser Themes\033[0m:")
|
print("\033[1;32mUser Themes\033[0m:")
|
||||||
print("\n - ".join(sorted(user_themes)))
|
print(" -", "\n - ".join(sorted(user_themes)))
|
||||||
|
|
||||||
print("\033[1;32mDark Themes\033[0m:")
|
print("\033[1;32mDark Themes\033[0m:")
|
||||||
print("\n - ".join(sorted(dark_themes)))
|
print(" -", "\n - ".join(sorted(dark_themes)))
|
||||||
|
|
||||||
print("\033[1;32mLight Themes\033[0m:")
|
print("\033[1;32mLight Themes\033[0m:")
|
||||||
print("\n - ".join(sorted(ligh_themes)))
|
print(" -", "\n - ".join(sorted(ligh_themes)))
|
||||||
|
|
||||||
print("\033[1;32mExtra\033[0m:")
|
print("\033[1;32mExtra\033[0m:")
|
||||||
print(" - random (select a random dark theme)")
|
print(" - random (select a random dark theme)")
|
||||||
@ -106,12 +106,12 @@ def file(input_file, light=False):
|
|||||||
elif input_file == "random_light":
|
elif input_file == "random_light":
|
||||||
theme_file = get_random_theme(light)
|
theme_file = get_random_theme(light)
|
||||||
|
|
||||||
elif os.path.isfile(input_file):
|
|
||||||
theme_file = input_file
|
|
||||||
|
|
||||||
elif os.path.isfile(user_theme_file):
|
elif os.path.isfile(user_theme_file):
|
||||||
theme_file = user_theme_file
|
theme_file = user_theme_file
|
||||||
|
|
||||||
|
elif os.path.isfile(input_file):
|
||||||
|
theme_file = input_file
|
||||||
|
|
||||||
# Parse the theme file.
|
# Parse the theme file.
|
||||||
if os.path.isfile(theme_file):
|
if os.path.isfile(theme_file):
|
||||||
logging.info("Set theme to \033[1;37m%s\033[0m.",
|
logging.info("Set theme to \033[1;37m%s\033[0m.",
|
||||||
|
Loading…
Reference in New Issue
Block a user