Replace the yellow Part primitive toolbar icons with the blue tree icons

This commit is contained in:
André Althaus
2024-05-18 19:26:48 +02:00
parent d8c139fef0
commit de6fe29d30
13 changed files with 23 additions and 553 deletions

View File

@@ -44,7 +44,7 @@ class CommandTube:
return {'MenuText': Qt.QT_TRANSLATE_NOOP("Part_Tube","Create tube"),
'Accel': "",
'CmdType': "AlterDoc:Alter3DView:AlterSelection",
'Pixmap': "Part_Tube",
'Pixmap': "Part_Tube_Parametric",
'ToolTip': Qt.QT_TRANSLATE_NOOP("Part_Tube","Creates a tube")}
def Activated(self):

View File

@@ -131,7 +131,7 @@ CmdPartBox2::CmdPartBox2()
sToolTipText = QT_TR_NOOP("Create a box solid without dialog");
sWhatsThis = "Part_Box2";
sStatusTip = sToolTipText;
sPixmap = "Part_Box";
sPixmap = "Part_Box_Parametric";
}
void CmdPartBox2::activated(int iMsg)
@@ -172,7 +172,7 @@ CmdPartBox3::CmdPartBox3()
sToolTipText = QT_TR_NOOP("Create a box solid without dialog");
sWhatsThis = "Part_Box3";
sStatusTip = sToolTipText;
sPixmap = "Part_Box";
sPixmap = "Part_Box_Parametric";
}
void CmdPartBox3::activated(int iMsg)
@@ -1059,7 +1059,7 @@ CmdPartImportCurveNet::CmdPartImportCurveNet()
sToolTipText= QT_TR_NOOP("Import a curve network");
sWhatsThis = "Part_ImportCurveNet";
sStatusTip = sToolTipText;
sPixmap = "Part_Box";
sPixmap = "Part_Box_Parametric";
}
void CmdPartImportCurveNet::activated(int iMsg)

View File

@@ -66,7 +66,7 @@ CmdPartCylinder::CmdPartCylinder()
sToolTipText = QT_TR_NOOP("Create a Cylinder");
sWhatsThis = "Part_Cylinder";
sStatusTip = sToolTipText;
sPixmap = "Part_Cylinder";
sPixmap = "Part_Cylinder_Parametric";
}
void CmdPartCylinder::activated(int iMsg)
@@ -108,7 +108,7 @@ CmdPartBox::CmdPartBox()
sToolTipText = QT_TR_NOOP("Create a cube solid");
sWhatsThis = "Part_Box";
sStatusTip = sToolTipText;
sPixmap = "Part_Box";
sPixmap = "Part_Box_Parametric";
}
void CmdPartBox::activated(int iMsg)
@@ -150,7 +150,7 @@ CmdPartSphere::CmdPartSphere()
sToolTipText = QT_TR_NOOP("Create a sphere solid");
sWhatsThis = "Part_Sphere";
sStatusTip = sToolTipText;
sPixmap = "Part_Sphere";
sPixmap = "Part_Sphere_Parametric";
}
void CmdPartSphere::activated(int iMsg)
@@ -192,7 +192,7 @@ CmdPartCone::CmdPartCone()
sToolTipText = QT_TR_NOOP("Create a cone solid");
sWhatsThis = "Part_Cone";
sStatusTip = sToolTipText;
sPixmap = "Part_Cone";
sPixmap = "Part_Cone_Parametric";
}
void CmdPartCone::activated(int iMsg)
@@ -234,7 +234,7 @@ CmdPartTorus::CmdPartTorus()
sToolTipText = QT_TR_NOOP("Create a torus solid");
sWhatsThis = "Part_Torus";
sStatusTip = sToolTipText;
sPixmap = "Part_Torus";
sPixmap = "Part_Torus_Parametric";
}
void CmdPartTorus::activated(int iMsg)

View File

@@ -57,7 +57,7 @@ CmdPartSimpleCylinder::CmdPartSimpleCylinder()
sToolTipText = QT_TR_NOOP("Create a Cylinder");
sWhatsThis = "Part_SimpleCylinder";
sStatusTip = sToolTipText;
sPixmap = "Part_Cylinder";
sPixmap = "Part_Cylinder_Parametric";
}
void CmdPartSimpleCylinder::activated(int iMsg)

View File

