12#include <QApplication>
26 const char *_titleAddText)
28 titleAddText(qApp->translate(
"SplashScreen", _titleAddText)) {
30 QPixmap pixmap(
":/icons/bitcoin");
34 QImage img = pixmap.toImage();
39 for (
int y = 0; y < img.height(); y++) {
40 QRgb *scL =
reinterpret_cast<QRgb *
>(img.scanLine(y));
43 for (
int x = 0; x < img.width(); x++) {
50 col.getHsl(&h, &s, &l);
60 col.setHsl(h, s, l, a);
68 pixmap.convertFromImage(img);
79 if (
networkId == network_style.networkId) {
81 network_style.iconColorHueShift,
82 network_style.iconColorSaturationReduction,
static const std::string MAIN
BIP70 chain name strings (main, test or regtest)
static const NetworkStyle * instantiate(const std::string &networkId)
Get style associated with provided BIP70 network id, or 0 if not known.
NetworkStyle(const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *titleAddText)
#define QAPP_APP_NAME_TESTNET
#define QAPP_APP_NAME_REGTEST
#define QAPP_APP_NAME_DEFAULT
const int iconColorHueShift
static const struct @5 network_styles[]
const int iconColorSaturationReduction