mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-29 11:24:03 +01:00
General: Reduce number of imports in gen_colors.
This commit is contained in:
parent
b47dcb1e0d
commit
a3db341980
@ -84,6 +84,7 @@ def process_args(args):
|
||||
if args.i:
|
||||
image = gen_colors.get_image(args.i)
|
||||
s.ColorType.plain = gen_colors.get_colors(image)
|
||||
s.ColorType.plain[8] = set_colors.set_grey(s.ColorType.plain)
|
||||
|
||||
if not args.n:
|
||||
wallpaper.set_wallpaper(image)
|
||||
|
@ -9,7 +9,6 @@ import shutil
|
||||
import subprocess
|
||||
|
||||
from pywal import settings as s
|
||||
from pywal import set_colors
|
||||
from pywal import util
|
||||
|
||||
|
||||
@ -131,7 +130,7 @@ def sort_colors(colors):
|
||||
sorted_colors.append(colors[13])
|
||||
sorted_colors.append(colors[14])
|
||||
sorted_colors.append(colors[15])
|
||||
sorted_colors.append(set_colors.set_grey(colors))
|
||||
sorted_colors.append(colors[8])
|
||||
sorted_colors.append(colors[9])
|
||||
sorted_colors.append(colors[10])
|
||||
sorted_colors.append(colors[11])
|
||||
|
Loading…
Reference in New Issue
Block a user