Opened 12 years ago

Last modified 12 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)

colortoolbar.PNG (59.1 KB) - added by danez 12 years ago.
Screenshot

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by danez

Attachment: colortoolbar.PNG added

Screenshot

comment:1 Changed 12 years ago by Tim Kosse

This appears to be a bug in wxWidgets, I'll forward it to the upstream developers.

comment:2 Changed 12 years ago by danez

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 Changed 12 years ago by Tim Kosse

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.

Note: See TracTickets for help on using tickets.