11 #include <QApplication> 30 for(
int y=0;y<img.height();y++)
32 QRgb *scL =
reinterpret_cast< QRgb *
>( img.scanLine( y ) );
35 for(
int x=0;x<img.width();x++)
66 QApplication::setApplicationName(
appName);
72 QPixmap appIconPixmap(
":/icons/bitcoin");
73 QPixmap splashImagePixmap(
":/images/" + theme +
"/splash");
78 QImage appIconImg = appIconPixmap.toImage();
79 QImage splashImageImg = splashImagePixmap.toImage();
85 #if QT_VERSION >= 0x040700 86 appIconPixmap.convertFromImage(appIconImg);
87 splashImagePixmap.convertFromImage(splashImageImg);
89 appIconPixmap = QPixmap::fromImage(appIconImg);
90 splashImagePixmap = QPixmap::fromImage(splashImageImg);
const int iconColorHueShift
static const struct @17 network_styles[]
NetworkStyle(const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *titleAddText)
void rotateColors(QImage &img, const int iconColorHueShift, const int iconColorSaturationReduction)
static const unsigned network_styles_count
static const NetworkStyle * instantiate(const QString &networkId)
#define QAPP_APP_NAME_DEFAULT
const int iconColorSaturationReduction
#define QAPP_APP_NAME_TESTNET
const char * titleAddText