]> git.saurik.com Git - wxWidgets.git/commitdiff
use stock pens/colors
authorPaul Cornett <paulcor@bullseye.com>
Thu, 27 Apr 2006 04:45:13 +0000 (04:45 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 27 Apr 2006 04:45:13 +0000 (04:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp
src/generic/statusbr.cpp

index 2756aae706dade59886dcc1ae71303aa141bbd7a..78ab72525061c3986e98a12f966c511784cf611d 100644 (file)
@@ -4330,10 +4330,10 @@ void wxGrid::Init()
     }
     else
     {
-        m_labelBackgroundColour = wxColour( wxT("WHITE") );
+        m_labelBackgroundColour = *wxWHITE;
     }
 
-    m_labelTextColour = wxColour( wxT("BLACK") );
+    m_labelTextColour = *wxBLACK;
 
     // init attr cache
     m_attrCache.row = -1;
index 512db25f6d967d8fe9143b7e99a6a07e867e1beb..b08f2f333747e8ac7f4e4a740192c8830fe85469 100644 (file)
@@ -358,17 +358,13 @@ void wxStatusBarGeneric::InitColours()
     m_hilightPen = wxPen(hilightColour, 1, wxSOLID);
 #elif defined(__WXPM__)
     m_mediumShadowPen = wxPen(wxColour(127, 127, 127), 1, wxSOLID);
-    m_hilightPen = wxPen(_T("WHITE"), 1, wxSOLID);
+    m_hilightPen = *wxWHITE_PEN;
 
-    wxColour                        vColour;
-
-    vColour.Set(wxString(_T("LIGHT GREY")));
-    SetBackgroundColour(vColour);
-    vColour.Set(wxString(_T("BLACK")));
-    SetForegroundColour(vColour);
+    SetBackgroundColour(*wxLIGHT_GREY);
+    SetForegroundColour(*wxBLACK);
 #else
-    m_mediumShadowPen = wxPen(_T("GREY"), 1, wxSOLID);
-    m_hilightPen = wxPen(_T("WHITE"), 1, wxSOLID);
+    m_mediumShadowPen = *wxGREY_PEN;
+    m_hilightPen = *wxWHITE_PEN;
 #endif
 }