Merge pull request #102 from triplus/SVG_WB_Icons
Add SVG workbench icons
This commit is contained in:
@@ -238,3 +238,11 @@ SET_BIN_DIR(PartGui PartGui /Mod/Part)
|
||||
SET_PYTHON_PREFIX_SUFFIX(PartGui)
|
||||
|
||||
INSTALL(TARGETS PartGui DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
SET(PartGuiIcon_SVG
|
||||
Resources/icons/PartWorkbench.svg
|
||||
)
|
||||
|
||||
fc_copy_sources(PartGui "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/Part" ${PartGuiIcon_SVG})
|
||||
|
||||
INSTALL(FILES ${PartGuiIcon_SVG} DESTINATION "${CMAKE_INSTALL_DATADIR}/Mod/Part/Resources/icons")
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
<file>icons/Part_JoinConnect.svg</file>
|
||||
<file>icons/Part_JoinCutout.svg</file>
|
||||
<file>icons/Part_JoinEmbed.svg</file>
|
||||
<file>icons/PartWorkbench.svg</file>
|
||||
<file>translations/Part_af.qm</file>
|
||||
<file>translations/Part_de.qm</file>
|
||||
<file>translations/Part_fi.qm</file>
|
||||
|
||||
28
src/Mod/Part/Gui/Resources/icons/PartWorkbench.svg
Normal file
28
src/Mod/Part/Gui/Resources/icons/PartWorkbench.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 3.7 KiB |
@@ -33,38 +33,10 @@
|
||||
|
||||
class PartWorkbench ( Workbench ):
|
||||
"Part workbench object"
|
||||
Icon = """
|
||||
/* XPM */
|
||||
static char * part_xpm[] = {
|
||||
"16 16 9 1",
|
||||
" c None",
|
||||
". c #000209",
|
||||
"+ c #00061D",
|
||||
"@ c #010A2F",
|
||||
"# c #001152",
|
||||
"$ c #001772",
|
||||
"% c #00209F",
|
||||
"& c #0025B8",
|
||||
"* c #0032FF",
|
||||
" ........ ",
|
||||
" ..+$&%%$$#+..",
|
||||
"....#%*****%..$.",
|
||||
".##@.....+..%*&.",
|
||||
".%*****&%#.***&.",
|
||||
".%*******%.***&.",
|
||||
".%*******%.***%.",
|
||||
".&*******%.***%.",
|
||||
".&*******%.***%.",
|
||||
".&*******%.***%.",
|
||||
".&*******%.***%.",
|
||||
".&*******%.***$.",
|
||||
".&*******%.**#. ",
|
||||
".@$%&****%.%.. ",
|
||||
" ......@##.. ",
|
||||
" ... "};
|
||||
"""
|
||||
MenuText = "Part"
|
||||
ToolTip = "Part workbench"
|
||||
def __init__(self):
|
||||
self.__class__.Icon = FreeCAD.getResourceDir() + "Mod/Part/Resources/icons/PartWorkbench.svg"
|
||||
self.__class__.MenuText = "Part"
|
||||
self.__class__.ToolTip = "Part workbench"
|
||||
|
||||
def Initialize(self):
|
||||
# load the module
|
||||
|
||||
Reference in New Issue
Block a user