Re: FVWM: What are tooltips called in FVWM?

From: Wolfgang Pfeiffer <roto_at_gmx.net>
Date: Thu, 9 Dec 2004 00:43:25 +0100

On Mon, Dec 06, 2004 at 12:22:22PM +0100, Chris Rouch wrote:
> On Sat, 04 Dec 2004 17:09:29 -0800
> Dorothy Robinson <mokuren_at_aracnet.com> wrote:
>
> > Wolfgang Pfeiffer wrote:
> > > Hi All
> > >
> > > This is what I have:
> > > FVWM 2.5.12-4
> > > xfree86-common 4.3.0.dfsg.1-8
> > > Debian/unstable (ppc)
> > > Kernel 2.4.25-ben1
> > >
> > > I'm trying to change the background color of tooltips, balloons as
> > > they're called, IINM on FVWM and elsewhere, popping up when I move
> > > the mouse over a browser window, the Buttons Bar etc. ... with only
> > > very limited success so far:
> > >
> >
> > As far as I know X11 doesn't have any concept of tooltips, so every UI
> > programmer is obliged to roll his/her own. Therefore there's no
> > standard for what they're called, or whether they have a separate
> > background resource at all. Applications written with a particular
> > toolkit sush as Gtk may be different - I don't know.
>
> Gtk calls them tooltips. The following works for me
>
> style "tooltips"
> {
> fg[NORMAL] = "#000000"
> bg[NORMAL] = "#fcf7bd"
> }
> widget "*tooltips*" style "tooltips"

Yep. Thanks. ... :) ... It helped: My ~/.gtkrc.mine (after having
removed the commented lines for the posting her):
---------------------------------------
style "gtk-tooltips-style" {
       bg[NORMAL] = "#d9d9d9"
}

widget "gtk-tooltips" style "gtk-tooltips-style"


style "gtk-default-iso-8859-15" {
       fontset = "-*-helvetica-medium-r-normal--8-*-*-*-*-*-iso8859-1,\
                  -*-arial-medium-r-normal--8-*-*-*-*-*-iso8859-1,\
                  -*-helvetica-medium-r-normal--8-*-*-*-*-*-iso8859-15,\
                  -*-arial-medium-r-normal--8-*-*-*-*-*-iso8859-15,*-r-*"
}
class "GtkWidget" style "gtk-default-iso-8859-15"

--------------------------------------------------
>
> I put this in ~/.gtkrc.mine which is included from ~./.gtkrc and
> ~/.gtkrc-2.0

I only have a ~/.gtkrc-2.0, now ... IIRC there wasn't one before.

~/.gtkrc-2.0, here:

-----------------------
#include "/usr/share/themes/ThinGeramik/gtk-2.0/gtkrc"
#include "/usr/share/themes/Default/gtk-2.0/gtkrc"
gtk-theme-name = "Simple"
include "/home/shorty/.gtkrc.mine"
----------------------

What has happened above - and for me it came as a little surprise that
this is even possible - is that now I use FVWM together with a gtk-2.0
theme, IINM. I.e FVWM still is a non-FVWM-themes one here, but with this
little trick in ~/.gtkrc-2.0 it becomes some sort of gtk-2.0 enhanced
FVWM. And the gtk-2.0 theme is one of several others provided by a
Debian package called "gnome-themes".

I think I fine-tuned the whole thing a bit by adding these options to
some font-settings for fvwm:
minspace=True:rgba=rgb:antialias=True

font setting lines now look something along the line of this:
MenuStyle * font "xft:sans-serif:minspace=True:rgba=rgb:antialias=True:Medium:Arial:Roman:size=10"

What also helped a lot was starting the FVWM session with a
startx -- -dpi 82
or something like that ..

This way I got small fonts, even *inside* program windows like Gimp,
Firefox etc. ... And non-big font sizes are an indispensable must for every
computer I use for more than 3 minutes ... :)

I uploaded a screenshot of this jewel of a Windowmanager (be warned it
has more than 530 KB ... :)
http://www.wolfgangpfeiffer.com/FVWM-gtk.2-theme.jpg

The menu bar fonts of Emacs (also seen on the screenshot) definitely
suck: This has been a catastrophe since the beginning after I
installed Debian here on this Apple machine ... This was a problem on
Gnome, too .. and it's not related to FVWM, IINM ...

My settings are definitely beginner stuff, not very cleverly
organized. Simply the result of my growing greed after some hours of
typing, trying and erroring.

But the graphical quality of this, IINM, GTK-plugged FVWM can be compared
without any doubt to the quality Gnome-2.8/metacity/gdm are providing.
And it's good to know I don't have to go back to Gnome to see a nice
desktop view ... :)

Thank you, Chris Rouch: You gave me the loose end to roll into the
first bits of FVWM/GTK knowledge.

My appreciation to all FVWM-workers out there. It seems to me you've
done an outstanding excellent job.
<http://www.fvwm.org/authors/>

Thank you.
Best Regards

w.
-- 
Wolfgang Pfeiffer 			 gpg ID: 0AA7E825
Profile, Links: http://profiles.yahoo.com/wolfgangpfeiffer
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Dec 08 2004 - 17:45:25 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:57 BST