mirror of
https://github.com/correl/doom-modeline.git
synced 2024-12-25 19:25:39 +00:00
Beautify github notifications.
This commit is contained in:
parent
d649c38d4a
commit
849ba7097f
1 changed files with 21 additions and 20 deletions
|
@ -1429,28 +1429,29 @@ Example:
|
|||
(if (and doom-modeline-github
|
||||
(doom-modeline--active)
|
||||
(> doom-modeline--github-notifications-number 0))
|
||||
(propertize
|
||||
(concat (if doom-modeline-icon " ")
|
||||
(doom-modeline-icon-faicon "github"
|
||||
:v-adjust -0.0575
|
||||
:face 'doom-modeline-warning)
|
||||
(if doom-modeline-icon doom-modeline-vspc " ")
|
||||
(propertize (number-to-string doom-modeline--github-notifications-number)
|
||||
'face 'doom-modeline-warning)
|
||||
" ")
|
||||
'help-echo "Github
|
||||
(concat " "
|
||||
(if doom-modeline-icon
|
||||
(doom-modeline-icon-faicon "github"
|
||||
:v-adjust -0.0575
|
||||
:face 'doom-modeline-warning)
|
||||
(propertize "#" 'face '(:inherit (doom-modeline-warning italic))))
|
||||
doom-modeline-vspc
|
||||
(propertize (number-to-string doom-modeline--github-notifications-number)
|
||||
'face '(:inherit (warning italic))
|
||||
'help-echo "Github Notifications
|
||||
mouse-1: Show notifications
|
||||
mouse-3: Fetch notifications"
|
||||
'mouse-face '(:box 1)
|
||||
'local-map (let ((map (make-sparse-keymap)))
|
||||
(define-key map [mode-line mouse-1]
|
||||
#'doom-modeline--github-open-notifications)
|
||||
(define-key map [mode-line mouse-3]
|
||||
(lambda ()
|
||||
(interactive)
|
||||
(message "Fetching github notifications...")
|
||||
(doom-modeline--github-fetch-notifications)))
|
||||
map))))
|
||||
'mouse-face 'mode-line-highlight
|
||||
'local-map (let ((map (make-sparse-keymap)))
|
||||
(define-key map [mode-line mouse-1]
|
||||
#'doom-modeline--github-open-notifications)
|
||||
(define-key map [mode-line mouse-3]
|
||||
(lambda ()
|
||||
(interactive)
|
||||
(message "Fetching github notifications...")
|
||||
(doom-modeline--github-fetch-notifications)))
|
||||
map))
|
||||
" ")))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue