From 73df4e6fc0ed90a30e5958232dbc737d8a47e492 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 22 Nov 2018 14:25:37 -0200 Subject: [PATCH] Arch: Fixed default axis bubble size --- src/Mod/Arch/ArchAxis.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/Arch/ArchAxis.py b/src/Mod/Arch/ArchAxis.py index 093e443b8b..e0385919d7 100644 --- a/src/Mod/Arch/ArchAxis.py +++ b/src/Mod/Arch/ArchAxis.py @@ -294,10 +294,11 @@ class _ViewProviderAxis: def setProperties(self,vobj): + ts = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft").GetFloat("textheight",350) pl = vobj.PropertiesList if not "BubbleSize" in pl: vobj.addProperty("App::PropertyLength","BubbleSize","Axis", QT_TRANSLATE_NOOP("App::Property","The size of the axis bubbles")) - vobj.BubbleSize = 500 + vobj.BubbleSize = ts*1.42 if not "NumberingStyle" in pl: vobj.addProperty("App::PropertyEnumeration","NumberingStyle","Axis", QT_TRANSLATE_NOOP("App::Property","The numbering style")) vobj.NumberingStyle = ["1,2,3","01,02,03","001,002,003","A,B,C","a,b,c","I,II,III","L0,L1,L2"] @@ -323,7 +324,7 @@ class _ViewProviderAxis: vobj.FontName = Draft.getParam("textfont","Arial,Sans") if not "FontSize" in pl: vobj.addProperty("App::PropertyLength","FontSize","Axis",QT_TRANSLATE_NOOP("App::Property","The font size")) - vobj.FontSize = 350 + vobj.FontSize = ts if not "ShowLabel" in pl: vobj.addProperty("App::PropertyBool","ShowLabel","Axis",QT_TRANSLATE_NOOP("App::Property","If true, show the labels")) if not "LabelOffset" in pl: