Bitcoin ABC 0.32.4
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 <chrono>
9#include <cstdint>
10
11using namespace std::chrono_literals;
12
14static constexpr auto MODEL_UPDATE_DELAY{250ms};
15
16/* AskPassphraseDialog -- Maximum passphrase length */
17static const int MAX_PASSPHRASE_SIZE = 1024;
18
19/* BitcoinGUI -- Size of icons in status bar */
20static const int STATUSBAR_ICONSIZE = 16;
21
22static const bool DEFAULT_SPLASHSCREEN = true;
23
24/* Invalid field background style */
25#define STYLE_INVALID "background:#FF8080"
26
27/* Transaction list -- unconfirmed transaction */
28#define COLOR_UNCONFIRMED QColor(128, 128, 128)
29/* Transaction list -- negative amount */
30#define COLOR_NEGATIVE QColor(255, 0, 0)
31/* Transaction list -- bare address (without label) */
32#define COLOR_BAREADDRESS QColor(140, 140, 140)
33/* Transaction list -- TX status decoration - danger, tx needs attention */
34#define COLOR_TX_STATUS_DANGER QColor(200, 100, 100)
35/* Transaction list -- TX status decoration - default color */
36#define COLOR_BLACK QColor(0, 0, 0)
37
38/* Tooltips longer than this (in characters) are converted into rich text,
39 so that they can be word-wrapped.
40 */
41static const int TOOLTIP_WRAP_THRESHOLD = 80;
42
43/* Number of frames in spinner animation */
44#define SPINNER_FRAMES 36
45
46#define QAPP_ORG_NAME "BitcoinABC"
47#define QAPP_ORG_DOMAIN "bitcoinabc.org"
48#define QAPP_APP_NAME_DEFAULT "BitcoinABC-Qt"
49#define QAPP_APP_NAME_TESTNET "BitcoinABC-Qt-testnet"
50#define QAPP_APP_NAME_REGTEST "BitcoinABC-Qt-regtest"
51
52/* One gigabyte (GB) in bytes */
53static constexpr uint64_t GB_BYTES{1'000'000'000};
54
55// Default prune target displayed in GUI.
56static constexpr int DEFAULT_PRUNE_TARGET_GB{2};
57
58#endif // BITCOIN_QT_GUICONSTANTS_H
static const int MAX_PASSPHRASE_SIZE
Definition: guiconstants.h:17
static constexpr int DEFAULT_PRUNE_TARGET_GB
Definition: guiconstants.h:56
static const int TOOLTIP_WRAP_THRESHOLD
Definition: guiconstants.h:41
static constexpr auto MODEL_UPDATE_DELAY
A delay between model updates.
Definition: guiconstants.h:14
static constexpr uint64_t GB_BYTES
Definition: guiconstants.h:53
static const bool DEFAULT_SPLASHSCREEN
Definition: guiconstants.h:22
static const int STATUSBAR_ICONSIZE
Definition: guiconstants.h:20