diff options
| author | chqn <chandler@cock.li> | 2024-01-03 13:12:48 -0600 |
|---|---|---|
| committer | chqn <chandler@cock.li> | 2024-01-03 13:12:48 -0600 |
| commit | 007e7076c7404c86180ff3aa6ea3fe15024a87c3 (patch) | |
| tree | aa56c60b2d9911b7e7af30c7881021fee4b62d73 /src/user_interface.py | |
| parent | 350bb4aa798c9c8939b4b7c91dbee9e08f73edc4 (diff) | |
Refactored function signatures and added some TODOs
Diffstat (limited to 'src/user_interface.py')
| -rw-r--r-- | src/user_interface.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/user_interface.py b/src/user_interface.py index 32abf60..99eb524 100644 --- a/src/user_interface.py +++ b/src/user_interface.py @@ -5,7 +5,7 @@ import color_engine from rich import print -def colorPickerUI(img_path: str): +def colorPickerUI(img_path: str) -> tuple: #display the selected color scheme and ask user if they like it or want to generate a new color scheme confirmed = False while not confirmed: @@ -36,10 +36,12 @@ def colorPickerUI(img_path: str): confirmed = True return hex_colors, hex_compliments -def pickRandomWallpaper(): +def pickRandomWallpaper() -> str: confirmed = False while not confirmed: wallpaper = Paths['wallpapers'] + random.choice(os.listdir(Paths['wallpapers'])) + # TODO: Replace image preview with something native to python + # (Currently borrowing viu module from Rust) os.system(f'viu {wallpaper}') print(f'picked wallpaper: {wallpaper}') print('[bold](a)ccept (r)etry') |
