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 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Copyright (c) 2011-2016 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_GUICONSTANTS_H
  5. #define STARWELS_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. /* StarwelsGUI -- 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 - danger, tx needs attention */
  26. #define COLOR_TX_STATUS_DANGER QColor(200, 100, 100)
  27. /* Transaction list -- TX status decoration - default color */
  28. #define COLOR_BLACK QColor(0, 0, 0)
  29. /* Tooltips longer than this (in characters) are converted into rich text,
  30. so that they can be word-wrapped.
  31. */
  32. static const int TOOLTIP_WRAP_THRESHOLD = 80;
  33. /* Maximum allowed URI length */
  34. static const int MAX_URI_LENGTH = 255;
  35. /* QRCodeDialog -- size of exported QR Code image */
  36. #define QR_IMAGE_SIZE 300
  37. /* Number of frames in spinner animation */
  38. #define SPINNER_FRAMES 36
  39. #define QAPP_ORG_NAME "Starwels"
  40. #define QAPP_ORG_DOMAIN "github.com/starwels"
  41. #define QAPP_APP_NAME_DEFAULT "Starwels-Qt"
  42. #define QAPP_APP_NAME_TESTNET "Starwels-Qt-testnet"
  43. #endif // STARWELS_QT_GUICONSTANTS_H