From 3143a03af65f197dc00cf1b4599248bc2ed05762 Mon Sep 17 00:00:00 2001 From: SamiAhmed7777 <79177212+SamiAhmed7777@users.noreply.github.com> Date: Tue, 7 Jul 2026 18:07:19 -0700 Subject: [PATCH] =?UTF-8?q?ui:=20recolor=20overview=20=E2=80=94=20orange?= =?UTF-8?q?=E2=86=92yellow=20icons,=20green=20positive=20balances/txns,=20?= =?UTF-8?q?red-off=20I2P/Tor=20(#19)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Palette orange (242,101,34) → light yellow (255,224,102) in overviewpage.ui - Orange derivative shades (Light/Midlight/Mid/Dark/AlternateBase) → yellow tints - Spendable/Total/Stake/Unconfirmed/Immature balance labels: green (#7CDB8A) - Transaction list: positive amounts green, negative red (was palette-text / red) - Overview recent-txns delegate: positive amounts green via COLOR_POSITIVE - I2P/Tor/V3 status icons: green when active, red (#e32105) when off - Keep labelWalletStatus 'out of sync' red, frame borders red (#e32105) Co-authored-by: krystie --- src/qt/forms/overviewpage.ui | 140 +++++++++++++++---------------- src/qt/guiconstants.h | 2 + src/qt/overviewpage.cpp | 2 +- src/qt/transactiontablemodel.cpp | 4 + src/qt/trianglesgui.cpp | 20 +++-- 5 files changed, 88 insertions(+), 80 deletions(-) diff --git a/src/qt/forms/overviewpage.ui b/src/qt/forms/overviewpage.ui index de5cfd4..5e4df38 100644 --- a/src/qt/forms/overviewpage.ui +++ b/src/qt/forms/overviewpage.ui @@ -16,9 +16,9 @@ - 242 - 101 - 34 + 255 + 224 + 102 @@ -35,44 +35,44 @@ 255 - 180 - 144 + 243 + 170 - 248 - 140 - 89 + 252 + 221 + 120 - 121 - 50 - 17 + 140 + 100 + 30 - 161 - 67 - 22 + 180 + 140 + 40 - 242 - 101 - 34 + 255 + 224 + 102 @@ -88,9 +88,9 @@ - 242 - 101 - 34 + 255 + 224 + 102 @@ -124,9 +124,9 @@ - 248 - 178 - 144 + 252 + 231 + 180 @@ -153,9 +153,9 @@ - 242 - 101 - 34 + 255 + 224 + 102 @@ -172,44 +172,44 @@ 255 - 180 - 144 + 243 + 170 - 248 - 140 - 89 + 252 + 221 + 120 - 121 - 50 - 17 + 140 + 100 + 30 - 161 - 67 - 22 + 180 + 140 + 40 - 242 - 101 - 34 + 255 + 224 + 102 @@ -225,9 +225,9 @@ - 242 - 101 - 34 + 255 + 224 + 102 @@ -261,9 +261,9 @@ - 248 - 178 - 144 + 252 + 231 + 180 @@ -290,9 +290,9 @@ - 242 - 101 - 34 + 255 + 224 + 102 @@ -309,44 +309,44 @@ 255 - 180 - 144 + 243 + 170 - 248 - 140 - 89 + 252 + 221 + 120 - 121 - 50 - 17 + 140 + 100 + 30 - 161 - 67 - 22 + 180 + 140 + 40 - 242 - 101 - 34 + 255 + 224 + 102 @@ -362,9 +362,9 @@ - 242 - 101 - 34 + 255 + 224 + 102 @@ -398,9 +398,9 @@ - 242 - 101 - 34 + 252 + 231 + 180 @@ -434,7 +434,7 @@ background-color: #000; QWidget#line { border: 2px solid #e32105; } - +QLabel#labelBalance, QLabel#labelTotal, QLabel#labelStake, QLabel#labelUnconfirmed, QLabel#labelImmature { color: #7CDB8A; } diff --git a/src/qt/guiconstants.h b/src/qt/guiconstants.h index e4c785c..4c11fef 100644 --- a/src/qt/guiconstants.h +++ b/src/qt/guiconstants.h @@ -17,6 +17,8 @@ static const int STATUSBAR_ICONSIZE = 16; #define COLOR_UNCONFIRMED QColor(97, 40, 14) /* Transaction list -- negative amount */ #define COLOR_NEGATIVE QColor(255, 0, 0) +/* Transaction list -- positive amount */ +#define COLOR_POSITIVE QColor(124, 219, 138) /* Transaction list -- bare address (without label) */ #define COLOR_BAREADDRESS QColor(97, 40, 14) diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp index 8d42fa2..d78381e 100644 --- a/src/qt/overviewpage.cpp +++ b/src/qt/overviewpage.cpp @@ -60,7 +60,7 @@ public: } else { - foreground = option.palette.color(QPalette::Text); + foreground = COLOR_POSITIVE; } painter->setPen(foreground); QString amountText = TrianglesUnits::formatWithUnit(unit, amount, true); diff --git a/src/qt/transactiontablemodel.cpp b/src/qt/transactiontablemodel.cpp index 0823db5..290fa95 100644 --- a/src/qt/transactiontablemodel.cpp +++ b/src/qt/transactiontablemodel.cpp @@ -586,6 +586,10 @@ QVariant TransactionTableModel::data(const QModelIndex &index, int role) const { return COLOR_NEGATIVE; } + if(index.column() == Amount && (rec->credit+rec->debit) > 0) + { + return COLOR_POSITIVE; + } if(index.column() == ToAddress) { return addressColor(rec); diff --git a/src/qt/trianglesgui.cpp b/src/qt/trianglesgui.cpp index 8ea5e5b..9f7d214 100644 --- a/src/qt/trianglesgui.cpp +++ b/src/qt/trianglesgui.cpp @@ -1817,24 +1817,26 @@ void TrianglesGUI::updateOnionAddress() bool hasOnion = !onionAddress.empty(); - // V3 indicator — always visible when onion is active, independent of the address toggle + // V3 indicator — green when active, red when not if (hasOnion) { labelV3Icon->setStyleSheet("color: #00ff00; font-weight: bold;"); labelV3Icon->setToolTip(tr("V3 Tor enabled")); labelV3Icon->setVisible(true); } else { - labelV3Icon->setStyleSheet("color: #555555; font-weight: bold;"); + labelV3Icon->setStyleSheet("color: #e32105; font-weight: bold;"); labelV3Icon->setToolTip(tr("V3 Tor not active")); labelV3Icon->setVisible(true); } - // Tor icon in the stacked address group — green when onion present, hidden otherwise + // Tor icon in the stacked address group — green when onion present, red when off if (hasOnion) { - labelTorIcon->setStyleSheet("color: #7eb6ff; font-weight: bold;"); + labelTorIcon->setStyleSheet("color: #00ff00; font-weight: bold;"); labelTorIcon->setToolTip(tr("Tor V3 hidden service active")); labelTorIcon->setVisible(true); } else { - labelTorIcon->setVisible(false); + labelTorIcon->setStyleSheet("color: #e32105; font-weight: bold;"); + labelTorIcon->setToolTip(tr("Tor V3 hidden service not active")); + labelTorIcon->setVisible(true); } // Onion address text — respects user preference @@ -1859,9 +1861,9 @@ void TrianglesGUI::updateI2PAddress() std::string i2pAddress = CI2PEmbedded::GetInstance()->GetI2PAddress(); bool hasI2P = CI2PEmbedded::GetInstance()->IsRunning() && !i2pAddress.empty(); - // I2P indicator + // I2P indicator — green when on, red when off if (hasI2P) { - labelI2PIcon->setStyleSheet("color: #6a4cff; font-weight: bold;"); + labelI2PIcon->setStyleSheet("color: #00ff00; font-weight: bold;"); labelI2PIcon->setToolTip(tr("I2P router active")); labelI2PIcon->setVisible(true); } else if (CI2PEmbedded::GetInstance()->IsRunning()) { @@ -1869,9 +1871,9 @@ void TrianglesGUI::updateI2PAddress() labelI2PIcon->setToolTip(tr("I2P router running (building tunnels...)")); labelI2PIcon->setVisible(true); } else { - labelI2PIcon->setStyleSheet("color: #555555; font-weight: bold;"); + labelI2PIcon->setStyleSheet("color: #e32105; font-weight: bold;"); labelI2PIcon->setToolTip(tr("I2P not active")); - labelI2PIcon->setVisible(false); + labelI2PIcon->setVisible(true); } // I2P address text