emacs-devel
[Top][All Lists]
Advanced

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

Re:Re: face-remapping-alist can not override internal-border face?


From: tumashu
Subject: Re:Re: face-remapping-alist can not override internal-border face?
Date: Sun, 10 Mar 2019 08:35:55 +0800 (CST)











At 2019-03-09 22:55:58, "Eli Zaretskii" <address@hidden> wrote:
>> Date: Sat, 9 Mar 2019 22:28:32 +0800 (CST)
>> From: tumashu  <address@hidden>
>> Cc: "Eli Zaretskii" <address@hidden>, "address@hidden" <address@hidden>
>> 
>> I think set-face-background will change internal-border globally,
>> Do we have any method which can let differnet frame have different border 
>> color?
>
>Faces are defined per frame, so it should work, yes.  E.g.,
>set-face-background accepts a FRAME argument.


I have tested, but I found that it *only* work normal frame,  child-frame do 
not work:

(defface test
  '((t (:inherit default :background "green")))
  "Face used by the ivy-posframe."
  :group 'ivy-posframe)

(set-face-background
 'internal-border
 (face-attribute 'test :background)
 (make-frame `((internal-border-width . 100)
               (parent-frame . ,(window-frame)))))

(set-face-background
 'internal-border
 (face-attribute 'test :background)
 (make-frame `((internal-border-width . 100))))



reply via email to

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