mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-29 03:13:47 +01:00
general: Rename gen_colors to magic
This commit is contained in:
parent
23571cc620
commit
5015f2706c
@ -10,11 +10,11 @@ import sys
|
||||
from pywal.settings import CACHE_DIR, __version__
|
||||
from pywal import export
|
||||
from pywal import image
|
||||
from pywal import gen_colors
|
||||
from pywal import sequences
|
||||
from pywal import magic
|
||||
from pywal import reload
|
||||
from pywal import wallpaper
|
||||
from pywal import sequences
|
||||
from pywal import util
|
||||
from pywal import wallpaper
|
||||
|
||||
|
||||
def get_args():
|
||||
@ -91,7 +91,7 @@ def process_args(args):
|
||||
image_file = image.get_image(args.i)
|
||||
|
||||
# Create a list of hex colors.
|
||||
colors_plain = gen_colors.get_colors(image_file, args.q)
|
||||
colors_plain = magic.get_colors(image_file, args.q)
|
||||
|
||||
if not args.n:
|
||||
wallpaper.set_wallpaper(image_file)
|
||||
|
@ -1,5 +1,5 @@
|
||||
"""
|
||||
Generate a colorscheme.
|
||||
Generate a colorscheme using imagemagick.
|
||||
"""
|
||||
import re
|
||||
import shutil
|
@ -1,7 +1,7 @@
|
||||
"""Test gen functions."""
|
||||
"""Test imagemagick functions."""
|
||||
import unittest
|
||||
|
||||
from pywal import gen_colors
|
||||
from pywal import magic
|
||||
|
||||
|
||||
class TestGenColors(unittest.TestCase):
|
||||
@ -9,7 +9,7 @@ class TestGenColors(unittest.TestCase):
|
||||
|
||||
def test_gen_colors(self):
|
||||
"""> Generate a colorscheme."""
|
||||
result = gen_colors.gen_colors("tests/test_files/test.jpg")
|
||||
result = magic.gen_colors("tests/test_files/test.jpg")
|
||||
self.assertEqual(result[0], "#0F191A")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user