aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJuri Linkov2019-09-15 23:52:22 +0300
committerJuri Linkov2019-09-15 23:52:22 +0300
commit6474abc36359a438338e5d6186dbeaf24f200387 (patch)
tree1d7a4c74483031759169d66a3b12aa722635240c /etc
parent8d30e1bce3c1bddf85272fa31b7d314ed421d29e (diff)
downloademacs-6474abc36359a438338e5d6186dbeaf24f200387.tar.gz
emacs-6474abc36359a438338e5d6186dbeaf24f200387.zip
Use images for new/close buttons in tab-bar and tab-line.
* etc/images/tabs/new.xpm: * etc/images/tabs/close.xpm: New files. * lisp/tab-bar.el (tab-bar-separator): New face. (tab-bar-separator, tab-bar-button-new, tab-bar-button-close): Use display property with images in default values. * lisp/tab-line.el (tab-line-button-new, tab-line-button-close): Use display property with images in default values. * src/xdisp.c (tab_bar_item_info): Add new arg close_p and set it to the value of property `close' at charpos. (get_tab_bar_item): Add new arg close_p. (handle_tab_bar_click): Add ctrl_modifier when close_p is non-nil. (Fdump_tab_bar_row): Fix crash for non-X builds.
Diffstat (limited to 'etc')
-rw-r--r--etc/images/tabs/README8
-rw-r--r--etc/images/tabs/close.xpm16
-rw-r--r--etc/images/tabs/new.xpm16
3 files changed, 40 insertions, 0 deletions
diff --git a/etc/images/tabs/README b/etc/images/tabs/README
new file mode 100644
index 00000000000..1e9f4e5b595
--- /dev/null
+++ b/etc/images/tabs/README
@@ -0,0 +1,8 @@
1This directory contains icons for the Tabs user interface.
2
3COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES
4
5Files: close.xpm new.xpm
6Author: Juri Linkov <juri@linkov.net>
7Copyright (C) 2019 Free Software Foundation, Inc.
8License: GNU General Public License version 3 or later (see COPYING)
diff --git a/etc/images/tabs/close.xpm b/etc/images/tabs/close.xpm
new file mode 100644
index 00000000000..48f063fa43b
--- /dev/null
+++ b/etc/images/tabs/close.xpm
@@ -0,0 +1,16 @@
1/* XPM */
2static char * close_xpm[] = {
3"9 9 4 1",
4" c None",
5". c #CCCCCC",
6"+ c #000000",
7"@ c #808080",
8" ..... ",
9" ....... ",
10"..+@.@+..",
11"..@+@+@..",
12"...@+@...",
13"..@+@+@..",
14"..+@.@+..",
15" ....... ",
16" ..... "};
diff --git a/etc/images/tabs/new.xpm b/etc/images/tabs/new.xpm
new file mode 100644
index 00000000000..e10a8ef238b
--- /dev/null
+++ b/etc/images/tabs/new.xpm
@@ -0,0 +1,16 @@
1/* XPM */
2static char * new_xpm[] = {
3"9 9 4 1",
4" c None",
5". c #BFBFBF",
6"+ c #808080",
7"@ c #000000",
8".........",
9"....+....",
10"....@....",
11"....@....",
12".+@@@@@+.",
13"....@....",
14"....@....",
15"....+....",
16"........."};