[-] Remove no-color option
This commit is contained in:
parent
66ad0f7297
commit
a917a9a693
3 changed files with 10 additions and 25 deletions
|
|
@ -154,11 +154,16 @@ def get_distro_name():
|
|||
return check_output([get_command_path(), 'ascii_distro_name']).decode().strip()
|
||||
|
||||
|
||||
def run_neofetch(preset: ColorProfile | None, alignment: ColorAlignment):
|
||||
def run_neofetch(preset: ColorProfile, alignment: ColorAlignment):
|
||||
"""
|
||||
Run neofetch with colors
|
||||
|
||||
:param preset: Color palette
|
||||
:param alignment: Color alignment settings
|
||||
"""
|
||||
asc = get_distro_ascii()
|
||||
w, h = ascii_size(asc)
|
||||
if preset is not None:
|
||||
asc = alignment.recolor_ascii(asc, preset)
|
||||
asc = alignment.recolor_ascii(asc, preset)
|
||||
|
||||
# Write temp file
|
||||
with TemporaryDirectory() as tmp_dir:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue