From 0acc6cf5e02ca2b8c357130ebb89b895407ff19d Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 23 Dec 2023 22:11:42 +0100 Subject: [PATCH] standalone: consistent padding around tracks --- node.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node.lua b/node.lua index 7d69347..6df0452 100644 --- a/node.lua +++ b/node.lua @@ -140,7 +140,7 @@ function node.render() r,g,b = parse_rgb(track.color) local track_width = font_talk:width(track.name, info_size) 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_y = track_y - info_size - PADDING space_used_for_tracks = space_used_for_tracks + 1 @@ -168,7 +168,7 @@ function node.render() 1, 1, 1, 1 ) end - track_x = track_x - track_width - PADDING*2 + track_x = track_x - track_width - PADDING end end