From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Changing the no-toolkit scrollbar thumb color. (minor issue) Date: Mon, 29 Sep 2003 21:23:44 +0200 (CEST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200309292008.h8TK8q5G009161@stubby.bodenonline.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1064864496 20554 80.91.224.253 (29 Sep 2003 19:41:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Sep 2003 19:41:36 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Sep 29 21:41:34 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A43tm-00056J-00 for ; Mon, 29 Sep 2003 21:41:34 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A43tm-0002zv-00 for ; Mon, 29 Sep 2003 21:41:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A43hm-0004l5-PJ for emacs-devel@quimby.gnus.org; Mon, 29 Sep 2003 15:29:10 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A43ep-0004dS-Ct for emacs-devel@gnu.org; Mon, 29 Sep 2003 15:26:07 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A43eH-0004Xj-7Y for emacs-devel@gnu.org; Mon, 29 Sep 2003 15:26:04 -0400 Original-Received: from [193.201.16.94] (helo=stubby.bodenonline.com) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A43eD-0004Mr-Hc for emacs-devel@gnu.org; Mon, 29 Sep 2003 15:25:31 -0400 Original-Received: from accessno42.bodenonline.com (accessno42.bodenonline.com [193.201.16.44]) by stubby.bodenonline.com (8.12.1/8.12.1) with ESMTP id h8TK8q5G009161; Mon, 29 Sep 2003 22:08:53 +0200 In-Reply-To: "from Robert J. Chassell at Sep 29, 2003 07:05:44 pm" Original-To: bob@rattlesnake.com X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16779 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16779 > Ouch, I've put a typo in to the manual (now fixed). verticalScrollbar > shall be verticalScrollBar (capital B). If you change that and > widget_class to widget, does it help? > > Yes, it does help, but not enough. It does not change the foreground > (the `thumb') and the background (the `trough') as intended. > > First, I put this in my ~/.gtkrc-2.0 file: > > style "dark_bg_scrollbar_style" > { > bg[ACTIVE] = "red" > fg[ACTIVE] = "green" > } > > widget "*verticalScrollBar*" style "dark_bg_scrollbar_style" > > This changes the color of the *side* of the thumb, not its top. Green > appears on the left side of the thumb and red appears on the right > side. Also, the arrows at the ends of the trough turn red. > > In other words, the foreground and background are not changed. > > Moreover, those colors did not change when I changed the colors in > my ~/.gtkrc-2.0 file entry. I suggest sticking to ~/.emacs.d/gtkrc. ~/gtkrc-2.0 has problems when running Gnome (i.e. Gconf takes precedence). Here is the example I will put in the manual. It is possible that the combination you want is impossible to achive. For example, it is not possible to have different colors for the background around the arrows and the thumb. style "scroll" { fg[NORMAL] = "red" # The arrow color. bg[NORMAL] = "yellow" # The thumb and background around the arrow. bg[ACTIVE] = "blue" # The trough color. bg[PRELIGHT] = "white" # The thumb color when the mouse is over it. } widget_class "*GtkVScrollbar" style "scroll" Jan D.