Update of /cvsroot/sharedaemon/ui-wx/src
In directory sc8-pr-cvs1:/tmp/cvs-serv5503
Modified Files:
Images.cpp
Log Message:
Use colour from config file for toolbar button background
Index: Images.cpp
===================================================================
RCS file: /cvsroot/sharedaemon/ui-wx/src/Images.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- Images.cpp 27 Nov 2003 10:01:54 -0000 1.22
+++ Images.cpp 27 Nov 2003 10:21:40 -0000 1.23
@@ -181,7 +181,10 @@
width = width+6;
height = y+36;
- mdc.SetBrush(wxBrush(*wxTheColourDatabase->FindColour(wxT("WHEAT")), wxSOLID));
+ wxString background;
+ m_config->Read(wxT("/General/ToolButtonBackground"), &background, wxT("WHEAT"));
+ m_config->Write(wxT("/General/ToolButtonBackground"), background);
+ mdc.SetBrush(wxBrush(*wxTheColourDatabase->FindColour(background), wxSOLID));
mdc.SetFont(wxFont(10, wxDECORATIVE, wxNORMAL, wxBOLD));
tmp_new = wxBitmap(width, height);
|