From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jeremy Nickurak Newsgroups: gmane.emacs.help Subject: Faces inheriting colors from gtk theme Date: Sat, 30 Jun 2012 13:35:25 -0600 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec5524206a006c904c3b5aa0f X-Trace: dough.gmane.org 1341085755 27758 80.91.229.3 (30 Jun 2012 19:49:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 30 Jun 2012 19:49:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 30 21:49:15 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sl3fO-0000b7-Nd for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jun 2012 21:49:14 +0200 Original-Received: from localhost ([::1]:55365 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sl3fO-0005CI-Kr for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jun 2012 15:49:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sl3S7-0004St-UN for help-gnu-emacs@gnu.org; Sat, 30 Jun 2012 15:35:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sl3S5-0002m7-W9 for help-gnu-emacs@gnu.org; Sat, 30 Jun 2012 15:35:31 -0400 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:43077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sl3S5-0002kB-Ix for help-gnu-emacs@gnu.org; Sat, 30 Jun 2012 15:35:29 -0400 Original-Received: by lbjn8 with SMTP id n8so7116848lbj.0 for ; Sat, 30 Jun 2012 12:35:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nickurak.ca; s=google-dkim; h=mime-version:sender:x-originating-ip:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=cdXGe9KSEv3lRAxn7IwtgAagXYSKYASDcC76KlfAabw=; b=e6oZzjh1kqBOqTr2RT7vaKk7KYAZJj5zeIjJW2hfjM7kptqKXuMptHtVErAEbaMOl0 NO9jZN9O/v77S8U5JqWWj6uqmTujeQMSb7Y5CHb/Z01HcGWkMwSuxu9Sg25iOdnnxbxe 4S5iS6Zpy3hRKSn7a4jPQH2T/UheSFw47uzBw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:date:x-google-sender-auth :message-id:subject:from:to:content-type:x-gm-message-state; bh=cdXGe9KSEv3lRAxn7IwtgAagXYSKYASDcC76KlfAabw=; b=bfN5qEbVvDDj2T+5t5dizeX0JU0MCk8Q3vjVGghUa83jxby5obdhQmEXIlzFT7d1I1 Ius74YDWDVz5FtNNK5r8Cff6EMyLHwCQUqlk/4LG3y1KhDEikckm5u9ysSlQm0qxgDks toVhmgOpeSfyzLGZKOvHBKiZJeyZG87XeukahqmCrp4EZDz1RNGaeM+c7bCCzmacPWgb s7kL9zaQEJHdgOFFNgU8ixVPU4FDpRq3uDEqMFWdCNH5pAttSlr+aN4f/F0Q9eoZnVDl q7cnIIqjfOYsbZjr9+xs1l6l3j65htcv9dxQOdd14pcaDTM8qrgbJM9UBO8DeAAV3y+J hCqw== Original-Received: by 10.152.46.232 with SMTP id y8mr6770024lam.18.1341084925953; Sat, 30 Jun 2012 12:35:25 -0700 (PDT) Original-Received: by 10.114.0.138 with HTTP; Sat, 30 Jun 2012 12:35:25 -0700 (PDT) X-Originating-IP: [68.148.28.35] X-Google-Sender-Auth: _7pFMSw1rrXN4oMfwtCBswpLZG4 X-Gm-Message-State: ALoCoQlNpqSGZlIJ/+Ghw74g9sIYt1/KbKn3iufl22k6XHm2A97UeDTHMxyeR86YvUINAOOimLdO X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.217.169 X-Mailman-Approved-At: Sat, 30 Jun 2012 15:49:08 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85592 Archived-At: --bcaec5524206a006c904c3b5aa0f Content-Type: text/plain; charset=UTF-8 I've read and observed that emacs24 uses standard gtk colors for the "region" face. Is it also supposed to do that for other faces? Or is there a way to get that behavior? In particular, it would seem natural to define faces as follows: (cursor ((t (:foreground "theme_selected_fg_color_" :background "theme_selected_bg_color_")))) (mouse ((t (:foreground "theme_selected_fg_color_" :background "theme_selected_bg_color_")))) (fringe ((t (:foreground "theme_fg_color_" :background "theme_bg_color_")))) (border ((t (:foreground "theme_fg_color_" :background "theme_bg_color_")))) (mode-line ((t (:foreground "theme_fg_color_" :background "theme_bg_color_" :box (:line-width -1 :style released-button))))) (mode-line-buffer-id ((t (:foreground "theme_fg_color_" :background "theme_bg_color_")))) (mode-line-inactive ((t (:foreground "theme_fg_color_" :background "theme_bg_color_")))) (minibuffer-prompt ((t (:foreground "theme_fg_color_" :background "theme_base_color_")))) (region ((t (:foreground "theme_fg_color_" :background "theme_selected_bg_color_")))) (secondary-selection ((t (:foreground "theme_fg_color_" :background "theme_selected_bg_color_")))) (tooltip ((t (:background "theme_tooltip_bg_color_" :foreground "theme_tooltip_fg_color_")))) (default ((t (:foreground "theme_fg_color_" :background "theme_base_color_"))))) ... where the theme_X_colors were derived from the appropriate gtk color scheme property. --bcaec5524206a006c904c3b5aa0f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I've read and observed that emacs24 uses standard gtk colors for t= he =C2=A0"region" face.

Is it also suppo= sed to do that for other faces? Or is there a way to get that behavior?

In particular, it would seem natural to define faces as= follows:

(cursor ((t (:foreground "them= e_selected_fg_color_" :background "theme_selected_bg_color_"= ))))
(mouse ((t (:foreground "theme_selected_fg_color_" :backgrou= nd "theme_selected_bg_color_"))))
(fringe ((t (:foregro= und "theme_fg_color_" :background "theme_bg_color_"))))=
(border ((t (:foreground "theme_fg_color_" :background "= ;theme_bg_color_"))))
(mode-line ((t (:foreground "them= e_fg_color_" :background "theme_bg_color_" :box (:line-width= -1 :style released-button)))))
(mode-line-buffer-id ((t (:foreground "theme_fg_color_" :bac= kground "theme_bg_color_"))))
(mode-line-inactive ((t (= :foreground "theme_fg_color_" :background "theme_bg_color_&q= uot;))))
(minibuffer-prompt ((t (:foreground "theme_fg_color_" :backg= round "theme_base_color_"))))
(region ((t (:foreground = "theme_fg_color_" :background "theme_selected_bg_color_"= ;))))
(secondary-selection ((t (:foreground "theme_fg_color_" :bac= kground "theme_selected_bg_color_"))))
(tooltip ((t (:b= ackground "theme_tooltip_bg_color_" :foreground "theme_toolt= ip_fg_color_"))))
(default ((t (:foreground "theme_fg_color_" :background &quo= t;theme_base_color_")))))

... where the= theme_X_colors were derived from the appropriate gtk color scheme property= .
--bcaec5524206a006c904c3b5aa0f--