set text color to system foreground color (working on #22: correct use of os theme colors)

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1604 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2011-01-09 13:37:15 +00:00
parent d9fce86e2b
commit a59248ae95
+1
View File
@@ -41,6 +41,7 @@ void NativeLookEditor::drawViewer(RotatedDC& dc, ValueViewer& v) {
draw_control_box(this, dc.getDC(), dc.trRectStraight(s.getInternalRect().grow(1)), current_editor == e, e != nullptr);
// draw label
dc.SetFont(*wxNORMAL_FONT);
dc.SetTextForeground(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNTEXT));
// TODO : tr using stylesheet or using game?
dc.DrawText(tr(getStylePackage(), s.fieldP->name, capitalize_sentence),
RealPoint(margin_left - s.left, 1));