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

@@ -48,36 +48,6 @@
using namespace Gui;
/* XPM */
static const char *not_found[]={
"24 24 2 1",
"# c #000000",
". c #ffffff",
"........................",
"........................",
"...##..............##...",
"..####............####..",
"..#####..........#####..",
"..######........#####...",
"...######......######...",
"....######....######....",
".....######..######.....",
"......############......",
".......##########.......",
"........########........",
".........######.........",
"........########........",
".......##########.......",
"......############......",
".....######..######.....",
"....######....######....",
"..#######......######...",
".#######........######..",
".######..........#####..",
"..####.............##...",
"........................",
"........................"};
namespace Gui {
class BitmapFactoryInstP
{
@@ -281,7 +251,7 @@ QPixmap BitmapFactoryInst::pixmap(const char* name) const
}
Base::Console().Warning("Cannot find icon: %s\n", name);
return QPixmap(not_found);
return QPixmap(Gui::BitmapFactory().pixmapFromSvg("help-browser", QSize(16, 16)));
}
QPixmap BitmapFactoryInst::pixmapFromSvg(const char* name, const QSizeF& size,