12#include <QApplication>
28 const char *_titleAddText)
30 titleAddText(qApp->translate(
"SplashScreen", _titleAddText)) {
32 QPixmap pixmap(
":/icons/bitcoin");
36 QImage img = pixmap.toImage();
41 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++) {
52 col.getHsl(&h, &s, &l);
62 col.setHsl(h, s, l, a);
70 pixmap.convertFromImage(img);
83 if (
networkId == network_style.networkId) {
85 network_style.iconColorHueShift,
86 network_style.iconColorSaturationReduction,
std::string ChainTypeToString(ChainType chain)
NetworkStyle(const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *titleAddText)
static const NetworkStyle * instantiate(const ChainType networkId)
Get style associated with provided BIP70 network id, or 0 if not known.
#define QAPP_APP_NAME_TESTNET
#define QAPP_APP_NAME_REGTEST
#define QAPP_APP_NAME_DEFAULT
const int iconColorHueShift
const ChainType networkId
static const struct @5 network_styles[]
const int iconColorSaturationReduction