correct name of cached theme json

the names used to be backwards with a 9 being added to 16 color themes and
visceversa.
This commit is contained in:
eylles 2022-03-12 01:23:21 -06:00
parent 7aa7085d5f
commit a60a91f9f0
No known key found for this signature in database
GPG Key ID: 87BB13678A662E19

View File

@ -121,7 +121,7 @@ def saturate_colors(colors, amount):
def cache_fname(img, backend, cols16, light, cache_dir, sat=""): def cache_fname(img, backend, cols16, light, cache_dir, sat=""):
"""Create the cache file name.""" """Create the cache file name."""
color_type = "light" if light else "dark" color_type = "light" if light else "dark"
color_num = "9" if cols16 else "16" color_num = "16" if cols16 else "9"
file_name = re.sub("[/|\\|.]", "_", img) file_name = re.sub("[/|\\|.]", "_", img)
file_size = os.path.getsize(img) file_size = os.path.getsize(img)