Gui: issue #6765: Overlay Icons for Std Link nearly invisible small

This commit is contained in:
wmayer
2022-04-20 08:51:59 +02:00
parent 0cf9a778a5
commit a93997df64

View File

@@ -1762,14 +1762,15 @@ QIcon ViewProviderLink::getIcon() const {
QPixmap ViewProviderLink::getOverlayPixmap() const {
auto ext = getLinkExtension();
int px = 12 * getMainWindow()->devicePixelRatioF();
if(ext && ext->getLinkedObjectProperty() && ext->_getElementCountValue())
return BitmapFactory().pixmap("LinkArrayOverlay");
return BitmapFactory().pixmapFromSvg("LinkArrayOverlay", QSizeF(px,px));
else if(hasSubElement)
return BitmapFactory().pixmap("LinkSubElement");
return BitmapFactory().pixmapFromSvg("LinkSubElement", QSizeF(px,px));
else if(hasSubName)
return BitmapFactory().pixmap("LinkSubOverlay");
return BitmapFactory().pixmapFromSvg("LinkSubOverlay", QSizeF(px,px));
else
return BitmapFactory().pixmap("LinkOverlay");
return BitmapFactory().pixmapFromSvg("LinkOverlay", QSizeF(px,px));
}
void ViewProviderLink::onChanged(const App::Property* prop) {