[rkward-users] colors of suggested function arguments

dirk dns_hmpf at web.de
Mon Oct 10 17:56:02 UTC 2011


> Could you try what happens, if you *add* two lines, instead:
> 
> 	p.setColor (QPalette::Active, QPalette::Window, p.color
> (QPalette::Active, QPalette::ToolTipBase));
> 	p.setColor (QPalette::Active, QPalette::Text, p.color (QPalette::Active,
> QPalette::ToolTipText));
> 
It takes the settings from window background and window text. This might not 
look as fancy as the kde tooltip, but since the hints pop up quite frequently 
in rkward, maybe that is not such a bad idea if their style is a bit more 
plain?

Yesterday I wrote:
> > The background however does not change when changing between 
> > schemes (tried 10 different ones) and I also could not find any specific 
color 
> > setting which changed the background.
But today I came to realize that this is not really true. Apparently the 
background color of this specific tooltip is only updated when restarting 
rkward, furthermore it is the background of a tooltip that is used here. Since 
regular tooltips and the text were updated right away, I did not notice that 
before.

Well the good news is, this clears some of the confusion and it seems that 
only the text color is not working as expected.

p.setColor (QPalette::Inactive, QPalette::Text, p.color (QPalette::Inactive, 
QPalette::ToolTipText));

By the way Is this just me or a general error?

Best,
Dirk

Am Montag 10 Oktober 2011, 17:38:12 schrieb Thomas Friedrichsmeier:
> Hi,
> 
> On Monday 10 October 2011, dirk wrote:
> > I have no clue of C++, but when reading it and looking at
> > -----------
> > void QPalette::setColor ( ColorGroup group, ColorRole role, const QColor
> > & color )
> > 
> > Sets the color in the specified color group, used for the given color
> > role, to the specified solid color.
> > -----------
> > I had the impression it tries to assign the colors ToolTipBase and
> > ToolTipText to Window and Text, but is it not already a tooltip, which
> > should have ToolTipBase and ToolTipText set?
> 
> well, it's designed to look like a tooltip, but unfortunately, it isn't one,
> technically.
> 
> > Well whatever,  I commented the hack out (ll 810-813) and while the
> > colors do not respond to color changes in tooltip they respond to
> > changes in window. I have no clue why the tooltip colors are not used
> > (this is probably the reason for the hack?), but black on light gray is
> > at least well readable.
> 
> Could you try what happens, if you *add* two lines, instead:
> 
> 	p.setColor (QPalette::Active, QPalette::Window, p.color
> (QPalette::Active, QPalette::ToolTipBase));
> 	p.setColor (QPalette::Active, QPalette::Text, p.color (QPalette::Active,
> QPalette::ToolTipText));
> 
> Regards
> Thomas




More information about the Rkward-users mailing list