[rkward-users] colors of suggested function arguments

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Tue Oct 11 15:40:27 UTC 2011


Hi,

On Monday 10 October 2011, dirk wrote:
> > 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.

Could you do one more experiment for me? Use the following four lines instead 
of the original ones (also removing the two lines added above):

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

Does that achieve tooltip colors?

> 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?

Well, the nice thing about the tooltip style (as long as it works) is that it 
is already optimized for display on top of other widgets. I.e. in most styles 
it contrasts with both the generic window background (e.g. the background of 
the tool bar), and the background of text areas.

Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-users/attachments/20111011/f580b0e5/attachment.sig>


More information about the Rkward-users mailing list