update hardcoded XPMs to .svg files. Updated .svg icons for clarity.

This commit is contained in:
Max Wilfinger
2024-03-23 14:59:24 +01:00
committed by wwmayer
parent 82e1091c19
commit 6ca8b2daae
33 changed files with 3207 additions and 593 deletions

View File

@@ -3618,23 +3618,7 @@ QIcon ViewProviderSketch::mergeColorfulOverlayIcons(const QIcon& orig) const
QIcon mergedicon = orig;
if (!getSketchObject()->FullyConstrained.getValue()) {
QPixmap px;
static const char* const sketcher_notfullyconstrained_xpm[] = {"9 9 3 1",
". c None",
"# c #dbaf00",
"a c #ffcc00",
"##.....##",
"#a#...#a#",
"#aa#.#aa#",
".#a#.#a#.",
".#a#.#a#.",
".#a#.#a#.",
"#aa#.#aa#",
"#a#...#a#",
"##.....##"};
px = QPixmap(sketcher_notfullyconstrained_xpm);
static QPixmap px(Gui::BitmapFactory().pixmapFromSvg("Sketcher_NotFullyConstrained", QSize(10, 10)));
mergedicon = Gui::BitmapFactoryInst::mergePixmap(
mergedicon, px, Gui::BitmapFactoryInst::BottomRight);
}