refactor(mu4e): prepare `+mu4e-normalised-icon' for extra padding
This is non-functional change to use `format' instead of `concat'. It will make the next patch easier to read.
This commit is contained in:
parent
10567b6cec
commit
9f922065ba
1 changed files with 4 additions and 2 deletions
|
@ -123,8 +123,10 @@ will also be the width of all other printable characters."
|
||||||
(apply icon-set `(,name :height ,height :v-adjust ,v-adjust))))
|
(apply icon-set `(,name :height ,height :v-adjust ,v-adjust))))
|
||||||
(icon-width (+mu4e--get-string-width icon))
|
(icon-width (+mu4e--get-string-width icon))
|
||||||
(space-width (+mu4e--get-string-width " "))
|
(space-width (+mu4e--get-string-width " "))
|
||||||
(space-factor (- 2 (/ (float icon-width) space-width))))
|
(space-factor (- 2 (/ (float icon-width) space-width)))
|
||||||
(concat (propertize " " 'display `(space . (:width ,space-factor))) icon)))
|
;; always pad the left
|
||||||
|
(space-left (propertize " " 'display `(space . (:width ,space-factor)))))
|
||||||
|
(format "%s%s" space-left icon)))
|
||||||
|
|
||||||
;; Set up all the fancy icons
|
;; Set up all the fancy icons
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue