style: vertically center headlines in the bottom box
Made-with: Cursor
This commit is contained in:
@@ -80,7 +80,7 @@ def _draw_text_overlays(
|
|||||||
[(0, strip_top), (width, height)], fill=(0, 0, 0, 170)
|
[(0, strip_top), (width, height)], fill=(0, 0, 0, 170)
|
||||||
)
|
)
|
||||||
max_width = width - 32
|
max_width = width - 32
|
||||||
y = strip_top + 8
|
y = strip_top + 14
|
||||||
for headline in headlines[:max_headlines]:
|
for headline in headlines[:max_headlines]:
|
||||||
text = f"\u2022 {headline}"
|
text = f"\u2022 {headline}"
|
||||||
text = _truncate_to_width(text, headline_font, max_width)
|
text = _truncate_to_width(text, headline_font, max_width)
|
||||||
|
|||||||
Reference in New Issue
Block a user