corrected graying out, only to be executed when background is gray or white
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -128,10 +128,17 @@ void wxStaticText::OnDraw( wxDC &dc )
|
|||||||
if (m_width <= 0 || m_height <= 0)
|
if (m_width <= 0 || m_height <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ( !IsWindowHilited( MacGetRootWindow() ) )
|
if ( !IsWindowHilited( MacGetRootWindow() ) &&
|
||||||
|
( GetBackgroundColour() == wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE )
|
||||||
|
|| GetBackgroundColour() == wxSystemSettings::GetSystemColour(wxSYS_COLOUR_APPWORKSPACE) ) )
|
||||||
{
|
{
|
||||||
dc.SetTextForeground( wxColour( 0x80 , 0x80 , 0x80 ) ) ;
|
dc.SetTextForeground( wxColour( 0x80 , 0x80 , 0x80 ) ) ;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dc.SetTextForeground( GetForegroundColour() ) ;
|
||||||
|
}
|
||||||
|
|
||||||
wxString paragraph;
|
wxString paragraph;
|
||||||
int i = 0 ;
|
int i = 0 ;
|
||||||
wxString text = m_label;
|
wxString text = m_label;
|
||||||
|
@@ -128,10 +128,17 @@ void wxStaticText::OnDraw( wxDC &dc )
|
|||||||
if (m_width <= 0 || m_height <= 0)
|
if (m_width <= 0 || m_height <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ( !IsWindowHilited( MacGetRootWindow() ) )
|
if ( !IsWindowHilited( MacGetRootWindow() ) &&
|
||||||
|
( GetBackgroundColour() == wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE )
|
||||||
|
|| GetBackgroundColour() == wxSystemSettings::GetSystemColour(wxSYS_COLOUR_APPWORKSPACE) ) )
|
||||||
{
|
{
|
||||||
dc.SetTextForeground( wxColour( 0x80 , 0x80 , 0x80 ) ) ;
|
dc.SetTextForeground( wxColour( 0x80 , 0x80 , 0x80 ) ) ;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dc.SetTextForeground( GetForegroundColour() ) ;
|
||||||
|
}
|
||||||
|
|
||||||
wxString paragraph;
|
wxString paragraph;
|
||||||
int i = 0 ;
|
int i = 0 ;
|
||||||
wxString text = m_label;
|
wxString text = m_label;
|
||||||
|
Reference in New Issue
Block a user