From 44bc7d5868e2f6715b8b3b7a028a3960dd07c815 Mon Sep 17 00:00:00 2001 From: JenChieh Date: Fri, 11 Dec 2020 15:47:10 +0800 Subject: [PATCH 1/3] Update doc for new face, items. --- README.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.org b/README.org index dbbb992c..e57bb032 100644 --- a/README.org +++ b/README.org @@ -220,7 +220,7 @@ It is possible to customize Dashboard's appearance using the following faces: Highlights text banners. - ~dashboard-heading~ :: Highlights widget headings. -- ~widget-button~ :: +- ~dashboard-items~ :: Highlights widget items. * Shortcuts From c7e575ef08bf283cfcd18cbeb4b0a3181b219043 Mon Sep 17 00:00:00 2001 From: JenChieh Date: Fri, 11 Dec 2020 15:47:42 +0800 Subject: [PATCH 2/3] Add custom item face to replace widget-button face. --- dashboard-widgets.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dashboard-widgets.el b/dashboard-widgets.el index 274004d7..ee28ad4a 100644 --- a/dashboard-widgets.el +++ b/dashboard-widgets.el @@ -298,6 +298,11 @@ If nil it is disabled. Possible values for list-type are: "Face used for widget headings." :group 'dashboard) +(defface dashboard-items + '((t (:inherit widget-button))) + "Face used for items." + :group 'dashboard) + (defface dashboard-no-items '((t (:inherit widget-button))) "Face used for no items." @@ -537,7 +542,7 @@ If MESSAGEBUF is not nil then MSG is also written in message buffer." (when title (propertize title 'face face))) :help-echo help :action action - :button-face 'widget-button + :button-face 'dashboard-items :mouse-face 'highlight :button-prefix prefix :button-suffix suffix @@ -599,7 +604,7 @@ WIDGET-PARAMS are passed to the \"widget-create\" function." (widget-create 'item :tag tag :action ,action - :button-face 'widget-button + :button-face 'dashboard-items :mouse-face 'highlight :button-prefix "" :button-suffix "" From 72b141c55a18ae8e00c767baaf8036f188d53589 Mon Sep 17 00:00:00 2001 From: JenChieh Date: Fri, 11 Dec 2020 15:49:59 +0800 Subject: [PATCH 3/3] Rename, with face. --- README.org | 2 +- dashboard-widgets.el | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.org b/README.org index e57bb032..b9fedd57 100644 --- a/README.org +++ b/README.org @@ -220,7 +220,7 @@ It is possible to customize Dashboard's appearance using the following faces: Highlights text banners. - ~dashboard-heading~ :: Highlights widget headings. -- ~dashboard-items~ :: +- ~dashboard-items-face~ :: Highlights widget items. * Shortcuts diff --git a/dashboard-widgets.el b/dashboard-widgets.el index ee28ad4a..d4c1a262 100644 --- a/dashboard-widgets.el +++ b/dashboard-widgets.el @@ -298,12 +298,12 @@ If nil it is disabled. Possible values for list-type are: "Face used for widget headings." :group 'dashboard) -(defface dashboard-items +(defface dashboard-items-face '((t (:inherit widget-button))) "Face used for items." :group 'dashboard) -(defface dashboard-no-items +(defface dashboard-no-items-face '((t (:inherit widget-button))) "Face used for no items." :group 'dashboard) @@ -542,7 +542,7 @@ If MESSAGEBUF is not nil then MSG is also written in message buffer." (when title (propertize title 'face face))) :help-echo help :action action - :button-face 'dashboard-items + :button-face 'dashboard-items-face :mouse-face 'highlight :button-prefix prefix :button-suffix suffix @@ -571,7 +571,7 @@ WIDGET-PARAMS are passed to the \"widget-create\" function." ,@widget-params) ,shortcut) (dashboard-insert-shortcut ,shortcut ,section-name)) - (insert (propertize "\n --- No items ---" 'face 'dashboard-no-items))))) + (insert (propertize "\n --- No items ---" 'face 'dashboard-no-items-face))))) ;; ;; Section list @@ -604,7 +604,7 @@ WIDGET-PARAMS are passed to the \"widget-create\" function." (widget-create 'item :tag tag :action ,action - :button-face 'dashboard-items + :button-face 'dashboard-items-face :mouse-face 'highlight :button-prefix "" :button-suffix ""