Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

networkstyle.h
Go to the documentation of this file.
1 // Copyright (c) 2014 The Bitcoin Core developers
2 // Copyright (c) 2014-2019 The Dash Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef BITCOIN_QT_NETWORKSTYLE_H
7 #define BITCOIN_QT_NETWORKSTYLE_H
8 
9 #include <QIcon>
10 #include <QPixmap>
11 #include <QString>
12 
13 /* Coin network-specific GUI style information */
15 {
16 public:
18  static const NetworkStyle *instantiate(const QString &networkId);
19 
20  const QString &getAppName() const { return appName; }
21  const QIcon &getAppIcon() const { return appIcon; }
22  const QPixmap &getSplashImage() const { return splashImage; }
23  const QIcon &getTrayAndWindowIcon() const { return trayAndWindowIcon; }
24  const QString &getTitleAddText() const { return titleAddText; }
25  const QColor &getBadgeColor() const { return badgeColor; }
26 
27 private:
28  NetworkStyle(const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *titleAddText);
29 
30  QString appName;
31  QIcon appIcon;
32  QPixmap splashImage;
34  QString titleAddText;
35  QColor badgeColor;
36 
37  void rotateColor(QColor& col, const int iconColorHueShift, const int iconColorSaturationReduction);
38  void rotateColors(QImage& img, const int iconColorHueShift, const int iconColorSaturationReduction);
39 };
40 
41 #endif // BITCOIN_QT_NETWORKSTYLE_H
void rotateColors(QImage &img, const int iconColorHueShift, const int iconColorSaturationReduction)
const QString & getAppName() const
Definition: networkstyle.h:20
QPixmap splashImage
Definition: networkstyle.h:32
const QIcon & getAppIcon() const
Definition: networkstyle.h:21
void rotateColor(QColor &col, const int iconColorHueShift, const int iconColorSaturationReduction)
const QString & getTitleAddText() const
Definition: networkstyle.h:24
const int iconColorHueShift
QIcon trayAndWindowIcon
Definition: networkstyle.h:33
const char * networkId
QString titleAddText
Definition: networkstyle.h:34
const QIcon & getTrayAndWindowIcon() const
Definition: networkstyle.h:23
QString appName
Definition: networkstyle.h:30
const int iconColorSaturationReduction
NetworkStyle(const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *titleAddText)
QColor badgeColor
Definition: networkstyle.h:35
const QColor & getBadgeColor() const
Definition: networkstyle.h:25
const QPixmap & getSplashImage() const
Definition: networkstyle.h:22
static const NetworkStyle * instantiate(const QString &networkId)
Get style associated with provided BIP70 network id, or 0 if not known.
Released under the MIT license