diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-25 13:00:57 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-25 13:00:57 -0400 |
| commit | bdbbbd5f4f049b3d15c594d38a953df0074aa736 (patch) | |
| tree | 504abe0e0ce8f6cb28eea79df65588c4f82f116c | |
| parent | 88fab63d9ef11630bf6d28fb492873e901e0f156 (diff) | |
| download | dotemacs-bdbbbd5f4f049b3d15c594d38a953df0074aa736.tar.gz dotemacs-bdbbbd5f4f049b3d15c594d38a953df0074aa736.zip | |
chore(dashboard): use the nf-cod-library codicon for the Calibre launcher
Closer to the actual Calibre logo than the faicon book-open. Switches the launcher's icon function to nerd-icons-codicon, adds the matching declare-function, and adds nerd-icons-codicon to the test's icon mock.
| -rw-r--r-- | modules/dashboard-config.el | 3 | ||||
| -rw-r--r-- | tests/test-dashboard-config-launchers.el | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/dashboard-config.el b/modules/dashboard-config.el index 2629fe0e..ae8ceaee 100644 --- a/modules/dashboard-config.el +++ b/modules/dashboard-config.el @@ -52,6 +52,7 @@ (declare-function nerd-icons-faicon "nerd-icons") (declare-function nerd-icons-devicon "nerd-icons") (declare-function nerd-icons-mdicon "nerd-icons") +(declare-function nerd-icons-codicon "nerd-icons") (declare-function nerd-icons-octicon "nerd-icons") ;; user-constants.el provides the home-directory constant. @@ -139,7 +140,7 @@ Adjust this if the title doesn't appear centered under the banner image.") (list "t" #'nerd-icons-devicon "nf-dev-terminal" "Terminal" "Launch Terminal" (lambda () (ghostel))) (list "a" #'nerd-icons-mdicon "nf-md-calendar" "Agenda" "Main Org Agenda" (lambda () (cj/main-agenda-display))) (list "r" #'nerd-icons-faicon "nf-fa-rss_square" "Feeds" "Elfeed Feed Reader" (lambda () (cj/elfeed-open))) - (list "b" #'nerd-icons-faicon "nf-fae-book_open_o" "Books" "Calibre Ebook Reader" (lambda () (calibredb))) + (list "b" #'nerd-icons-codicon "nf-cod-library" "Books" "Calibre Ebook Reader" (lambda () (calibredb))) (list "f" #'nerd-icons-mdicon "nf-md-school" "Flashcards" "Org-Drill" (lambda () (cj/drill-start))) (list "m" #'nerd-icons-mdicon "nf-md-music" "Music" "EMMS Music Player" (lambda () (cj/music-playlist-toggle) (cj/music-playlist-load))) (list "e" #'nerd-icons-faicon "nf-fa-envelope" "Email" "Mu4e Email Client" (lambda () (mu4e))) diff --git a/tests/test-dashboard-config-launchers.el b/tests/test-dashboard-config-launchers.el index e7e8d2f3..a9a87197 100644 --- a/tests/test-dashboard-config-launchers.el +++ b/tests/test-dashboard-config-launchers.el @@ -56,7 +56,8 @@ Slack, Linear, and Signal sharing the last row." (cl-letf (((symbol-function 'nerd-icons-faicon) (lambda (n &rest _) (concat "I:" n))) ((symbol-function 'nerd-icons-devicon) (lambda (n &rest _) (concat "I:" n))) ((symbol-function 'nerd-icons-mdicon) (lambda (n &rest _) (concat "I:" n))) - ((symbol-function 'nerd-icons-octicon) (lambda (n &rest _) (concat "I:" n)))) + ((symbol-function 'nerd-icons-octicon) (lambda (n &rest _) (concat "I:" n))) + ((symbol-function 'nerd-icons-codicon) (lambda (n &rest _) (concat "I:" n)))) (let ((rows (cj/dashboard--navigator-rows))) (should (= 4 (length rows))) (should (equal '(4 4 3 3) (mapcar #'length rows))) |
