mirror of https://github.com/BOINC/boinc.git
- MGR: Use theme colors when setting up the color scheme for list items.
The previous use of gray just happened to be the same color as the deselected but highlighted list item which caused the 'gray' backgrounded items to display a white background after Windows inverted the color for highlighting. By using theme colors we avoid having to worry about such things. clientgui/ BOINCBaseView.cpp DlgEventLog.cpp svn path=/trunk/boinc/; revision=20780
This commit is contained in:
parent
f912708105
commit
84554063f1
|
@ -1561,3 +1561,15 @@ Charlie 2 Mar 2010
|
|||
|
||||
clientgui/
|
||||
DlgItemProperties.cpp, .h
|
||||
|
||||
Rom 3 Mar 2010
|
||||
- MGR: Use theme colors when setting up the color scheme for list items.
|
||||
The previous use of gray just happened to be the same color as the
|
||||
deselected but highlighted list item which caused the 'gray'
|
||||
backgrounded items to display a white background after Windows
|
||||
inverted the color for highlighting. By using theme colors we avoid
|
||||
having to worry about such things.
|
||||
|
||||
clientgui/
|
||||
BOINCBaseView.cpp
|
||||
DlgEventLog.cpp
|
||||
|
|
|
@ -123,8 +123,16 @@ CBOINCBaseView::CBOINCBaseView(
|
|||
m_SortArrows->Add( wxIcon( sortdescending_xpm ) );
|
||||
m_pListPane->SetImageList(m_SortArrows, wxIMAGE_LIST_SMALL);
|
||||
|
||||
m_pWhiteBackgroundAttr = new wxListItemAttr(*wxBLACK, *wxWHITE, wxNullFont);
|
||||
m_pGrayBackgroundAttr = new wxListItemAttr(*wxBLACK, wxColour(240, 240, 240), wxNullFont);
|
||||
m_pWhiteBackgroundAttr = new wxListItemAttr(
|
||||
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT),
|
||||
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW),
|
||||
wxNullFont
|
||||
);
|
||||
m_pGrayBackgroundAttr = new wxListItemAttr(
|
||||
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT),
|
||||
wxSystemSettings::GetColour(wxSYS_COLOUR_3DLIGHT),
|
||||
wxNullFont
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -168,10 +168,26 @@ bool CDlgEventLog::Create( wxWindow* WXUNUSED(parent), wxWindowID id, const wxSt
|
|||
m_pList->InsertColumn(COLUMN_TIME, _("Time"), wxLIST_FORMAT_LEFT, 130);
|
||||
m_pList->InsertColumn(COLUMN_MESSAGE, _("Message"), wxLIST_FORMAT_LEFT, 378);
|
||||
|
||||
m_pMessageInfoAttr = new wxListItemAttr(*wxBLACK, *wxWHITE, wxNullFont);
|
||||
m_pMessageErrorAttr = new wxListItemAttr(*wxRED, *wxWHITE, wxNullFont);
|
||||
m_pMessageInfoGrayAttr = new wxListItemAttr(*wxBLACK, wxColour(240, 240, 240), wxNullFont);
|
||||
m_pMessageErrorGrayAttr = new wxListItemAttr(*wxRED, wxColour(240, 240, 240), wxNullFont);
|
||||
m_pMessageInfoAttr = new wxListItemAttr(
|
||||
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT),
|
||||
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW),
|
||||
wxNullFont
|
||||
);
|
||||
m_pMessageErrorAttr = new wxListItemAttr(
|
||||
*wxRED,
|
||||
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW),
|
||||
wxNullFont
|
||||
);
|
||||
m_pMessageInfoGrayAttr = new wxListItemAttr(
|
||||
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT),
|
||||
wxSystemSettings::GetColour(wxSYS_COLOUR_3DLIGHT),
|
||||
wxNullFont
|
||||
);
|
||||
m_pMessageErrorGrayAttr = new wxListItemAttr(
|
||||
*wxRED,
|
||||
wxSystemSettings::GetColour(wxSYS_COLOUR_3DLIGHT),
|
||||
wxNullFont
|
||||
);
|
||||
|
||||
GetSizer()->Fit(this);
|
||||
GetSizer()->SetSizeHints(this);
|
||||
|
|
Loading…
Reference in New Issue