From: "Robert J. Chassell" <bob@rattlesnake.com>
Cc: emacs-devel@gnu.org
Subject: Re: gtk Emacs: how specify menu font?
Date: Thu, 20 Mar 2003 21:46:04 +0000 (UTC) [thread overview]
Message-ID: <m18w7rQ-000IeGC@rattlesnake.com> (raw)
In-Reply-To: <200303182319.h2INJ0bN024745@stubby.bodenonline.com> (jan.h.d@swipnet.se)
How do I specify a background color for both the menubar and the sub
menus?
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 21.3.50.235 (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
this.
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 bob@rattlesnake.com
next prev parent reply other threads:[~2003-03-20 21:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-18 14:34 gtk Emacs: how specify menu font? Robert J. Chassell
2003-03-18 22:21 ` Jan D.
2003-03-20 21:46 ` Robert J. Chassell [this message]
2003-03-21 14:23 ` Jan D.
2003-03-21 15:25 ` Robert J. Chassell
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m18w7rQ-000IeGC@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.