]> git.eshelyaron.com Git - emacs.git/commit
* lisp/tab-bar.el: Use customizable button icons (bug#51309, bug#51648)
authorJuri Linkov <juri@linkov.net>
Mon, 24 Oct 2022 07:33:41 +0000 (10:33 +0300)
committerJuri Linkov <juri@linkov.net>
Mon, 24 Oct 2022 07:33:41 +0000 (10:33 +0300)
commitc06b5961ee447780fb5dc15ec8ed38d14c2398df
treedfb7c89d6281222438531ea7d9b5bb10eacf6c36
parent590086339f4082d85d670893364677efebe44b02
* lisp/tab-bar.el: Use customizable button icons (bug#51309, bug#51648)

* lisp/tab-bar.el (tab-bar--load-buttons): Use 'define-icon' to
define icons for tab-bar-new, tab-bar-close, tab-bar-menu-bar.
Also set tab-bar-new-button, tab-bar-close-button, tab-bar-menu-bar-button
to the specified icon-string.
(tab-bar-history-mode): Use 'define-icon' to
define icons for tab-bar-back, tab-bar-forward.
Also set tab-bar-back-button, tab-bar-forward-button
to the specified icon-string.

* lisp/emacs-lisp/icons.el (icons--create)<image>: Allow to easy
add new image props by using 'apply' on them.  Add :margin.
lisp/emacs-lisp/icons.el
lisp/tab-bar.el