9 #include <QApplication> 17 } network_styles[] = {
22 static const unsigned network_styles_count =
sizeof(network_styles)/
sizeof(*network_styles);
27 titleAddText(qApp->translate(
"SplashScreen", _titleAddText))
30 QPixmap pixmap(
":/icons/fabcoin");
32 if(iconColorHueShift != 0 && iconColorSaturationReduction != 0)
35 QImage img = pixmap.toImage();
40 for(
int y=0;y<img.height();y++)
42 QRgb *scL =
reinterpret_cast< QRgb *
>( img.scanLine( y ) );
45 for(
int x=0;
x<img.width();
x++)
59 if(s>iconColorSaturationReduction)
71 #if QT_VERSION >= 0x040700 72 pixmap.convertFromImage(img);
74 pixmap = QPixmap::fromImage(img);
84 for (
unsigned x=0;
x<network_styles_count; ++
x)
86 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.