diff options
author | streetturtle <streetturtle@users.noreply.github.com> | 2022-07-16 21:05:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-16 21:05:40 -0400 |
commit | 2650676e312101fca4667d24ea73ab50e5aa6c26 (patch) | |
tree | c681d3e02979d768b4d889c2769a67bc323789a4 | |
parent | 1245ea43cde656228d9a5c0744695adecc78b077 (diff) | |
parent | f3229d2716c6742447f3e9a05b54a7db36aaf93d (diff) |
Merge pull request #367 from chaorace/spotify-widget-icon-placeholder
Separate artist/title textboxes in spotify-widget when an icon cannot be drawn
-rw-r--r-- | spotify-widget/spotify.lua | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/spotify-widget/spotify.lua b/spotify-widget/spotify.lua index 85ea6b4..f5ccf9c 100644 --- a/spotify-widget/spotify.lua +++ b/spotify-widget/spotify.lua @@ -52,8 +52,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, |