aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJuri Linkov2026-04-14 20:14:15 +0300
committerJuri Linkov2026-04-14 20:14:15 +0300
commit0384600a21fb363e623afa658d1e66a54f79d2fb (patch)
tree8b7666d5bc0152b3f6fc8b8805c32a25b1422661 /etc
parenta1899d8cb17e82e9729d39ce12ca0a8575690353 (diff)
downloademacs-0384600a21fb363e623afa658d1e66a54f79d2fb.tar.gz
emacs-0384600a21fb363e623afa658d1e66a54f79d2fb.zip
New faces 'tab-line-active' and 'tab-line-inactive' (bug#80742)
This is intended to parallel the 'mode-line-active/inactive' and 'header-line-active/inactive' distinction. * doc/emacs/display.texi (Standard Faces): Document the new faces. * lisp/faces.el (tab-line-active, tab-line-inactive): Add new faces. * lisp/tab-line.el (tab-line-faces): Add new faces to MEMBERS arg of 'defgroup'. (tab-line-auto-hscroll): Use one of the faces depending on 'mode-line-window-selected-p'. * src/dispextern.h (CURRENT_TAB_LINE_ACTIVE_FACE_ID_3) (CURRENT_TAB_LINE_ACTIVE_FACE_ID): New macros based on header-line equivalents. (CURRENT_TAB_LINE_HEIGHT): Use CURRENT_TAB_LINE_ACTIVE_FACE_ID. (face_id): Use TAB_LINE_ACTIVE_FACE_ID and TAB_LINE_INACTIVE_FACE_ID instead of TAB_LINE_FACE_ID. * src/xdisp.c (window_box_height, pos_visible_p, init_iterator) (window_text_pixel_size, display_mode_lines, display_mode_line) (format-mode-line): Replace all uses of TAB_LINE_FACE_ID with either a new macro or the new face IDs. * src/xfaces.c (lookup_basic_face, realize_basic_faces): Map new face IDs to their lisp symbols. (syms_of_xfaces): New lisp symbols.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 3639d1b47e8..3c02002d0ff 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -658,6 +658,12 @@ will change its appearance if the tab buffer has been modified.
658This user option controls which buffers should appear in the tab line. 658This user option controls which buffers should appear in the tab line.
659By default, this is set to not filter the buffers. 659By default, this is set to not filter the buffers.
660 660
661+++
662*** New faces 'tab-line-active' and 'tab-line-inactive'.
663These inherit from the 'tab-line' face, but the faces actually used
664on the tab lines are now these two: the selected window uses
665'tab-line-active', non-selected windows use 'tab-line-inactive'.
666
661** Help 667** Help
662 668
663+++ 669+++