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.
This commit is contained in:
Christopher Crockett 2022-07-13 16:56:19 -04:00
parent 83914c91c8
commit f3229d2716
1 changed files with 11 additions and 2 deletions

View File

@ -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,