[FEM] CCX Solver and Gmsh Mesh Task Panel Colour output improvements (#13684)
* [FEM] CCX Solver and Gmsh Mesh Task Panel Colour output improvements * [FEM] CCX Solver TP make time code more prominent * [FEM] Gmsh mesh TP make time code more prominent
This commit is contained in:
@@ -31,11 +31,12 @@ __url__ = "https://www.freecad.org"
|
||||
# it is a Gui only module and should only be imported in Gui mode
|
||||
# thus no guard is needed
|
||||
from PySide import QtGui
|
||||
from femtools.femutils import getOutputWinColor
|
||||
|
||||
|
||||
ERROR_COLOR = "red"
|
||||
WARNING_COLOR = "#ffaa00"
|
||||
INFO_COLOR = "blue"
|
||||
ERROR_COLOR = "Error"
|
||||
WARNING_COLOR = "Warning"
|
||||
INFO_COLOR = "Logging"
|
||||
|
||||
|
||||
class ReportDialog(QtGui.QDialog):
|
||||
@@ -71,7 +72,9 @@ class ReportDialog(QtGui.QDialog):
|
||||
text += "%s<br>" % self._getColoredLine(line, ERROR_COLOR)
|
||||
return text
|
||||
|
||||
def _getColoredLine(self, text, color):
|
||||
return '<font color="%s">%s</font>' % (color, text)
|
||||
def _getColoredLine(self, text, outputwin_color_type):
|
||||
return '<font color="{}">{}</font>'.format(
|
||||
getOutputWinColor(outputwin_color_type), text
|
||||
)
|
||||
|
||||
## @}
|
||||
|
||||
Reference in New Issue
Block a user