@@ -21,14 +21,8 @@
<file>icons/booleans/Part_XOR.svg</file>
</qresource>
<qresource>
<file>icons/create/Part_Box.svg</file>
<file>icons/create/Part_Cone.svg</file>
<file>icons/create/Part_Cylinder.svg</file>
<file>icons/create/Part_Primitives.svg</file>
<file>icons/create/Part_Shapebuilder.svg</file>
<file>icons/create/Part_Sphere.svg</file>
<file>icons/create/Part_Torus.svg</file>
<file>icons/create/Part_Tube.svg</file>
</qresource>
<qresource>
<file>icons/parametric/Part_Box_Parametric.svg</file>

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 5.9 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 4.8 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 6.0 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 6.3 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -1,152 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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"
version="1.1"
id="svg2821"
height="64px"
width="64px">
<defs
id="defs2823">
<linearGradient
id="linearGradient3801">
<stop
id="stop3803"
offset="0"
style="stop-color:#c4a000;stop-opacity:1" />
<stop
id="stop3805"
offset="1"
style="stop-color:#fce94f;stop-opacity:1" />
</linearGradient>
<radialGradient
gradientTransform="matrix(2.8492421,1.2585119,-0.4040415,0.9147407,-125.84131,-100.25805)"
r="19.467436"
fy="77.042847"
fx="84.883324"
cy="77.042847"
cx="84.883324"
gradientUnits="userSpaceOnUse"
id="radialGradient3701"
xlink:href="#linearGradient3377" />
<linearGradient
id="linearGradient3377">
<stop
style="stop-color:#faff2b;stop-opacity:1;"
offset="0"
id="stop3379" />
<stop
style="stop-color:#ffaa00;stop-opacity:1;"
offset="1"
id="stop3381" />
</linearGradient>
<radialGradient
gradientTransform="matrix(0.9818943,0.1894295,-0.4109427,2.1300924,40.163453,-121.11559)"
r="19.467436"
fy="94.369568"
fx="76.383331"
cy="94.369568"
cx="76.383331"
gradientUnits="userSpaceOnUse"
id="radialGradient3699"
xlink:href="#linearGradient3377" />
<linearGradient
gradientTransform="translate(-62,0)"
spreadMethod="reflect"
gradientUnits="userSpaceOnUse"
y2="35"
x2="85"
y1="35"
x1="110"
id="linearGradient3807"
xlink:href="#linearGradient3801" />
<linearGradient
gradientTransform="translate(-62,-16)"
spreadMethod="reflect"
gradientUnits="userSpaceOnUse"
y2="35"
x2="85"
y1="35"
x1="110"
id="linearGradient3807-7"
xlink:href="#linearGradient3801-5" />
<linearGradient
id="linearGradient3801-5">
<stop
id="stop3803-3"
offset="0"
style="stop-color:#c4a000;stop-opacity:1" />
<stop
id="stop3805-5"
offset="1"
style="stop-color:#fce94f;stop-opacity:1" />
</linearGradient>
</defs>
<metadata
id="metadata2826">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:creator>
<cc:Agent>
<dc:title>[wmayer]</dc:title>
</cc:Agent>
</dc:creator>
<dc:title></dc:title>
<dc:date>2011-10-10</dc:date>
<dc:relation>https://www.freecad.org/wiki/index.php?title=Artwork</dc:relation>
<dc:publisher>
<cc:Agent>
<dc:title>FreeCAD</dc:title>
</cc:Agent>
</dc:publisher>
<dc:identifier>FreeCAD/src/Mod/Part/Gui/Resources/icons/Part_Cylinder.svg</dc:identifier>
<dc:rights>
<cc:Agent>
<dc:title>FreeCAD LGPL2+</dc:title>
</cc:Agent>
</dc:rights>
<cc:license>https://www.gnu.org/copyleft/lesser.html</cc:license>
<dc:contributor>
<cc:Agent>
<dc:title>[agryson] Alexander Gryson</dc:title>
</cc:Agent>
</dc:contributor>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1">
<path
id="path2994-3"
d="m 55.000001,53 c 0,4.418278 -10.745166,8 -24,8 C 17.745168,61 7.000002,57.418278 7.000002,53 L 7,11 54.999999,11 z"
style="fill:#fce94f;stroke:#302b00;stroke-width:1.99999988;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.5;stroke-opacity:1;stroke-dashoffset:20.4" />
<path
id="path2994-3-6"
d="M 53,51.727273 C 53,55.743889 43.15027,59 31,59 18.849736,59 9.000001,55.743889 9.000001,51.727273 l -2e-6,-38 44.000001,0 z"
style="fill:url(#linearGradient3807);fill-opacity:1;stroke:#fce94f;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.5;stroke-opacity:1;stroke-dashoffset:20.4" />
<path
id="path2994-3-6-9"
d="M 53,15.727273 C 51,19 43.15027,21 31,21 18.849736,21 12,19 9.000001,15.727273"
style="fill:none;stroke:#fce94f;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.5;stroke-opacity:1;stroke-dashoffset:20.4" />
<path
transform="matrix(1.1428571,0,0,1.1428571,71,-17.571428)"
d="m -14,25 a 21,7 0 1 1 -42,0 21,7 0 1 1 42,0 z"
id="path2994"
style="fill:#fce94f;stroke:#302b00;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.5;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:20.4" />
<ellipse
ry="3.3391562"
rx="13.913092"
cy="10.815742"
cx="31.204308"
style="fill:#c4a000;fill-opacity:1;stroke:#302b00;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.5;stroke-dasharray:none;stroke-dashoffset:20.4;stroke-opacity:1"
id="path2994-0" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 5.3 KiB

