Skip to content

Commit

Permalink
Draft: new icon for Draft_Dimension in the tree view in SVG, instead …
Browse files Browse the repository at this point in the history
…of XPM
  • Loading branch information
vocx-fc authored and wwmayer committed Oct 7, 2019
1 parent aebb0ed commit 6383de2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 50 deletions.
52 changes: 2 additions & 50 deletions src/Mod/Draft/Draft.py
Expand Up @@ -4354,31 +4354,7 @@ def setDisplayMode(self,mode):
return mode

def getIcon(self):
return """
/* XPM */
static char * dim_xpm[] = {
"16 16 4 1",
" c None",
". c #000000",
"+ c #FFFF00",
"@ c #FFFFFF",
" ",
" ",
" . . ",
" .. .. ",
" .+. .+. ",
" .++. .++. ",
" .+++. .. .+++. ",
".++++. .. .++++.",
" .+++. .. .+++. ",
" .++. .++. ",
" .+. .+. ",
" .. .. ",
" . . ",
" ",
" ",
" "};
"""
return ":/icons/Draft_Dimension_Tree.svg"

def __getstate__(self):
return self.Object.ViewObject.DisplayMode
Expand Down Expand Up @@ -4694,31 +4670,7 @@ def getDefaultDisplayMode(self):
return ["2D","3D"][getParam("dimstyle",0)]

def getIcon(self):
return """
/* XPM */
static char * dim_xpm[] = {
"16 16 4 1",
" c None",
". c #000000",
"+ c #FFFF00",
"@ c #FFFFFF",
" ",
" ",
" . . ",
" .. .. ",
" .+. .+. ",
" .++. .++. ",
" .+++. .. .+++. ",
".++++. .. .++++.",
" .+++. .. .+++. ",
" .++. .++. ",
" .+. .+. ",
" .. .. ",
" . . ",
" ",
" ",
" "};
"""
return ":/icons/Draft_Dimension_Tree.svg"

def __getstate__(self):
return self.Object.ViewObject.DisplayMode
Expand Down
1 change: 1 addition & 0 deletions src/Mod/Draft/Resources/Draft.qrc
Expand Up @@ -22,6 +22,7 @@
<file>icons/Draft_Cursor.svg</file>
<file>icons/Draft_DelPoint.svg</file>
<file>icons/Draft_Dimension.svg</file>
<file>icons/Draft_Dimension_Tree.svg</file>
<file>icons/Draft_Dot.svg</file>
<file>icons/Draft_Downgrade.svg</file>
<file>icons/Draft_Draft.svg</file>
Expand Down

0 comments on commit 6383de2

Please sign in to comment.