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.

guiconstants.h 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Copyright (c) 2011-2014 The Bitcoin Core 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 BITCOIN_QT_GUICONSTANTS_H
  5. #define BITCOIN_QT_GUICONSTANTS_H
  6. /* Milliseconds between model updates */
  7. static const int MODEL_UPDATE_DELAY = 250;
  8. /* AskPassphraseDialog -- Maximum passphrase length */
  9. static const int MAX_PASSPHRASE_SIZE = 1024;
  10. /* BitcoinGUI -- Size of icons in status bar */
  11. static const int STATUSBAR_ICONSIZE = 16;
  12. static const bool DEFAULT_SPLASHSCREEN = true;
  13. /* Invalid field background style */
  14. #define STYLE_INVALID "background:#FF8080"
  15. /* Transaction list -- unconfirmed transaction */
  16. #define COLOR_UNCONFIRMED QColor(128, 128, 128)
  17. /* Transaction list -- negative amount */
  18. #define COLOR_NEGATIVE QColor(255, 0, 0)
  19. /* Transaction list -- bare address (without label) */
  20. #define COLOR_BAREADDRESS QColor(140, 140, 140)
  21. /* Transaction list -- TX status decoration - open until date */
  22. #define COLOR_TX_STATUS_OPENUNTILDATE QColor(64, 64, 255)
  23. /* Transaction list -- TX status decoration - offline */
  24. #define COLOR_TX_STATUS_OFFLINE QColor(192, 192, 192)
  25. /* Transaction list -- TX status decoration - default color */
  26. #define COLOR_BLACK QColor(0, 0, 0)
  27. /* Tooltips longer than this (in characters) are converted into rich text,
  28. so that they can be word-wrapped.
  29. */
  30. static const int TOOLTIP_WRAP_THRESHOLD = 80;
  31. /* Maximum allowed URI length */
  32. static const int MAX_URI_LENGTH = 255;
  33. /* QRCodeDialog -- size of exported QR Code image */
  34. #define EXPORT_IMAGE_SIZE 256
  35. /* Number of frames in spinner animation */
  36. #define SPINNER_FRAMES 36
  37. #define QAPP_ORG_NAME "Bitcoin"
  38. #define QAPP_ORG_DOMAIN "bitcoin.org"
  39. #define QAPP_APP_NAME_DEFAULT "Bitcoin-Qt"
  40. #define QAPP_APP_NAME_TESTNET "Bitcoin-Qt-testnet"
  41. #endif // BITCOIN_QT_GUICONSTANTS_H