Bitcoin ABC  0.28.12
P2P Digital Currency
guiconstants.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2016 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 
5 #ifndef BITCOIN_QT_GUICONSTANTS_H
6 #define BITCOIN_QT_GUICONSTANTS_H
7 
8 #include <cstdint>
9 
10 /* Milliseconds between model updates */
11 static const int MODEL_UPDATE_DELAY = 250;
12 
13 /* AskPassphraseDialog -- Maximum passphrase length */
14 static const int MAX_PASSPHRASE_SIZE = 1024;
15 
16 /* BitcoinGUI -- 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(128, 128, 128)
26 /* Transaction list -- negative amount */
27 #define COLOR_NEGATIVE QColor(255, 0, 0)
28 /* Transaction list -- bare address (without label) */
29 #define COLOR_BAREADDRESS QColor(140, 140, 140)
30 /* Transaction list -- TX status decoration - danger, tx needs attention */
31 #define COLOR_TX_STATUS_DANGER QColor(200, 100, 100)
32 /* Transaction list -- TX status decoration - default color */
33 #define COLOR_BLACK QColor(0, 0, 0)
34 
35 /* Tooltips longer than this (in characters) are converted into rich text,
36  so that they can be word-wrapped.
37  */
38 static const int TOOLTIP_WRAP_THRESHOLD = 80;
39 
40 /* Number of frames in spinner animation */
41 #define SPINNER_FRAMES 36
42 
43 #define QAPP_ORG_NAME "BitcoinABC"
44 #define QAPP_ORG_DOMAIN "bitcoinabc.org"
45 #define QAPP_APP_NAME_DEFAULT "BitcoinABC-Qt"
46 #define QAPP_APP_NAME_TESTNET "BitcoinABC-Qt-testnet"
47 #define QAPP_APP_NAME_REGTEST "BitcoinABC-Qt-regtest"
48 
49 /* One gigabyte (GB) in bytes */
50 static constexpr uint64_t GB_BYTES{1'000'000'000};
51 
52 // Default prune target displayed in GUI.
53 static constexpr int DEFAULT_PRUNE_TARGET_GB{2};
54 
55 #endif // BITCOIN_QT_GUICONSTANTS_H
static const int MAX_PASSPHRASE_SIZE
Definition: guiconstants.h:14
static constexpr int DEFAULT_PRUNE_TARGET_GB
Definition: guiconstants.h:53
static const int TOOLTIP_WRAP_THRESHOLD
Definition: guiconstants.h:38
static constexpr uint64_t GB_BYTES
Definition: guiconstants.h:50
static const bool DEFAULT_SPLASHSCREEN
Definition: guiconstants.h:19
static const int MODEL_UPDATE_DELAY
Definition: guiconstants.h:11
static const int STATUSBAR_ICONSIZE
Definition: guiconstants.h:17