Skip to content

Commit

Permalink
Icon themes Part viewproviders
Browse files Browse the repository at this point in the history
  • Loading branch information
triplus authored and yorikvanhavre committed Jun 22, 2020
1 parent de152bf commit 29f3ab6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Mod/Part/Gui/ViewProviderBoolean.cpp
Expand Up @@ -65,13 +65,13 @@ QIcon ViewProviderBoolean::getIcon(void) const
if (obj) {
Base::Type type = obj->getTypeId();
if (type == Base::Type::fromName("Part::Common"))
return Gui::BitmapFactory().pixmap("Part_Common");
return Gui::BitmapFactory().iconFromTheme("Part_Common");
else if (type == Base::Type::fromName("Part::Fuse"))
return Gui::BitmapFactory().pixmap("Part_Fuse");
return Gui::BitmapFactory().iconFromTheme("Part_Fuse");
else if (type == Base::Type::fromName("Part::Cut"))
return Gui::BitmapFactory().pixmap("Part_Cut");
return Gui::BitmapFactory().iconFromTheme("Part_Cut");
else if (type == Base::Type::fromName("Part::Section"))
return Gui::BitmapFactory().pixmap("Part_Section");
return Gui::BitmapFactory().iconFromTheme("Part_Section");
}

return ViewProviderPart::getIcon();
Expand Down Expand Up @@ -171,7 +171,7 @@ std::vector<App::DocumentObject*> ViewProviderMultiFuse::claimChildren(void)cons

QIcon ViewProviderMultiFuse::getIcon(void) const
{
return Gui::BitmapFactory().pixmap("Part_Fuse");
return Gui::BitmapFactory().iconFromTheme("Part_Fuse");
}

void ViewProviderMultiFuse::updateData(const App::Property* prop)
Expand Down Expand Up @@ -302,7 +302,7 @@ std::vector<App::DocumentObject*> ViewProviderMultiCommon::claimChildren(void)co

QIcon ViewProviderMultiCommon::getIcon(void) const
{
return Gui::BitmapFactory().pixmap("Part_Common");
return Gui::BitmapFactory().iconFromTheme("Part_Common");
}

void ViewProviderMultiCommon::updateData(const App::Property* prop)
Expand Down

0 comments on commit 29f3ab6

Please sign in to comment.