From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: text displayed in the header line with wrong faces Date: Tue, 20 Dec 2016 20:36:04 +0200 Message-ID: <83k2au30tn.fsf@gnu.org> References: <20161220102536.3smvm7bbtuib55xu@doriath.local> <87h95yu4ze.fsf@gmail.com> <20161220145726.tnffhu5kd23ph7my@doriath.local> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1482259018 26972 195.159.176.226 (20 Dec 2016 18:36:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Dec 2016 18:36:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 20 19:36:55 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJPHS-0006QN-9K for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Dec 2016 19:36:54 +0100 Original-Received: from localhost ([::1]:52936 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJPHW-00085m-FP for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Dec 2016 13:36:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJPH3-00085f-RL for help-gnu-emacs@gnu.org; Tue, 20 Dec 2016 13:36:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJPH0-0003wf-MS for help-gnu-emacs@gnu.org; Tue, 20 Dec 2016 13:36:29 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJPH0-0003wR-Is for help-gnu-emacs@gnu.org; Tue, 20 Dec 2016 13:36:26 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3122 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cJPGx-000815-SH for help-gnu-emacs@gnu.org; Tue, 20 Dec 2016 13:36:26 -0500 In-reply-to: <20161220145726.tnffhu5kd23ph7my@doriath.local> (message from Ernest =?iso-8859-1?Q?Adrogu=E9?= on Tue, 20 Dec 2016 15:57:26 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111987 Archived-At: > Date: Tue, 20 Dec 2016 15:57:26 +0100 > From: Ernest Adrogué > > (let ((cyan "#2aa198") (white "#ffffff")) > (setq header-line-format > (propertize > "abcdefghijklmnopqrstuvwxyz" > 'face `(:foreground ,cyan :background ,white)))) > > It displays cyan text on white when I select any custom theme other than > solarized, tsdh-dark or tsdh-light (the latter two are bundled with > Emacs, I think) and white text on cyan background when I select one of > those. The header-line face, as defined in faces.el, inherits from mode-line, and mode-line has the inverse-video attribute set. When a theme specifies both foreground and background colors for the mode-line face, those colors specify the face completely, so the inverse-video attribute is disabled. But the themes you mention as deviant specify only one of the two colors, so the inverse-video attribute stays. You can see all this if you invoke customize-face.