unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: luangruo@yahoo.com, larsi@gnus.org, 50798@debbugs.gnu.org
Subject: bug#50798: 28.0.50; Tab line close button is off-center until it is highlighted with the mouse
Date: Mon, 27 Sep 2021 18:39:13 +0300	[thread overview]
Message-ID: <878rzi11xq.fsf@mail.linkov.net> (raw)
In-Reply-To: <83a6k0phik.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 25 Sep 2021 22:44:19 +0300")

>> >> Try starting Emacs with a larger font, then.  As in
>> >>
>> >>   emacs -Q -fn "FOO-18"
>> >>
>> >> where FOO is the font you get by default, like "DejaVu Sans Mono" or
>> >> something.
>> >
>> > I'm still not seeing any difference whether the mouse is over the x or
>> > not.
>>
>> I can reproduce this with a very big font on the tab-line, but not tab-bar.
>
> We _are_ talking about the tab-line.

The problem is that hovering mouse over the text property 'mouse-face'
set to 'tab-line-highlight' that contains ':inherit' applies its face
attributes such as :box :line-width twice thus shifting the image upwards.

This patch fixes the problem by copying face attributes from
the inherited face directly to the face used by 'mouse-face':

diff --git a/lisp/tab-line.el b/lisp/tab-line.el
index 4a751b384e..3993e625c9 100644
--- a/lisp/tab-line.el
+++ b/lisp/tab-line.el
@@ -119,7 +119,11 @@ tab-line-tab-current
   :group 'tab-line-faces)
 
 (defface tab-line-highlight
-  '((t :inherit tab-line-tab))
+  '((((class color) (min-colors 88))
+     :box (:line-width 1 :style released-button)
+     :background "grey85"
+     :foreground "black")
+    (t :inverse-video nil))
   "Tab line face for highlighting."
   :version "27.1"
   :group 'tab-line-faces)
-- 





  parent reply	other threads:[~2021-09-27 15:39 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8735ptxhzs.fsf.ref@yahoo.com>
2021-09-25  6:54 ` bug#50798: 28.0.50; Tab line close button is off-center until it is highlighted with the mouse Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-25  7:17   ` Lars Ingebrigtsen
2021-09-25  8:00     ` Eli Zaretskii
2021-09-25  8:19       ` Lars Ingebrigtsen
2021-09-25  8:22         ` Eli Zaretskii
2021-09-25  8:30           ` Lars Ingebrigtsen
2021-09-25 18:53             ` Juri Linkov
2021-09-25 19:44               ` Eli Zaretskii
2021-09-26  5:33                 ` Lars Ingebrigtsen
2021-09-27 15:39                 ` Juri Linkov [this message]
2021-09-27 18:40                   ` Eli Zaretskii
2021-09-28 18:46                     ` Juri Linkov
2021-10-02 10:08                       ` Eli Zaretskii
2021-10-02 19:36                         ` Juri Linkov
2021-10-03 11:49                           ` Eli Zaretskii
2021-10-03 16:51                             ` Juri Linkov
2021-10-03 17:22                               ` Eli Zaretskii
2021-10-03 17:42                                 ` Juri Linkov
2021-10-03 18:00                                   ` Eli Zaretskii
2021-10-04 17:41                                     ` Juri Linkov
2021-10-04 17:52                                       ` Eli Zaretskii
2021-10-06  7:16                                         ` Juri Linkov
2021-10-07 10:13                                           ` Eli Zaretskii
2021-10-07 12:52                                             ` Eli Zaretskii
2021-10-10 17:04                                             ` Juri Linkov
2021-10-10 17:58                                               ` Eli Zaretskii
2021-10-11 18:28                                                 ` Juri Linkov
2021-09-25  8:30           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-25  7:59   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878rzi11xq.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=50798@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.org \
    --cc=luangruo@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).