Merge remote-tracking branch 'refs/remotes/origin/master'
This commit is contained in:
commit
e95d25ca01
@ -6,7 +6,7 @@ refresh_interval: 0.4 # (float) number of seconds in-between progress bar ref
|
||||
|
||||
# Set Color Theme
|
||||
color_theme:
|
||||
text: [255, 255, 255] # [R, G, B] All text components
|
||||
bar_outline: [255, 255, 255] # [R, G, B] Bar Outline
|
||||
bar_inside: [30, 215, 96] # [R, G, B] Bar in-fill
|
||||
background: [25, 20, 20] # [R, G, B] Background
|
||||
text: [253, 238, 216] # [R, G, B] All text components
|
||||
bar_outline: [16, 81, 86] # [R, G, B] Bar in-fill
|
||||
bar_inside: [148, 191, 136] # [R, G, B] Bar in-fill
|
||||
background: [13, 19, 33] # [R, G, B] Background
|
||||
|
@ -95,6 +95,7 @@ def display_loop(api: Api, cfg: Dict):
|
||||
time.sleep(cfg["api_interval"])
|
||||
|
||||
elif type(data) == dict:
|
||||
current_mode = 1
|
||||
current_track = data["track"] + data["artists"][0] + data["album"]
|
||||
if current_track != last_track:
|
||||
print("updating track")
|
||||
@ -116,7 +117,7 @@ def display_loop(api: Api, cfg: Dict):
|
||||
bg.paste(img, (10, 30))
|
||||
draw = ImageDraw.Draw(bg)
|
||||
draw.text(
|
||||
(150, 40),
|
||||
(150, 28),
|
||||
"\n".join(textwrap.wrap(", ".join(data["artists"]), width=16)),
|
||||
font=Font1,
|
||||
fill=cfg["color_theme"]["text"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user