Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect to custom items face instead of widget-button face #273

Merged
merged 3 commits into from
Dec 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.org
Original file line number Diff line number Diff line change
Expand Up @@ -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-face~ ::
Highlights widget items.

* Shortcuts
Expand Down
13 changes: 9 additions & 4 deletions dashboard-widgets.el
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,12 @@ If nil it is disabled. Possible values for list-type are:
"Face used for widget headings."
:group 'dashboard)

(defface dashboard-no-items
(defface dashboard-items-face
'((t (:inherit widget-button)))
"Face used for items."
:group 'dashboard)

(defface dashboard-no-items-face
'((t (:inherit widget-button)))
"Face used for no items."
:group 'dashboard)
Expand Down Expand Up @@ -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-face
:mouse-face 'highlight
:button-prefix prefix
:button-suffix suffix
Expand Down Expand Up @@ -566,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
Expand Down Expand Up @@ -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-face
:mouse-face 'highlight
:button-prefix ""
:button-suffix ""
Expand Down