diff options
author | Christopher Crockett <git@chray.cc> | 2022-07-13 16:56:19 -0400 |
---|---|---|
committer | Christopher Crockett <git@chray.cc> | 2022-07-13 17:06:24 -0400 |
commit | f3229d2716c6742447f3e9a05b54a7db36aaf93d (patch) | |
tree | 82a5c911a5b460e3f5fe847cb5d90f6d9c25d19a | |
parent | 83914c91c86eee4d70120a2849e752f7762908d7 (diff) |
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.
-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 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, |