Bitcoin Core
31.1.0
P2P Digital Currency
Toggle main menu visibility
Loading...
Searching...
No Matches
src
qt
guiconstants.h
Go to the documentation of this file.
1
// Copyright (c) 2011-present 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
11
using namespace
std::chrono_literals;
12
13
/* A delay between model updates */
14
static
constexpr
auto
MODEL_UPDATE_DELAY
{250ms};
15
16
/* A delay between shutdown pollings */
17
static
constexpr
auto
SHUTDOWN_POLLING_DELAY
{200ms};
18
19
/* AskPassphraseDialog -- Maximum passphrase length */
20
static
const
int
MAX_PASSPHRASE_SIZE
= 1024;
21
22
/* BitcoinGUI -- Size of icons in status bar */
23
static
const
int
STATUSBAR_ICONSIZE
= 16;
24
25
static
const
bool
DEFAULT_SPLASHSCREEN
=
true
;
26
27
/* Invalid field background style */
28
#define STYLE_INVALID "border: 3px solid #FF8080"
29
30
/* Transaction list -- unconfirmed transaction */
31
#define COLOR_UNCONFIRMED QColor(128, 128, 128)
32
/* Transaction list -- negative amount */
33
#define COLOR_NEGATIVE QColor(255, 0, 0)
34
/* Transaction list -- bare address (without label) */
35
#define COLOR_BAREADDRESS QColor(140, 140, 140)
36
/* Transaction list -- TX status decoration - danger, tx needs attention */
37
#define COLOR_TX_STATUS_DANGER QColor(200, 100, 100)
38
/* Transaction list -- TX status decoration - default color */
39
#define COLOR_BLACK QColor(0, 0, 0)
40
41
/* Tooltips longer than this (in characters) are converted into rich text,
42
so that they can be word-wrapped.
43
*/
44
static
const
int
TOOLTIP_WRAP_THRESHOLD
= 80;
45
46
/* Number of frames in spinner animation */
47
#define SPINNER_FRAMES 36
48
49
#define QAPP_ORG_NAME "Bitcoin"
50
#define QAPP_ORG_DOMAIN "bitcoin.org"
51
#define QAPP_APP_NAME_DEFAULT "Bitcoin-Qt"
52
#define QAPP_APP_NAME_TESTNET "Bitcoin-Qt-testnet"
53
#define QAPP_APP_NAME_TESTNET4 "Bitcoin-Qt-testnet4"
54
#define QAPP_APP_NAME_SIGNET "Bitcoin-Qt-signet"
55
#define QAPP_APP_NAME_REGTEST "Bitcoin-Qt-regtest"
56
57
/* One gigabyte (GB) in bytes */
58
static
constexpr
uint64_t
GB_BYTES
{1000000000};
59
60
// Default prune target displayed in GUI.
61
static
constexpr
int
DEFAULT_PRUNE_TARGET_GB
{2};
62
63
#endif
// BITCOIN_QT_GUICONSTANTS_H
MAX_PASSPHRASE_SIZE
static const int MAX_PASSPHRASE_SIZE
Definition
guiconstants.h:20
SHUTDOWN_POLLING_DELAY
static constexpr auto SHUTDOWN_POLLING_DELAY
Definition
guiconstants.h:17
DEFAULT_PRUNE_TARGET_GB
static constexpr int DEFAULT_PRUNE_TARGET_GB
Definition
guiconstants.h:61
TOOLTIP_WRAP_THRESHOLD
static const int TOOLTIP_WRAP_THRESHOLD
Definition
guiconstants.h:44
MODEL_UPDATE_DELAY
static constexpr auto MODEL_UPDATE_DELAY
Definition
guiconstants.h:14
GB_BYTES
static constexpr uint64_t GB_BYTES
Definition
guiconstants.h:58
DEFAULT_SPLASHSCREEN
static const bool DEFAULT_SPLASHSCREEN
Definition
guiconstants.h:25
STATUSBAR_ICONSIZE
static const int STATUSBAR_ICONSIZE
Definition
guiconstants.h:23
Generated on
for Bitcoin Core by
1.17.0