emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the no-toolkit scrollbar thumb color. (minor issue)


From: Robert J. Chassell
Subject: Re: Changing the no-toolkit scrollbar thumb color. (minor issue)
Date: Mon, 29 Sep 2003 19:05:44 +0000 (UTC)

   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                             address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]