Fix some widgets’ padding
This commit is contained in:
parent
4419b93f80
commit
aedb8632ba
1 changed files with 7 additions and 2 deletions
|
@ -8,6 +8,11 @@
|
|||
text
|
||||
(L " " text " ")))
|
||||
|
||||
(define (text-maybe-pad-right text)
|
||||
(if (not-text? text)
|
||||
text
|
||||
(L text " ")))
|
||||
|
||||
(define (add-fa-icon icon)
|
||||
(lambda (text)
|
||||
(if (not-text? text)
|
||||
|
@ -46,7 +51,7 @@
|
|||
'margin-right 15
|
||||
'background 'transparent
|
||||
(widget:text 'name "taglist" 'format tag-list-formatter)
|
||||
(widget:active-window-title 'format text-maybe-pad-left)
|
||||
(widget:active-window-title 'format text-maybe-pad-right)
|
||||
(widget:spacer 'flex 1)
|
||||
(widget:text 'name "mpd"
|
||||
'format (add-fa-icon ""))
|
||||
|
@ -62,4 +67,4 @@
|
|||
'font "FontAwesome-10"
|
||||
'flags '(("Unlocked" color "#65a854" "")
|
||||
("Locked" color "#a85454" "")))
|
||||
(widget:clock))
|
||||
(widget:clock 'format text-maybe-pad-left))
|
||||
|
|
Loading…
Reference in a new issue