[Top][All Lists]

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

Re: gtk Emacs: how specify menu font?

From: Jan D.
Subject: Re: gtk Emacs: how specify menu font?
Date: Fri, 21 Mar 2003 15:23:05 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210

Robert J. Chassell wrote:
How do I specify a background color for both the menubar and the sub


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.)

I can not understand how the naming for menus and dialogs work. I filed a bug about it once, but it won't be fixed in GTK, see http://bugzilla.gnome.org/show_bug.cgi?id=101987.

In order to make this particular case work, create an ~/emacs.d/gtkrc file with your style above in it, and say:

widget_class "*Menu*" style "menufont"

Only Emacs reads ~/emacs.d/gtkrc so in that file one can use a more "fuzzy" matching in widget and widget_class. You can of course do the same in ~/.gtkrc-2.0, but that would affect all applications.

        Jan D.

reply via email to

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