mirror of
https://github.com/Kunsi/scheduled-plugin-pretalx-broadcast-tools.git
synced 2024-11-24 11:01:05 +00:00
standalone: consistent padding around tracks
This commit is contained in:
parent
ce7fc7c0a7
commit
0acc6cf5e0
1 changed files with 2 additions and 2 deletions
4
node.lua
4
node.lua
|
@ -140,7 +140,7 @@ function node.render()
|
||||||
r,g,b = parse_rgb(track.color)
|
r,g,b = parse_rgb(track.color)
|
||||||
local track_width = font_talk:width(track.name, info_size)
|
local track_width = font_talk:width(track.name, info_size)
|
||||||
local brightness = math.max(r, g, b)
|
local brightness = math.max(r, g, b)
|
||||||
if track_x - track_width < 0 then
|
if track_x - track_width < PADDING then
|
||||||
track_x = NATIVE_WIDTH - PADDING
|
track_x = NATIVE_WIDTH - PADDING
|
||||||
track_y = track_y - info_size - PADDING
|
track_y = track_y - info_size - PADDING
|
||||||
space_used_for_tracks = space_used_for_tracks + 1
|
space_used_for_tracks = space_used_for_tracks + 1
|
||||||
|
@ -168,7 +168,7 @@ function node.render()
|
||||||
1, 1, 1, 1
|
1, 1, 1, 1
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
track_x = track_x - track_width - PADDING*2
|
track_x = track_x - track_width - PADDING
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue