From a59248ae9545ebda6242abc5e6952ff73affe4b0 Mon Sep 17 00:00:00 2001 From: twanvl Date: Sun, 9 Jan 2011 13:37:15 +0000 Subject: [PATCH] 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 --- src/gui/control/native_look_editor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/control/native_look_editor.cpp b/src/gui/control/native_look_editor.cpp index 3180d7c5..ddd68174 100644 --- a/src/gui/control/native_look_editor.cpp +++ b/src/gui/control/native_look_editor.cpp @@ -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));