From 802ca4e0cb0e7c73d04a8b70f6e860bd8986dcdd Mon Sep 17 00:00:00 2001 From: vocx-fc Date: Fri, 14 Feb 2020 22:56:04 -0600 Subject: [PATCH] Draft: new view provider icon for the angle dimension The linear and radial dimensions use the same Proxy class, but the angular dimension uses a different Proxy class. To recognize quickly in the tree view the different types of dimensions, we provide a new icon. The icon is inspired on the `Draft_Dimension.svg` and `TechDraw_AngleDimensions.svg` icons. --- src/Mod/Draft/Draft.py | 2 +- src/Mod/Draft/Resources/Draft.qrc | 1 + .../icons/Draft_DimensionAngular.svg | 592 ++++++++++++++++++ 3 files changed, 594 insertions(+), 1 deletion(-) create mode 100644 src/Mod/Draft/Resources/icons/Draft_DimensionAngular.svg diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index 9677028d28..febc7082d6 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -4172,7 +4172,7 @@ class _ViewProviderAngularDimension(_ViewProviderDraft): return ["2D","3D"][getParam("dimstyle",0)] def getIcon(self): - return ":/icons/Draft_Dimension_Tree.svg" + return ":/icons/Draft_DimensionAngular.svg" def __getstate__(self): return self.Object.ViewObject.DisplayMode diff --git a/src/Mod/Draft/Resources/Draft.qrc b/src/Mod/Draft/Resources/Draft.qrc index 4a1aaa5696..0156b55822 100644 --- a/src/Mod/Draft/Resources/Draft.qrc +++ b/src/Mod/Draft/Resources/Draft.qrc @@ -24,6 +24,7 @@ icons/Draft_DelPoint.svg icons/Draft_Dimension.svg icons/Draft_Dimension_Tree.svg + icons/Draft_DimensionAngular.svg icons/Draft_Dot.svg icons/Draft_Downgrade.svg icons/Draft_Draft.svg diff --git a/src/Mod/Draft/Resources/icons/Draft_DimensionAngular.svg b/src/Mod/Draft/Resources/icons/Draft_DimensionAngular.svg new file mode 100644 index 0000000000..7b317da2b5 --- /dev/null +++ b/src/Mod/Draft/Resources/icons/Draft_DimensionAngular.svg @@ -0,0 +1,592 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Draft_FlipDimension + + Wed Nov 13 19:25:01 2013 -0200 + + + [Yorik van Havre] + + + + + FreeCAD LGPL2+ + + + + + FreeCAD + + + FreeCAD/src/Mod/Draft/Resources/icons/Draft_ + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + [agryson] Alexander Gryson + + + + + triangle + arrow + curved + + + Two triangles, one pointing left, the other right, with a curved arrow below them pointing from the left to the right and slightly upwards + + + +