[Top][All Lists]

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

Re: gtk Emacs: how specify menu font?

From: Robert J. Chassell
Subject: Re: gtk Emacs: how specify menu font?
Date: Thu, 20 Mar 2003 21:46:04 +0000 (UTC)

How do I specify a background color for both the menubar and the sub

    GNOME 1.4, BrushedMetalClean theme

    Today's Debian testing,         2003 Mar 20
    Today's GNU Emacs CVS snapshot, Thu, 2003 Mar 20  20:18 UTC
    GNU Emacs (i686-pc-linux-gnu)
        configured with --with-x-toolkit=gtk

You wrote:

   It is because this updates the X resource database.  ... Please see
   the Emacs manual, X Resources -> GTK resources for ways of doing

Thank you!  I have done that and am writing this message in an Emacs
configured with --with-x-toolkit=gtk in a window that looks OK,
although it is not what I set out to create.

(Incidentally, this instance of Emacs does not flicker, which you
suggested might be due to my having some older libraries.)

It turns out that in my ~/.gtkrc file I could specify a background for
the menubar, but not for the sub menus.

The "green" font color for the menubar was hard to read in the sub
menus, so I ended up commenting out the bg for the menubar.

Here is the ~/.gtkrc file after some experimenting (by the way, I
linked it to ~/.gtkrc-2.0, although that does not seem to matter):

    style "menufont"
       font_name = "times 20"

       fg[NORMAL] = "green4"
       fg[SELECTED] = "green3"
       fg[ACTIVE] = "green2"
       fg[PRELIGHT] = "green1"

    widget "*menu*" style "menufont"

Note that no background is set; when it is set, it only effects the
menubar, not the sub menus.

Strangely enough, the following produces exactly the same results --
none of the `bg', background, colors have any effect on either the
menubar or the submenus, even though they are not commented out!

    style "itemfont"
       font_name = "times 20"

       bg[NORMAL] = "DodgerBlue4"
       bg[ACTIVE] = "DodgerBlue3"
       bg[PRELIGHT] = "DodgerBlue2"

       fg[NORMAL] = "green4"
       fg[SELECTED] = "green3"
       fg[ACTIVE] = "green2"
       fg[PRELIGHT] = "green1"

    widget "*item*" style "itemfont"

What should I do to create a "DodgerBlue4" background for *both* the
menubar and its submenus?  (Then I will use "green", not "green4" for
fg[NORMAL]; that is what the Lucid toolkit permits me to do.)

    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]