5d0e14370d
Three user-visible changes since v6.1.6: 1. Total label font-weight 75 -> 900 (full bold). v6.1.6 used 'font: 12pt bold' which Qt maps to weight 75, indistinguishable from the other bold balance labels. Now 'font: 900 12pt'. 2. Transactions amount column Confirming tier color changed from #C5EBC9 (pale mint) to #4A8C5E (mid green). The pale mint was too close to the bright #7CDB8A Confirmed green on the dark background and read as the same color to the user. Mid green sits clearly between grey (#61280E Unconfirmed) and bright green (#7CDB8A Confirmed) so the three tiers are visually distinct. 3. Both amount paint sites (Transactions tab + Overview recent-5) now read confirmation depth via a new DepthRole on TransactionTableModel instead of going through the TransactionStatus enum. The rule fires on every block increment, not only on enum state transitions. Internal: added DepthRole to TransactionTableModel::ColumnRole enum. transactiontablemodel.cpp::data() handles the new role. overviewpage.cpp::TxViewDelegate::paint() queries DepthRole. Packaging metadata, CHANGELOG, RPM %changelog updated to 6.1.7.
41 lines
1.6 KiB
C
41 lines
1.6 KiB
C
#ifndef GUICONSTANTS_H
|
|
#define GUICONSTANTS_H
|
|
|
|
/* Milliseconds between model updates */
|
|
static const int MODEL_UPDATE_DELAY = 2500;
|
|
|
|
/* AskPassphraseDialog -- Maximum passphrase length */
|
|
static const int MAX_PASSPHRASE_SIZE = 1024;
|
|
|
|
/* TrianglesTrianglesGUI -- Size of icons in status bar */
|
|
static const int STATUSBAR_ICONSIZE = 16;
|
|
|
|
/* Invalid field background style */
|
|
#define STYLE_INVALID "border: 1px solid #ff0000;background:#1c1c1c;color: #e32105;"
|
|
|
|
/* Transaction list -- unconfirmed transaction (0 confirms: grey, both directions) */
|
|
#define COLOR_UNCONFIRMED QColor(97, 40, 14)
|
|
/* Transaction list -- negative amount (confirmed: spent) */
|
|
#define COLOR_NEGATIVE QColor(255, 0, 0)
|
|
/* Transaction list -- positive amount (fully confirmed, depth >= RecommendedNumConfirmations) */
|
|
#define COLOR_POSITIVE QColor(124, 219, 138)
|
|
/* Transaction list -- partially confirmed positive amount (1..RecommendedNumConfirmations-1 confirms)
|
|
Mid-tone green (#4A8C5E): clearly green but visibly dimmer than the saturated final-state
|
|
#7CDB8A so the eye reads the difference between "in progress" and "final" at a glance. */
|
|
#define COLOR_CONFIRMING QColor(74, 140, 94)
|
|
/* Transaction list -- bare address (without label) */
|
|
#define COLOR_BAREADDRESS QColor(97, 40, 14)
|
|
|
|
/* Tooltips longer than this (in characters) are converted into rich text,
|
|
so that they can be word-wrapped.
|
|
*/
|
|
static const int TOOLTIP_WRAP_THRESHOLD = 80;
|
|
|
|
/* Maximum allowed URI length */
|
|
static const int MAX_URI_LENGTH = 255;
|
|
|
|
/* QRCodeDialog -- size of exported QR Code image */
|
|
#define EXPORT_IMAGE_SIZE 256
|
|
|
|
#endif // GUICONSTANTS_H
|