Draft: Update gui_setstyle.py and gui_utils.py (#8195)

This commit is contained in:
Roy-043
2023-01-14 20:07:59 +01:00
committed by GitHub
parent 27aa13dd00
commit b3189ccf2d
2 changed files with 42 additions and 68 deletions

View File

@@ -405,12 +405,7 @@ def format_object(target, origin=None):
if "PointColor" in obrep.PropertiesList:
obrep.PointColor = lcol
if "LineColor" in obrep.PropertiesList:
if hasattr(obrep,"FontName"):
# Do not use lcol for annotations.
# ToDo: add line color preference for annotations.
obrep.LineColor = tcol
else:
obrep.LineColor = lcol
obrep.LineColor = lcol
if "ShapeColor" in obrep.PropertiesList:
obrep.ShapeColor = fcol
else: