From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: Changing the no-toolkit scrollbar thumb color. (minor issue) Date: Mon, 29 Sep 2003 19:05:44 +0000 (UTC) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200309291659.h8TGxr5G004544@stubby.bodenonline.com> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1064862600 16751 80.91.224.253 (29 Sep 2003 19:10:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Sep 2003 19:10:00 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Sep 29 21:09:57 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 1A43PB-0002vO-00 for ; Mon, 29 Sep 2003 21:09:57 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A43PA-0002ud-00 for ; Mon, 29 Sep 2003 21:09:56 +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 1A43OT-0008IO-Ai for emacs-devel@quimby.gnus.org; Mon, 29 Sep 2003 15:09:13 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A43Lm-0007Nw-MT for emacs-devel@gnu.org; Mon, 29 Sep 2003 15:06:26 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A43LG-0007GQ-H3 for emacs-devel@gnu.org; Mon, 29 Sep 2003 15:06:25 -0400 Original-Received: from [140.186.114.245] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A43LC-0007Fm-CS for emacs-devel@gnu.org; Mon, 29 Sep 2003 15:05:51 -0400 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.114) Mon, 29 Sep 2003 19:05:44 +0000 (UTC) Original-To: "Jan D." In-reply-to: <200309291659.h8TGxr5G004544@stubby.bodenonline.com> (jan.h.d@swipnet.se) 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:16776 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16776 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. So removed that entry and put in a new one, with a different name: style "dark_bg_test1_scrollbar_style" { bg[ACTIVE] = "blue" fg[ACTIVE] = "white" } widget "*verticalScrollBar*" style "dark_bg_test1_scrollbar_style" This did the same as before, but with nicer colors. I also tried style "dark_bg_test2_scrollbar_style" { bg = "blue" fg = "white" } widget "*verticalScrollBar*" style "dark_bg_test2_scrollbar_style" which did nothing except produce these error messages when running GDB (I have folded the lines for readability) Starting program: /usr/local/src/emacs/src/emacs -q --no-site-file \ --eval '(blink-cursor-mode 0)' /home/bob/.gtkrc-2.0:61: error: unexpected character `=', \ expected character `[' /home/bob/.gtkrc-2.0:61: error: unexpected character `=', \ expected character `[' The spelling correction is a big step forward. But the action does not change the foreground and background colors as desired. The suggestion provides a method that still fails. Hmmm.... I just removed all the ScrollBar related text from my ~/.gtkrc-2.0 file and put a newly named definition into my ~/.emacs.d/gtkrc file: style "dark_bg_test0_scrollbar_style" { bg[ACTIVE] = "red" fg[ACTIVE] = "green" } widget "*verticalScrollBar*" style "dark_bg_test0_scrollbar_style" In this one, green does not appear. The right side of the thumb becomes red, but the arrows at the ends of the trough stay dark. As before, the foreground and background are not changed. -- Robert J. Chassell Rattlesnake Enterprises http://www.rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.teak.cc bob@rattlesnake.com