ratp: Round RER rectangle

This commit is contained in:
nemunaire 2022-08-19 16:57:59 +02:00
parent 1616da46e8
commit 8b5e6c2a7c

View File

@ -111,6 +111,8 @@ class IDFMAPI:
draw.rectangle((0, 0, width, size), fill=fill)
draw.rectangle((0, 0, width, 1), fill=fill if fill != "black" else "gray")
draw.rectangle((0, size-2, width, size), fill=fill if fill != "black" else "gray")
elif mode == "rers":
draw.rounded_rectangle((0, 0, width, size), radius=4, fill=fill)
else:
draw.rectangle((0, 0, width, size), fill=fill)
draw.text((int(width / 2), int(size / 2)), line, fill="white" if (fill == "black" and mode == "tramways") or (fill != "white" and mode != "tramways") else "black", anchor="mm", font=fnt_icon)