View File

@@ -279,7 +279,7 @@ void Workbench::activated()
"SELECT Part::Feature SUBELEMENT Vertex COUNT 1..",
Vertex,
"Vertex tools",
"Part_Box"
"Part_Box_Parametric"
));
const char* Edge[] = {
@@ -294,7 +294,7 @@ void Workbench::activated()
"SELECT Part::Feature SUBELEMENT Edge COUNT 1..",
Edge,
"Edge tools",
"Part_Box"
"Part_Box_Parametric"
));
const char* Face[] = {
@@ -312,7 +312,7 @@ void Workbench::activated()
"SELECT Part::Feature SUBELEMENT Face COUNT 1",
Face,
"Face tools",
"Part_Box"
"Part_Box_Parametric"
));
const char* Body[] = {
@@ -322,7 +322,7 @@ void Workbench::activated()
"SELECT PartDesign::Body COUNT 1",
Body,
"Start Body",
"Part_Box"
"Part_Box_Parametric"
));
const char* Body2[] = {
@@ -332,7 +332,7 @@ void Workbench::activated()
"SELECT PartDesign::Body COUNT 1..",
Body2,
"Start Boolean",
"Part_Box"
"Part_Box_Parametric"
));
const char* Plane1[] = {
@@ -346,7 +346,7 @@ void Workbench::activated()
"SELECT App::Plane COUNT 1",
Plane1,
"Start Part",
"Part_Box"
"Part_Box_Parametric"
));
const char* Plane2[] = {
"PartDesign_NewSketch",
@@ -359,7 +359,7 @@ void Workbench::activated()
"SELECT PartDesign::Plane COUNT 1",
Plane2,
"Start Part",
"Part_Box"
"Part_Box_Parametric"
));
const char* Line[] = {
@@ -371,7 +371,7 @@ void Workbench::activated()
"SELECT PartDesign::Line COUNT 1",
Line,
"Start Part",
"Part_Box"
"Part_Box_Parametric"
));
const char* Point[] = {
@@ -384,7 +384,7 @@ void Workbench::activated()
"SELECT PartDesign::Point COUNT 1",
Point,
"Start Part",
"Part_Box"
"Part_Box_Parametric"
));
const char* NoSel[] = {
@@ -393,7 +393,7 @@ void Workbench::activated()
Watcher.push_back(new Gui::TaskView::TaskWatcherCommandsEmptySelection(
NoSel,
"Start Part",
"Part_Box"
"Part_Box_Parametric"
));
const char* Faces[] = {
@@ -406,7 +406,7 @@ void Workbench::activated()
"SELECT Part::Feature SUBELEMENT Face COUNT 2..",
Faces,
"Face tools",
"Part_Box"
"Part_Box_Parametric"
));
const char* Sketch[] = {
@@ -427,7 +427,7 @@ void Workbench::activated()
"SELECT Sketcher::SketchObject COUNT 1",
Sketch,
"Sketch tools",
"Part_Box"
"Part_Box_Parametric"
));
const char* Transformed[] = {

View File

@@ -30,7 +30,7 @@ class TaskWatcherFilter:
self.commands = ["Sketcher_NewSketch", "PartDesign_Fillet", "PartDesign_Chamfer"]
self.filter = "SELECT Part::Feature SUBELEMENT Face COUNT 1"
self.title = "Face tools"
self.icon = "Part_Box"
self.icon = "Part_Box_Parametric"
class TaskPanel:
def __init__(self):