Surface: new SVG icon for the workbench, rename others
Replace the hard-coded XPM icon in `InitGui.py` for the workbench with an SVG file, which at this time is identical to the `Surface` icon. Change `CMakeLists.txt` to properly install this new icon. Rename all icons, so that all have the `Surface_` prefix. Use the new icon names in the viewproviders and task panels.
This commit is contained in:
@@ -98,7 +98,7 @@ void ViewProviderGeomFillSurface::unsetEdit(int ModNum)
|
||||
|
||||
QIcon ViewProviderGeomFillSurface::getIcon(void) const
|
||||
{
|
||||
return Gui::BitmapFactory().pixmap("BSplineSurf");
|
||||
return Gui::BitmapFactory().pixmap("Surface_BSplineSurface");
|
||||
}
|
||||
|
||||
void ViewProviderGeomFillSurface::highlightReferences(bool on)
|
||||
@@ -585,7 +585,7 @@ TaskGeomFillSurface::TaskGeomFillSurface(ViewProviderGeomFillSurface* vp, Surfac
|
||||
widget = new GeomFillSurface(vp, obj);
|
||||
widget->setWindowTitle(QObject::tr("Surface"));
|
||||
taskbox = new Gui::TaskView::TaskBox(
|
||||
Gui::BitmapFactory().pixmap("BezSurf"),
|
||||
Gui::BitmapFactory().pixmap("Surface_BSplineSurface"),
|
||||
widget->windowTitle(), true, 0);
|
||||
taskbox->groupLayout()->addWidget(widget);
|
||||
Content.push_back(taskbox);
|
||||
|
||||
Reference in New Issue
Block a user