Refactor default.py to standardize top padding for text elements in profile card rendering, ensuring consistent alignment of balance and level text. Move level text positioning to improve layout aesthetics and readability.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run
This commit is contained in:
parent
a2032b4813
commit
ac7ea76d9f
1 changed files with 0 additions and 1 deletions
|
@ -218,7 +218,6 @@ def generate_default_profile(
|
|||
# Stats positioning - progress bar starts after profile, stats on right
|
||||
left_edge = pfp_x + pfp_size[0] + 30 # Start progress bar after profile picture
|
||||
stats_x = desired_card_size[0] - 400 # Right side stats position
|
||||
top_padding = 20 # Reduced top padding for higher text placement
|
||||
|
||||
# Draw stats with consistent spacing
|
||||
title_font = ImageFont.truetype(str(font_path or imgtools.DEFAULT_FONT), 32)
|
||||
|
|
Loading…
Add table
Reference in a new issue