Use a bigger font for the song title at 2x
terminus-16 is exactly double tb-8's height (8px -> 16px), and also pixlet's own documented default font for 2x displays -- a natural choice for making the title genuinely bigger rather than just higher- resolution. Title only, per request; artist/show/host/time stay at their existing fonts. Applied to both the with-art and no-art-fallback layouts for consistency, since it's the same title line either way. Verified at 2x: title reads clearly larger, rest of the column (artist, show/host, time/temp, progress bar) still fits within the available height with room to spare. 1x unaffected (still tb-8).
This commit is contained in:
1 parent
adb09a344c
commit
547003fde1
1 file changed
+10
-2
+10
-2
@@ -266,8 +266,16 @@ def main(config):
|
|||||||
render.Marquee(width = text_width, child = time_temp_text)
|
render.Marquee(width = text_width, child = time_temp_text)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# terminus-16 is exactly double tb-8's height (8px -> 16px) -- also
|
||||||
|
# pixlet's own documented default font for 2x displays, so it's a
|
||||||
|
# natural "the title gets to be genuinely bigger, not just more
|
||||||
|
# pixels" choice for the one line this was asked for, rather than
|
||||||
|
# applying it everywhere (artist/show/time stay tb-8/tom-thumb, same
|
||||||
|
# as before).
|
||||||
|
title_font = "terminus-16" if scale == 2 else "tb-8"
|
||||||
|
|
||||||
top_lines = [
|
top_lines = [
|
||||||
render.Marquee(width = text_width, child = render.Text(now["title"], font = "tb-8", color = colors["text"])),
|
render.Marquee(width = text_width, child = render.Text(now["title"], font = title_font, color = colors["text"])),
|
||||||
render.Marquee(width = text_width, child = render.Text(now["artist"], font = "tb-8", color = colors["text"])),
|
render.Marquee(width = text_width, child = render.Text(now["artist"], font = "tb-8", color = colors["text"])),
|
||||||
render.Box(width = text_width, height = scale, color = colors["separator"]),
|
render.Box(width = text_width, height = scale, color = colors["separator"]),
|
||||||
render.Marquee(width = text_width, child = render.Row(children = show_host_row)),
|
render.Marquee(width = text_width, child = render.Row(children = show_host_row)),
|
||||||
@@ -297,7 +305,7 @@ def main(config):
|
|||||||
cross_align = "center",
|
cross_align = "center",
|
||||||
expanded = True,
|
expanded = True,
|
||||||
children = [
|
children = [
|
||||||
render.Marquee(width = canvas.width(), child = render.Text(now["title"], font = "tb-8", color = colors["text"])),
|
render.Marquee(width = canvas.width(), child = render.Text(now["title"], font = title_font, color = colors["text"])),
|
||||||
render.Marquee(width = canvas.width(), child = render.Text(now["artist"], font = "tb-8", color = colors["text"])),
|
render.Marquee(width = canvas.width(), child = render.Text(now["artist"], font = "tb-8", color = colors["text"])),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||