bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#50798: 28.0.50; Tab line close button is off-center until it is high


From: Eli Zaretskii
Subject: bug#50798: 28.0.50; Tab line close button is off-center until it is highlighted with the mouse
Date: Sun, 10 Oct 2021 20:58:33 +0300

> From: Juri Linkov <juri@linkov.net>
> Cc: larsi@gnus.org,  luangruo@yahoo.com,  50798@debbugs.gnu.org
> Date: Sun, 10 Oct 2021 20:04:05 +0300
> 
> >> (defface test
> >>   '((t :height 2.0))
> >>   "")
> >>
> >> (defface test-tab
> >>   '((default :inherit test)
> >>     (t :box (:line-width 1 :style released-button)))
> >>   "")
> >>
> >> (defface test-highlight
> >>   '((default :inherit test-tab))
> >>   "")
> >
> > Thanks, but I'm not sure I understand what you expected and why.  the
> > face 'test' is defined to be twice the width of the default face.  The
> > face test-highlight inherits from it, but the 't' case doesn't change
> > the :height attribute, so it ends up having the same height, just with
> > the :box attribute.  That's why it looks bad on the header line: its
> > height is greater than that of header-line.
> >
> > What did you expect to happen with these definitions of faces?
> 
> My previous patch avoided inheriting from the face that changes the
> height of the mouse-highlight face.  Maybe it was the right solution?

Did you intend that the face which inherited will NOT have the changed
size like the one it inherited from?  If so, not inheriting is
probably the easiest solution.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]