pan-users
[Top][All Lists]
Advanced

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

Re: [Pan-users] Size of Toolbar icons; canot read 'tooltips' text


From: Duncan
Subject: Re: [Pan-users] Size of Toolbar icons; canot read 'tooltips' text
Date: Sun, 30 Jul 2017 03:24:11 +0000 (UTC)
User-agent: Pan/0.143 (Quaint little villages here and there; b4329315c)

Duncan posted on Sun, 30 Jul 2017 00:20:27 +0000 as excerpted:

> So now to rummaging around in my config, trying to see what controls the
> gtk2 tooltip colors...
> 
> <oops>
> 
> It just started raining outside, and I remember a big storm was forcast
> for this evening... and last time a big storm came thru the lights
> blinked and the computer rebooted... more than once until I just shut it
> off for a few hours... so I'm going to send this now and finish later...

Quit raining, for now...  More supposed to be coming (a total of 20-25 
mm, .8 to 1.0 inch, over ~8 hours, big news here in Phoenix, which google 
says averages only just over 8 inches, 200 mm rain, in 36 days with rain, 
annually)...

So it seems my old manual setting is still there, but being overridden by 
the now fixed kde/plasma-set colors.

What you'll want is a file with something like this (for a gtk2-based 
pan, I /think/ gtk3 still uses it or similar, but am not sure):

>>>>

style "ToolTip"
{
  bg[NORMAL] = { 0.008, 0.035, 0.075 }
  base[NORMAL] = { 0.027, 0.075, 0.184 }
  text[NORMAL] = { 1.000, 0.502, 0.000 }
  fg[NORMAL] = { 0.357, 0.788, 0.000 }
}

widget "gtk-tooltip" style "ToolTip"
widget "gtk-tooltips" style "ToolTip"

<<<<

That's from the gtkrc file created by plasma.  The widget lines actually 
do the style setting; the style can be named anything you like as long as 
it's the same name in all three places, and the numbers represent the 
standard red/green/blue, with 1.000 being full on (0xff) and 0.000 being 
full off.  So { 1.000, 1.000, 1.000 } is white, all zeros is black, the 
same fractional between the two for all three values is some shade of 
gray, { 0.000, 1.000, 0.000 } is full green, no red or blue, etc.

And if you're happy with the rest and just want better contrast, you 
probably only actually need one of the color setting lines, depending on 
which part you actually want to set.  Here, it was the fg (foreground) 
value I needed to set, and I simply set it to black, like so (there are 
significant differences from the above, explained below):

>>>>

# This sets a black tooltip foreground color

style "tooltips"
{
        fg[NORMAL] = "#000000"
}

widget "gtk-tooltips*"          style "tooltips"

<<<<

Note the #-comment lines and the lowercase "tooltips" style name used 
here, instead of the Titlecase initial-caps used in the style name 
above.  I'm not sure, but I /believe/ it's case sensitive so the above 
would reset the other tooltips color elements to the defaults as they're 
not actually set in the style setup here, and the name is different due 
to case sensitivity so it wouldn't inherit from the style named using 
title-case.

And as you can see I chose to use HTML style hex-value color codes which 
I'm more familiar with instead of the fractional values.  At least back 
then with gtk2, it worked just fine.  I presume it still does...


Meanwhile, once you get your file setup, you need to tell pan about it.  
To do that you ensure that the GTK2_RC_FILES variable (or try 
GTK_RC_Files, without the 2) is set accordingly in the environment 
exported to pan.  For now I'll assume you know how to set and export 
environmental vars and skip explaining it, but if you need to know how to 
do that too, just ask.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman




reply via email to

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