12 #include <QApplication> 28 const char *_titleAddText)
30 titleAddText(qApp->translate(
"SplashScreen", _titleAddText)) {
32 QPixmap pixmap(
":/icons/bitcoin");
34 if (iconColorHueShift != 0 && iconColorSaturationReduction != 0) {
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);
59 if (s > iconColorSaturationReduction) {
62 col.setHsl(h, s, l, a);
70 pixmap.convertFromImage(img);
85 titleAddText.c_str());
static const NetworkStyle * instantiate(const std::string &networkId)
Get style associated with provided BIP70 network id, or 0 if not known.
#define QAPP_APP_NAME_REGTEST
static const std::string MAIN
BIP70 chain name strings (main, test or regtest)
const int iconColorHueShift
static const unsigned network_styles_count
#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)
static const struct @8 network_styles[]