Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1// Copyright (c) 2011-present The Bitcoin Core developers2// Distributed under the MIT software license, see the accompanying3// file COPYING or http://www.opensource.org/licenses/mit-license.php.5#ifndef BITCOIN_QT_GUICONSTANTS_H6#define BITCOIN_QT_GUICONSTANTS_H8#include <chrono>9#include <cstdint>11using namespace std::chrono_literals;13/* A delay between model updates */14inline constexpr auto MODEL_UPDATE_DELAY{250ms};16/* A delay between shutdown pollings */17inline constexpr auto SHUTDOWN_POLLING_DELAY{200ms};19/* AskPassphraseDialog -- Maximum passphrase length */20inline constexpr int MAX_PASSPHRASE_SIZE = 1024;22/* BitcoinGUI -- Size of icons in status bar */23inline constexpr int STATUSBAR_ICONSIZE = 16;25inline constexpr bool DEFAULT_SPLASHSCREEN = true;27/* Invalid field background style */28#define STYLE_INVALID "border: 3px solid #FF8080"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)41/* Tooltips longer than this (in characters) are converted into rich text,42so that they can be word-wrapped.43*/44inline constexpr int TOOLTIP_WRAP_THRESHOLD = 80;46/* Number of frames in spinner animation */47#define SPINNER_FRAMES 3649#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"57/* One gigabyte (GB) in bytes */58inline constexpr uint64_t GB_BYTES{1'000'000'000};60// Default prune target displayed in GUI.61inline constexpr int DEFAULT_PRUNE_TARGET_GB{2};63#endif // BITCOIN_QT_GUICONSTANTS_H
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.