[wxGTK 2.8.7] wxStatusBar text colour

Carsten A. Arnholm arnholm at offline.no
Sun Dec 2 08:26:22 PST 2007


Robert Roebling wrote:
>
> In what colour do native GTK+ apps draw their colour? That of a
> GtkLabel? Put differently, does a wxStaticText use the colour
> that wxStatusBar should use?

Hello,

My GTK+ experience is zero, so I will have to reply to the second part 
indirectly.

This is what my wxWidgets app looks like
http://www.arnholm.org/tmp/astro_theme_kde.jpg

using these settings
http://www.arnholm.org/tmp/kde_system_settings.png

It appears that the "Standard Text" colour setting is currently used 
everywhere, except in the wxStatusBar. On closer inspection I think this is 
not quite as correct as I thought at first, there should really be different 
colours for

Button text
Window text
Standard text

When I change the KDE colour for "Window text", a presumably native 
application such as Kontact (?) uses that setting for menu text colour and 
for its status bar text colour. It seems it also uses the same colour for 
what would be a wxStaticText in wxWidgets. Finally, it uses "Button text" 
colour for button texts, unlike my app. If Kontact is a good measure it 
seems that "Standard Text" colour is only meant to refer to text colour int 
edit controls, combo boxes and lists/trees.

So from what I can understand, the text colour for a wxStatusBar text should 
be the same as the text colour used for menu items and wxStaticText.

I hope this makes sense.

-- 
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457









More information about the wx-users mailing list