Merge pull request #367 from chaorace/spotify-widget-icon-placeholder

Separate artist/title textboxes in spotify-widget when an icon cannot be drawn
This commit is contained in:
streetturtle 2022-07-16 21:05:40 -04:00 committed by GitHub
commit 2650676e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 2 deletions

View File

@ -51,10 +51,19 @@ local function worker(user_args)
font = font, font = font,
widget = wibox.widget.textbox, widget = wibox.widget.textbox,
}, },
{
layout = wibox.layout.stack,
{ {
id = "icon", id = "icon",
widget = wibox.widget.imagebox, widget = wibox.widget.imagebox,
}, },
{
widget = wibox.widget.textbox,
font = font,
text = ' ',
forced_height = 1
}
},
{ {
layout = wibox.container.scroll.horizontal, layout = wibox.container.scroll.horizontal,
max_size = 100, max_size = 100,