From f3229d2716c6742447f3e9a05b54a7db36aaf93d Mon Sep 17 00:00:00 2001 From: Christopher Crockett Date: Wed, 13 Jul 2022 16:56:19 -0400 Subject: [PATCH] Separate spotify-widget artist/title without icon Introduces a minimum distance between the artist/title textboxes equal in width to 1 space character in the specified widget font. This should ensure that the artist/title textboxes are not crammed together in the event that an icon cannot be displayed. --- spotify-widget/spotify.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/spotify-widget/spotify.lua b/spotify-widget/spotify.lua index f8df1ea..7c33752 100644 --- a/spotify-widget/spotify.lua +++ b/spotify-widget/spotify.lua @@ -51,8 +51,17 @@ local function worker(user_args) widget = wibox.widget.textbox, }, { - id = "icon", - widget = wibox.widget.imagebox, + layout = wibox.layout.stack, + { + id = "icon", + widget = wibox.widget.imagebox, + }, + { + widget = wibox.widget.textbox, + font = font, + text = ' ', + forced_height = 1 + } }, { layout = wibox.container.scroll.horizontal,