[F] Fix preset length calculation
This commit is contained in:
parent
a0a2ed66f0
commit
4ba359a161
2 changed files with 16 additions and 1 deletions
15
test.py
Normal file
15
test.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from hyfetch.color_util import RGB
|
||||
from hyfetch.presets import PRESETS
|
||||
|
||||
|
||||
def print_colors_test(colors: list[RGB]):
|
||||
print(''.join(f'{c.to_ansi_rgb()}#' for c in colors))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
p = PRESETS.get('transgender')
|
||||
print_colors_test(p.with_length(9))
|
||||
print_colors_test(p.with_length(6))
|
||||
p = PRESETS.get('nonbinary')
|
||||
print_colors_test(p.with_length(7))
|
||||
print_colors_test(p.with_length(6))
|
||||
Loading…
Add table
Add a link
Reference in a new issue