10 #include <QApplication> 18 } network_styles[] = {
23 static const unsigned network_styles_count =
sizeof(network_styles)/
sizeof(*network_styles);
28 titleAddText(qApp->translate(
"SplashScreen", _titleAddText))
31 QPixmap pixmap(
":/icons/raven");
33 if(iconColorHueShift != 0 && iconColorSaturationReduction != 0)
36 QImage img = pixmap.toImage();
41 for(
int y=0;y<img.height();y++)
43 QRgb *scL =
reinterpret_cast< QRgb *
>( img.scanLine( y ) );
46 for(
int x=0;x<img.width();x++)
60 if(s>iconColorSaturationReduction)
72 #if QT_VERSION >= 0x040700 73 pixmap.convertFromImage(img);
75 pixmap = QPixmap::fromImage(img);
79 splashIcon = QIcon(pixmap.scaled(QSize(310,310),Qt::KeepAspectRatio,Qt::SmoothTransformation));
86 for (
unsigned x=0; x<network_styles_count; ++x)
88 if (networkId == network_styles[x].networkId)
const int iconColorHueShift
#define QAPP_APP_NAME_DEFAULT
const int iconColorSaturationReduction
#define QAPP_APP_NAME_TESTNET
NetworkStyle(const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *titleAddText)
const char * titleAddText
static const NetworkStyle * instantiate(const QString &networkId)
Get style associated with provided BIP70 network id, or 0 if not known.