12#include <QApplication>
30 QPixmap pixmap(
":/icons/bitcoin");
39 for (
int y = 0; y <
img.height(); y++) {
43 for (
int x = 0; x <
img.width(); x++) {
50 col.getHsl(&
h, &s, &
l);
68 pixmap.convertFromImage(
img);
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
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...