Merge pull request #102 from triplus/SVG_WB_Icons
Add SVG workbench icons
This commit is contained in:
@@ -78,3 +78,11 @@ SET_BIN_DIR(ImageGui ImageGui /Mod/Image)
|
||||
SET_PYTHON_PREFIX_SUFFIX(ImageGui)
|
||||
|
||||
INSTALL(TARGETS ImageGui DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
SET(ImageGuiIcon_SVG
|
||||
Resources/icons/ImageWorkbench.svg
|
||||
)
|
||||
|
||||
fc_copy_sources(ImageGui "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/Image" ${ImageGuiIcon_SVG})
|
||||
|
||||
INSTALL(FILES ${ImageGuiIcon_SVG} DESTINATION "${CMAKE_INSTALL_DATADIR}/Mod/Image/Resources/icons")
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<RCC>
|
||||
<qresource>
|
||||
<file>icons/image-import.svg</file>
|
||||
<file>icons/ImageWorkbench.svg</file>
|
||||
<file>translations/Image_af.qm</file>
|
||||
<file>translations/Image_de.qm</file>
|
||||
<file>translations/Image_fi.qm</file>
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="64px" height="64px" id="svg2816" version="1.1" inkscape:version="0.47 r22583" sodipodi:docname="New document 2">
|
||||
<defs id="defs2818">
|
||||
<linearGradient id="linearGradient3691">
|
||||
<stop style="stop-color:#ffffff;stop-opacity:1;" offset="0" id="stop3693"/>
|
||||
<stop style="stop-color:#ffffff;stop-opacity:0;" offset="1" id="stop3695"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="linearGradient3614">
|
||||
<stop style="stop-color:#ff9100;stop-opacity:1;" offset="0" id="stop3616"/>
|
||||
<stop style="stop-color:#ffcb00;stop-opacity:1;" offset="1" id="stop3618"/>
|
||||
</linearGradient>
|
||||
<inkscape:perspective sodipodi:type="inkscape:persp3d" inkscape:vp_x="0 : 32 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_z="64 : 32 : 1" inkscape:persp3d-origin="32 : 21.333333 : 1" id="perspective2824"/>
|
||||
<inkscape:perspective id="perspective2834" inkscape:persp3d-origin="0.5 : 0.33333333 : 1" inkscape:vp_z="1 : 0.5 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_x="0 : 0.5 : 1" sodipodi:type="inkscape:persp3d"/>
|
||||
<linearGradient inkscape:collect="always" xlink:href="#linearGradient3614" id="linearGradient3620" x1="11.743128" y1="32.170429" x2="48.130219" y2="45.026917" gradientUnits="userSpaceOnUse"/>
|
||||
<linearGradient inkscape:collect="always" xlink:href="#linearGradient3691" id="linearGradient3697" x1="31.066811" y1="17.542589" x2="26.010498" y2="24.832104" gradientUnits="userSpaceOnUse"/>
|
||||
</defs>
|
||||
<sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="5.5" inkscape:cx="36.443262" inkscape:cy="37.115994" inkscape:current-layer="layer1" showgrid="true" inkscape:document-units="px" inkscape:grid-bbox="true" inkscape:window-width="1280" inkscape:window-height="758" inkscape:window-x="0" inkscape:window-y="19" inkscape:window-maximized="0"/>
|
||||
<metadata id="metadata2821">
|
||||
<rdf:RDF>
|
||||
<cc:Work rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
||||
<dc:title/>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g id="layer1" inkscape:label="Layer 1" inkscape:groupmode="layer">
|
||||
<path style="fill:url(#linearGradient3620);stroke:#000000;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;fill-opacity:1" d="M 15.5625,7.1875 C 9.3030958,8.0438884 4.3678703,15.275413 4.625,23.375 4.9515534,33.661434 21.60932,54.318007 32.15625,56.53125 42.70318,58.744492 54.188679,52.372502 57.84375,45.5 61.498821,38.627498 61.941413,25.449497 55.011528,20.277915 48.081643,15.106334 38.919251,19.010413 32.660649,17.707222 26.402047,16.404031 21.821904,6.3311116 15.5625,7.1875 z m 3.84375,13.03125 c 3.317245,0.06828 6.589652,3.301752 6.53125,6.71875 -0.955433,9.86142 -14.912326,0.966181 -9.75,-5.625 0.99025,-0.792613 2.113002,-1.116509 3.21875,-1.09375 z" id="path2840" sodipodi:nodetypes="cszzzzzcccc"/>
|
||||
<path style="fill:#008f10;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1" d="m 26.484363,35.972858 c -3.430345,1.49337 -1.427147,5.521391 -0.995166,8.148201 0.07684,2.825426 3.049863,6.651994 6.009348,4.612197 2.725914,-2.617267 2.01049,-6.876427 0.925458,-10.088285 -0.847269,-2.556979 -3.463456,-3.681919 -5.93964,-2.672113 z" id="path3644"/>
|
||||
<path style="fill:#e32c00;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1" d="m 35.483904,38.801286 c -0.614014,3.657403 -0.588904,7.644227 1.24659,10.969758 0.526463,0.878063 1.097031,1.827625 2.013469,2.339827 1.295182,0.687126 3.044551,0.542866 4.059789,-0.573318 1.649455,-1.632946 2.102305,-4.363465 1.071235,-6.439563 -0.760845,-1.232935 -2.036005,-2.003223 -3.125803,-2.914563 -1.34932,-1.039951 -2.730874,-2.328706 -2.998644,-4.099852 -0.174498,-1.08408 0.399099,-2.293989 -0.293445,-3.274314 -0.410772,-0.711168 -1.462137,-1.306295 -2.192922,-0.701898 -0.73315,0.818306 -0.346058,2.017311 -0.155827,2.971112 0.141329,0.57038 0.30568,1.13773 0.375558,1.722811 z" id="path3654"/>
|
||||
<path style="fill:#0027e3;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1" d="m 35.998163,30.058875 c 2.8139,0.725202 5.667849,2.68437 6.055182,5.780259 -0.324522,2.843364 2.643122,3.395323 4.816063,3.564547 2.43744,-0.225527 2.724431,4.475957 5.109502,2.908887 2.027846,-2.172623 1.204782,-5.559781 -0.180215,-7.835537 -1.508283,-2.056753 -2.407321,-5.463248 -5.708611,-4.057709 -3.157474,0.569068 -5.221518,-3.684217 -8.46863,-2.397408 -0.898837,0.220429 -2.117867,0.917831 -1.623291,2.036961 z" id="path3666"/>
|
||||
<path style="fill:url(#linearGradient3697);stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1" d="m 8.4545455,16 c 0.3729909,-2.870498 3.8305635,-6.7852537 7.5614375,-6.8417847 3.730873,-0.056531 5.876442,3.4550297 8.19629,5.5046247 2.319847,2.049595 5.771043,5.128064 9.412612,5.445747 3.641568,0.317684 15.02154,-2.069696 19.155465,1.318072 4.133925,3.387768 -0.871431,3.832023 -2.490539,3.212457 -1.619108,-0.619566 -1.352078,-0.939581 -4.911282,-1.038375 -3.559204,-0.09879 -11.811244,1.104267 -16.176385,-0.70779 -4.365141,-1.812057 -6.862758,-6.001185 -9.727103,-6.668204 -2.864345,-0.667019 -3.263795,0.398284 -4.750374,1.21977 -1.486579,0.821486 -4.595606,1.863537 -5.4884704,0.654879 C 8.3433326,16.890738 8.0815545,18.870499 8.4545455,16 z" id="path3677" sodipodi:nodetypes="czzzzzzzzzzz"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.0 KiB |
+10
-163
@@ -32,170 +32,17 @@
|
||||
|
||||
|
||||
class ImageWorkbench ( Workbench ):
|
||||
"Image workbench object"
|
||||
Icon = """
|
||||
/* XPM */
|
||||
static const char *colors[]={
|
||||
"16 16 134 2",
|
||||
"Qt c None",
|
||||
".# c #000000",
|
||||
"#y c #000000",
|
||||
".L c #000000",
|
||||
".e c #000000",
|
||||
"#X c #000000",
|
||||
"#M c #000000",
|
||||
"#z c #000000",
|
||||
"#L c #120000",
|
||||
".Y c #000000",
|
||||
".d c #0c0c00",
|
||||
".K c #140a00",
|
||||
"ad c #120900",
|
||||
".a c #1b0909",
|
||||
"ab c #0f0800",
|
||||
".A c #231106",
|
||||
"ac c #1b0b00",
|
||||
".c c #291a0f",
|
||||
".b c #2e2012",
|
||||
".X c #311f09",
|
||||
"#l c #362104",
|
||||
"#Y c #241000",
|
||||
"## c #2b1900",
|
||||
".l c #402300",
|
||||
".J c #3f2611",
|
||||
".M c #372000",
|
||||
"#7 c #3b1f00",
|
||||
"#. c #503511",
|
||||
".s c #51361e",
|
||||
"#6 c #542d00",
|
||||
"#N c #462700",
|
||||
".f c #603805",
|
||||
"#m c #4d2b00",
|
||||
"aa c #693900",
|
||||
"#A c #583000",
|
||||
".k c #71553d",
|
||||
".B c #6b4100",
|
||||
".t c #754800",
|
||||
".G c #764d27",
|
||||
"#x c #94651a",
|
||||
".W c #946b35",
|
||||
"#8 c #8e5100",
|
||||
".I c #a07749",
|
||||
"#W c #a5660d",
|
||||
"#Z c #945200",
|
||||
".R c #9f6932",
|
||||
".Z c #9d5d00",
|
||||
"#K c #ba801a",
|
||||
".j c #c4aa92",
|
||||
".V c #cea05c",
|
||||
"a# c #c67700",
|
||||
".F c #c69869",
|
||||
".g c #cda881",
|
||||
"#9 c #c57700",
|
||||
"#O c #b87700",
|
||||
".9 c #d4a558",
|
||||
".z c #dab68c",
|
||||
"#k c #c99c51",
|
||||
"#a c #d47c00",
|
||||
"a. c #d58300",
|
||||
".i c #e6d2bf",
|
||||
".m c #e88400",
|
||||
"#B c #d88300",
|
||||
".h c #ead8c7",
|
||||
"#n c #e88600",
|
||||
".S c #e8b877",
|
||||
".N c #e98600",
|
||||
"#0 c #e98d00",
|
||||
".U c #efc27c",
|
||||
".Q c #f0bd7e",
|
||||
".H c #ecc28c",
|
||||
"#5 c #f3a204",
|
||||
".r c #f2d9bb",
|
||||
".x c #f3d3b0",
|
||||
".y c #f4d6b1",
|
||||
".3 c #fcc478",
|
||||
".4 c #fdc878",
|
||||
"#D c #0ccd06",
|
||||
"#p c #13950d",
|
||||
"#v c #4547cc",
|
||||
"#u c #5e589f",
|
||||
"#C c #62a200",
|
||||
"#q c #69af39",
|
||||
"#i c #6e6ba1",
|
||||
"#I c #7a668f",
|
||||
"#P c #80ac00",
|
||||
"#j c #9084a1",
|
||||
"#E c #91831e",
|
||||
"#d c #95a24e",
|
||||
"#Q c #a08500",
|
||||
"#h c #a28d84",
|
||||
"#F c #a62f2f",
|
||||
"#t c #a8745f",
|
||||
"#w c #ae9381",
|
||||
"#J c #af8e6c",
|
||||
"#R c #b21e07",
|
||||
"#H c #b56e49",
|
||||
"#G c #b93932",
|
||||
"#o c #bd8900",
|
||||
"#s c #c77d4b",
|
||||
"#S c #cc0d12",
|
||||
"#T c #da2d17",
|
||||
"#2 c #da5100",
|
||||
"#3 c #db3b01",
|
||||
"#c c #de8f0e",
|
||||
"#e c #e0bb65",
|
||||
"#1 c #ea8300",
|
||||
"#r c #ebb04b",
|
||||
"#U c #eda11a",
|
||||
".8 c #edc882",
|
||||
"#4 c #ee9603",
|
||||
".7 c #f3cc83",
|
||||
"#g c #fcc664",
|
||||
".C c #fe8c00",
|
||||
".O c #ff8500",
|
||||
".D c #ff890a",
|
||||
".u c #ff8a00",
|
||||
".1 c #ff8c05",
|
||||
".0 c #ff8d00",
|
||||
"#b c #ff8e00",
|
||||
".v c #ff9f38",
|
||||
".P c #ffa336",
|
||||
".2 c #ffb352",
|
||||
"#V c #ffbf1c",
|
||||
"#f c #ffc563",
|
||||
".n c #ffc683",
|
||||
".E c #ffc885",
|
||||
".5 c #ffcd7c",
|
||||
".6 c #ffd17d",
|
||||
".T c #ffd894",
|
||||
".w c #ffe1bf",
|
||||
".p c #fff3e2",
|
||||
".o c #fff3e4",
|
||||
".q c #fff6e4",
|
||||
"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
|
||||
"QtQt.#.a.b.c.d.#QtQtQtQtQtQtQtQt",
|
||||
"Qt.e.f.g.h.i.j.k.dQtQtQtQtQtQtQt",
|
||||
"Qt.l.m.n.o.p.q.r.sQtQtQtQtQtQtQt",
|
||||
"Qt.t.u.v.w.x.y.z.AQtQtQtQtQtQtQt",
|
||||
"Qt.B.C.D.E.F.G.H.I.J.K.LQtQtQtQt",
|
||||
"Qt.M.N.O.P.Q.R.S.T.U.V.W.X.#QtQt",
|
||||
"Qt.Y.Z.0.1.2.3.4.5.6.7.8.9#..#Qt",
|
||||
"QtQt###a#b#c#d#e#f#g#h#i#j#k#lQt",
|
||||
"QtQt.L#m#n#o#p#q#r#s#t#u#v#w#x#y",
|
||||
"QtQtQt#z#A#B#C#D#E#F#G#H#I#J#K#L",
|
||||
"QtQtQtQt#M#N#O#P#Q#R#S#T#U#V#W#X",
|
||||
"QtQtQtQtQt#y#Y#Z#0#1#2#3#4#5#6Qt",
|
||||
"QtQtQtQtQtQtQt.Y#7#8#9a.a#aa#zQt",
|
||||
"QtQtQtQtQtQtQtQtQt#zabacad#yQtQt",
|
||||
"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt"};
|
||||
"""
|
||||
MenuText = "Image"
|
||||
ToolTip = "Image workbench"
|
||||
"Image workbench object"
|
||||
def __init__(self):
|
||||
self.__class__.Icon = FreeCAD.getResourceDir() + "Mod/Image/Resources/icons/ImageWorkbench.svg"
|
||||
self.__class__.MenuText = "Image"
|
||||
self.__class__.ToolTip = "Image workbench"
|
||||
|
||||
def Initialize(self):
|
||||
# load the module
|
||||
import ImageGui
|
||||
def GetClassName(self):
|
||||
return "ImageGui::Workbench"
|
||||
def Initialize(self):
|
||||
# load the module
|
||||
import ImageGui
|
||||
def GetClassName(self):
|
||||
return "ImageGui::Workbench"
|
||||
|
||||
Gui.addWorkbench(ImageWorkbench())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user