Patch #3402 2013-01-12 18:35

p2rkw

Build log: use same colors as Build messages pane.
Download
3402-Build_log_use.patch (831 bytes)
Category
Plugin::Refinement
Status
Accepted
Close date
2013-01-16 01:02
Assigned to
alpha0010
Index: src/plugins/compilergcc/compilergcc.cpp
===================================================================
--- src/plugins/compilergcc/compilergcc.cpp    (wersja 8771)
+++ src/plugins/compilergcc/compilergcc.cpp    (kopia robocza)
@@ -103,6 +103,13 @@
         style[caption].SetFont(style[error].GetFont());
         style[warning].SetTextColour(BlendTextColour(*wxBLUE));
         style[error].SetFont(style[info].GetFont());
+        
+        ConfigManager *mcfg = Manager::Get()->GetConfigManager(_T("message_manager"));
+        if(mcfg)
+        {
+            style[warning].SetTextColour(mcfg->ReadColour(_T("/log_warning_text_colour"), *wxBLUE));
+            style[error].SetTextColour(mcfg->ReadColour(_T("/log_error_text_colour"), *wxRED));
+        }
     }
 
     virtual wxWindow* CreateControl(wxWindow* parent)
alpha0010 2013-01-16 01:02

In trunk (modified).