fix: vertically misaligned number in playlist indicator

closes #623
This commit is contained in:
tomasklaen
2023-09-12 22:24:00 +02:00
parent f03b04496b
commit e897089f61

View File

@@ -182,7 +182,7 @@ function TopBar:render()
by = self.by - bg_margin
}
ass:rect(rect.ax, rect.ay, rect.bx, rect.by, {color = fg, opacity = visibility, radius = 2})
ass:txt(rect.ax + (rect.bx - rect.ax) / 2, rect.ay + (self.size / 2), 5, formatted_text, opts)
ass:txt(rect.ax + (rect.bx - rect.ax) / 2, rect.ay + (rect.by - rect.ay) / 2, 5, formatted_text, opts)
title_ax = rect.bx + bg_margin
-- Click action