mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-10 07:58:12 +01:00
theme: Split themes into light/dark.
This commit is contained in:
parent
9c0da28b9f
commit
2e6fb66b4c
@ -121,10 +121,7 @@ def parse_args_exit(parser):
|
|||||||
"--backend, --theme, -i or -R are required.")
|
"--backend, --theme, -i or -R are required.")
|
||||||
|
|
||||||
if args.theme == "list_themes":
|
if args.theme == "list_themes":
|
||||||
themes = [theme.name.replace(".json", "")
|
theme.list_out()
|
||||||
for theme in theme.list_themes()]
|
|
||||||
print("\n - ".join(["\033[1;32mThemes\033[0m:", *sorted(themes)]))
|
|
||||||
print("\033[1;32mExtra\033[0m:\n - random (select a random theme)")
|
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
if args.backend == "list_backends":
|
if args.backend == "list_backends":
|
||||||
@ -150,7 +147,7 @@ def parse_args(parser):
|
|||||||
colors_plain = colors.get(image_file, args.l, args.backend)
|
colors_plain = colors.get(image_file, args.l, args.backend)
|
||||||
|
|
||||||
if args.theme:
|
if args.theme:
|
||||||
colors_plain = theme.file(args.theme)
|
colors_plain = theme.file(args.theme, args.l)
|
||||||
|
|
||||||
if args.R:
|
if args.R:
|
||||||
colors_plain = theme.file(os.path.join(CACHE_DIR, "colors.json"))
|
colors_plain = theme.file(os.path.join(CACHE_DIR, "colors.json"))
|
||||||
@ -187,7 +184,8 @@ def parse_args(parser):
|
|||||||
def main():
|
def main():
|
||||||
"""Main script function."""
|
"""Main script function."""
|
||||||
util.create_dir(os.path.join(CONF_DIR, "templates"))
|
util.create_dir(os.path.join(CONF_DIR, "templates"))
|
||||||
util.create_dir(os.path.join(CONF_DIR, "colorschemes"))
|
util.create_dir(os.path.join(CONF_DIR, "colorschemes/light/"))
|
||||||
|
util.create_dir(os.path.join(CONF_DIR, "colorschemes/dark/"))
|
||||||
|
|
||||||
util.setup_logging()
|
util.setup_logging()
|
||||||
parser = get_args()
|
parser = get_args()
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
{
|
|
||||||
"special": {
|
|
||||||
"background": "#E3EFEF",
|
|
||||||
"foreground": "#6D828E",
|
|
||||||
"cursor": "#6D828E"
|
|
||||||
},
|
|
||||||
"colors": {
|
|
||||||
"color0": "#E3EFEF",
|
|
||||||
"color1": "#b38686",
|
|
||||||
"color2": "#87b386",
|
|
||||||
"color3": "#aab386",
|
|
||||||
"color4": "#868cb3",
|
|
||||||
"color5": "#b386b2",
|
|
||||||
"color6": "#86b3b3",
|
|
||||||
"color7": "#6D828E",
|
|
||||||
"color8": "#98AFB5",
|
|
||||||
"color9": "#b38686",
|
|
||||||
"color10": "#87b386",
|
|
||||||
"color11": "#aab386",
|
|
||||||
"color12": "#868cb3",
|
|
||||||
"color13": "#b386b2",
|
|
||||||
"color14": "#86b3b3",
|
|
||||||
"color15": "#485867"
|
|
||||||
}
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user