You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

networkstyle.h 1.1KB

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (c) 2014 The Starwels developers
  2. // Distributed under the MIT software license, see the accompanying
  3. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  4. #ifndef STARWELS_QT_NETWORKSTYLE_H
  5. #define STARWELS_QT_NETWORKSTYLE_H
  6. #include <QIcon>
  7. #include <QPixmap>
  8. #include <QString>
  9. /* Coin network-specific GUI style information */
  10. class NetworkStyle
  11. {
  12. public:
  13. /** Get style associated with provided BIP70 network id, or 0 if not known */
  14. static const NetworkStyle *instantiate(const QString &networkId);
  15. const QString &getAppName() const { return appName; }
  16. const QIcon &getAppIcon() const { return appIcon; }
  17. const QIcon &getTrayAndWindowIcon() const { return trayAndWindowIcon; }
  18. const QString &getTitleAddText() const { return titleAddText; }
  19. private:
  20. NetworkStyle(const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *titleAddText);
  21. QString appName;
  22. QIcon appIcon;
  23. QIcon trayAndWindowIcon;
  24. QString titleAddText;
  25. };
  26. #endif // STARWELS_QT_NETWORKSTYLE_H