Skip to content

Commit

Permalink
Fix padding of icons using nerd fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerio-pixel committed Jul 22, 2024
1 parent 957521b commit 8ab0033
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doom-dashboard.el
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Possible values for list-type are: `recents', `bookmarks', `projects',
(icon-name (alist-get 'projects dashboard-heading-icons))
(icon (nerd-icons-octicon icon-name :face 'dashboard-heading)))
(if dashboard-display-icons-p
(insert (format "%-3s" icon)))
(insert (string-pad icon 3)))
(widget-create 'item
:tag (format "%-30s" "Open project")
:action (lambda (&rest _)
Expand All @@ -122,7 +122,7 @@ Possible values for list-type are: `recents', `bookmarks', `projects',
(icon-name (alist-get 'agenda dashboard-heading-icons))
(icon (nerd-icons-octicon icon-name :face 'dashboard-heading)))
(if dashboard-display-icons-p
(insert (format "%-3s" icon)))
(insert (string-pad icon 3)))
(widget-create 'item
:tag (format "%-30s" "Open org-agenda")
:action (lambda (&rest _)
Expand All @@ -145,7 +145,7 @@ Possible values for list-type are: `recents', `bookmarks', `projects',
(icon-name (alist-get 'bookmarks dashboard-heading-icons))
(icon (nerd-icons-octicon icon-name :face 'dashboard-heading)))
(if dashboard-display-icons-p
(insert (format "%-3s" icon)))
(insert (string-pad icon 3)))
(widget-create 'item
:tag (format "%-30s" "Jump to bookmark")
:action (lambda (&rest _)
Expand All @@ -168,7 +168,7 @@ Possible values for list-type are: `recents', `bookmarks', `projects',
(icon-name (alist-get 'recents dashboard-heading-icons))
(icon (nerd-icons-octicon icon-name :face 'dashboard-heading)))
(if dashboard-display-icons-p
(insert (format "%-3s" icon)))
(insert (string-pad icon 3)))
(widget-create 'item
:tag (format "%-30s" "Recently opened files")
:action (lambda (&rest _)
Expand Down

0 comments on commit 8ab0033

Please sign in to comment.