Opened 17 years ago
Last modified 17 years ago
#3202 closed Bug report
Toolbar does not take Windows default color
Reported by: | danez | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | FileZilla Client |
Keywords: | Cc: | danez, Tim Kosse | |
Component version: | Operating system type: | ||
Operating system version: |
Description
I use the Zune-Desktop Theme from Microsoft on Windows XP, but the Toolbar of FZ3 stays on a different color (see Attachment).
Maybe the color of the Toolbar is not linked to the correct windows-elment-color.
Data:
FZ3 RC2
Windows XP SP2 (Zune Theme : http://go.microsoft.com/fwlink/?LinkID=75078)
Attachments (1)
Change History (4)
by , 17 years ago
Attachment: | colortoolbar.PNG added |
---|
comment:1 by , 17 years ago
This appears to be a bug in wxWidgets, I'll forward it to the upstream developers.
comment:2 by , 17 years ago
I do not know how the whole interface(*.xrc) <-> engine (*.cpp) works, but when integrating a Toolbar the default way without Recources, i would do this:
m_toolBar1 = this->CreateToolBar( wxTB_HORIZONTAL, wxID_ANY );
m_toolBar1->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
comment:3 by , 17 years ago
Yes, SetBackgroundColour is a workaround. It shouldn't be needed though. The toolbar sample of wxWidgets doesn't use SetBackgroundColour either.
I've committed this workaround to SVN, will be available in next version.
Screenshot