PIVX Core  5.6.99
P2P Digital Currency
guiconstants.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2014 The Bitcoin developers
2 // Copyright (c) 2014-2015 The Dash developers
3 // Copyright (c) 2015-2020 The PIVX Core developers
4 // Distributed under the MIT/X11 software license, see the accompanying
5 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 
7 #ifndef PIVX_QT_GUICONSTANTS_H
8 #define PIVX_QT_GUICONSTANTS_H
9 
10 /* Milliseconds between model updates */
11 static const int MODEL_UPDATE_DELAY = 1000;
12 
13 /* AskPassphraseDialog -- Maximum passphrase length */
14 static const int MAX_PASSPHRASE_SIZE = 1024;
15 
16 /* Pivx GUI -- Size of icons in status bar */
17 static const int STATUSBAR_ICONSIZE = 16;
18 
19 static const bool DEFAULT_SPLASHSCREEN = true;
20 
21 /* Invalid field background style */
22 #define STYLE_INVALID "background:#FF8080"
23 
24 /* Transaction list -- unconfirmed transaction */
25 #define COLOR_UNCONFIRMED QColor(91, 76, 134)
26 /* Transaction list -- negative amount */
27 #define COLOR_NEGATIVE QColor(206, 0, 188)
28 /* Transaction list -- bare address (without label) */
29 #define COLOR_BAREADDRESS QColor(140, 140, 140)
30 /* Transaction list -- TX status decoration - open until date */
31 #define COLOR_TX_STATUS_OPENUNTILDATE QColor(64, 64, 255)
32 /* Transaction list -- TX status decoration - default color */
33 #define COLOR_BLACK QColor(51, 51, 51)
34 /* Transaction list -- TX status decoration - conflicted */
35 #define COLOR_CONFLICTED QColor(255, 0, 0)
36 /* Transaction list -- TX status decoration - orphan (Light Gray #D3D3D3) */
37 #define COLOR_ORPHAN QColor(211, 211, 211)
38 /* Transaction list -- TX status decoration - stake (BlueViolet #8A2BE2) */
39 #define COLOR_STAKE QColor(138,43,226)
40 /* Tooltips longer than this (in characters) are converted into rich text,
41  so that they can be word-wrapped.
42  */
43 static const int TOOLTIP_WRAP_THRESHOLD = 80;
44 
45 /* Maximum allowed URI length */
46 static const int MAX_URI_LENGTH = 255;
47 
48 /* QRCodeDialog -- size of exported QR Code image */
49 #define EXPORT_IMAGE_SIZE 256
50 
51 
52 #define QAPP_ORG_NAME "PIVX"
53 #define QAPP_ORG_DOMAIN "pivx.org"
54 #define QAPP_APP_NAME_DEFAULT "PIVX-Qt"
55 #define QAPP_APP_NAME_TESTNET "PIVX-Qt-testnet"
56 
57 #endif // PIVX_QT_GUICONSTANTS_H