unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Robert J. Chassell" <bob@rattlesnake.com>
Cc: emacs-devel@gnu.org
Subject: Re: Changing the no-toolkit scrollbar thumb color. (minor issue)
Date: Mon, 29 Sep 2003 19:05:44 +0000 (UTC)	[thread overview]
Message-ID: <m1A43L6-000IeBC@rattlesnake.com> (raw)
In-Reply-To: <200309291659.h8TGxr5G004544@stubby.bodenonline.com> (jan.h.d@swipnet.se)

   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

  reply	other threads:[~2003-09-29 19:05 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-26 20:13 Changing the no-toolkit scrollbar thumb color. (minor issue) Rob Browning
2003-09-26 21:23 ` Luc Teirlinck
2003-09-26 21:32   ` Rob Browning
2003-09-27 18:16   ` Robert J. Chassell
2003-09-27 21:55     ` Luc Teirlinck
2003-09-28 13:08       ` Robert J. Chassell
2003-09-28 16:38         ` Jan D.
2003-09-28 21:17           ` Robert J. Chassell
2003-09-29 16:01             ` Jan D.
2003-09-29 19:05               ` Robert J. Chassell [this message]
2003-09-29 19:23                 ` Jan D.
2003-09-28 16:42         ` Luc Teirlinck
2003-09-28 18:01           ` Luc Teirlinck
2003-09-28 21:38             ` Robert J. Chassell
2003-09-28 23:47               ` Luc Teirlinck
2003-09-29  0:52                 ` Robert J. Chassell
2003-09-29  1:30                   ` Luc Teirlinck
2003-09-29 11:58                     ` Robert J. Chassell
2003-09-30 12:22                       ` Richard Stallman
2003-09-29 19:31               ` Richard Stallman
2003-09-30  0:11                 ` Luc Teirlinck
2003-09-30 13:55                   ` Stefan Monnier
2003-09-30 14:25                     ` Miles Bader
2003-09-30 15:16                       ` Stefan Monnier
2003-10-04 18:29                     ` Jan D.
2003-09-30 20:25                   ` Richard Stallman
2003-10-04 18:36                     ` Jan D.
2003-10-05  3:24                       ` Richard Stallman
2003-10-05 17:56                       ` Luc Teirlinck
2003-10-05 18:12                         ` Jan D.
2003-10-05 18:27                           ` Luc Teirlinck
2003-10-05 19:16                             ` Luc Teirlinck
2003-10-05 20:57                             ` Jan D.
2003-10-05 22:09                               ` Luc Teirlinck
2003-10-06  0:14                                 ` Miles Bader
2003-10-06  2:22                         ` Miles Bader
2003-10-06  4:15                           ` Luc Teirlinck
2003-10-06  4:34                             ` Luc Teirlinck
2003-10-12 15:04                               ` Jan D.
2003-09-30  0:27                 ` Robert J. Chassell
2003-09-30 20:24                   ` Richard Stallman
2003-10-01  0:35                   ` Danilo Segan
2003-10-04  0:35                     ` Robert J. Chassell
2003-10-04 18:55                       ` Jan D.
2003-10-04 18:43                     ` Jan D.
2003-10-04 19:35                       ` Danilo Segan
2003-10-04 18:11                   ` Jan D.
2003-10-05  0:25                     ` Miles Bader
2003-10-05  7:23                       ` Jan D.
2003-10-05  7:59                         ` Miles Bader
2003-09-28 21:25           ` Robert J. Chassell
2003-09-28 17:37     ` Luc Teirlinck
2003-09-28 21:33       ` Robert J. Chassell
2003-09-28 22:03         ` Luc Teirlinck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1A43L6-000IeBC@rattlesnake.com \
    --to=bob@rattlesnake.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).