From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Org-mode with color-theme.el Date: Thu, 5 Apr 2007 18:54:20 +0200 Message-ID: References: <87zm5tn06h.fsf@bzg.ath.cx> <1175340956.7815.0.camel@bertrand.carcosa.net> <1175428209.15434.7.camel@bertrand.carcosa.net> <87lkh7yvcc.fsf@bzg.ath.cx> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HZWc8-0002tQ-OY for emacs-orgmode@gnu.org; Thu, 05 Apr 2007 14:23:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HZWc6-0002s2-1f for emacs-orgmode@gnu.org; Thu, 05 Apr 2007 14:23:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZWc5-0002rz-UH for emacs-orgmode@gnu.org; Thu, 05 Apr 2007 14:23:13 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HZWYg-0007kz-OH for emacs-orgmode@gnu.org; Thu, 05 Apr 2007 14:19:42 -0400 In-Reply-To: <87lkh7yvcc.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: zedek@gnu-rox.org, emacs-orgmode@gnu.org On Apr 5, 2007, at 12:22, Bastien wrote: > Of course, org could itself contain at least to faces-schemes: one for > white background, one for dark background. The good new is that the > current faces seem to be okay for both ! The faces in org already have different definitions for light and dark backgrounds, and even different values for terminals with only 8 colors and for black-and-white terminals. This is not something you see when using customize, but if you look in the source file, you see something like: (defface org-level-1 (org-compatible-face '((((class color) (min-colors 88) (background light)) (:foreground "Blue1")) (((class color) (min-colors 88) (background dark)) (:foreground "LightSkyBlue")) (((class color) (min-colors 16) (background light)) (:foreground "Blue")) (((class color) (min-colors 16) (background dark)) (:foreground "LightSkyBlue")) (((class color) (min-colors 8)) (:foreground "blue" :bold t)) (t (:bold t)))) "Face used for level 1 headlines." :group 'org-faces) org-compatible-face is a function translating an Emacs definition to the XEmacs syntax where necessary. Most of these faces I simply stole from font-lock.el - Carsten