ui: recolor overview — orange→yellow icons, green positive balances/txns, red-off I2P/Tor (#19)

- 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 <krystie@local>
This commit is contained in:
SamiAhmed7777
2026-07-07 18:07:19 -07:00
committed by GitHub
parent 71fd4c23d6
commit 3143a03af6
5 changed files with 88 additions and 80 deletions
+70 -70
View File
@@ -16,9 +16,9 @@
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>242</red>
<green>101</green>
<blue>34</blue>
<red>255</red>
<green>224</green>
<blue>102</blue>
</color>
</brush>
</colorrole>
@@ -35,44 +35,44 @@
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>255</red>
<green>180</green>
<blue>144</blue>
<green>243</green>
<blue>170</blue>
</color>
</brush>
</colorrole>
<colorrole role="Midlight">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>248</red>
<green>140</green>
<blue>89</blue>
<red>252</red>
<green>221</green>
<blue>120</blue>
</color>
</brush>
</colorrole>
<colorrole role="Dark">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>121</red>
<green>50</green>
<blue>17</blue>
<red>140</red>
<green>100</green>
<blue>30</blue>
</color>
</brush>
</colorrole>
<colorrole role="Mid">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>161</red>
<green>67</green>
<blue>22</blue>
<red>180</red>
<green>140</green>
<blue>40</blue>
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>242</red>
<green>101</green>
<blue>34</blue>
<red>255</red>
<green>224</green>
<blue>102</blue>
</color>
</brush>
</colorrole>
@@ -88,9 +88,9 @@
<colorrole role="ButtonText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>242</red>
<green>101</green>
<blue>34</blue>
<red>255</red>
<green>224</green>
<blue>102</blue>
</color>
</brush>
</colorrole>
@@ -124,9 +124,9 @@
<colorrole role="AlternateBase">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>248</red>
<green>178</green>
<blue>144</blue>
<red>252</red>
<green>231</green>
<blue>180</blue>
</color>
</brush>
</colorrole>
@@ -153,9 +153,9 @@
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>242</red>
<green>101</green>
<blue>34</blue>
<red>255</red>
<green>224</green>
<blue>102</blue>
</color>
</brush>
</colorrole>
@@ -172,44 +172,44 @@
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>255</red>
<green>180</green>
<blue>144</blue>
<green>243</green>
<blue>170</blue>
</color>
</brush>
</colorrole>
<colorrole role="Midlight">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>248</red>
<green>140</green>
<blue>89</blue>
<red>252</red>
<green>221</green>
<blue>120</blue>
</color>
</brush>
</colorrole>
<colorrole role="Dark">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>121</red>
<green>50</green>
<blue>17</blue>
<red>140</red>
<green>100</green>
<blue>30</blue>
</color>
</brush>
</colorrole>
<colorrole role="Mid">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>161</red>
<green>67</green>
<blue>22</blue>
<red>180</red>
<green>140</green>
<blue>40</blue>
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>242</red>
<green>101</green>
<blue>34</blue>
<red>255</red>
<green>224</green>
<blue>102</blue>
</color>
</brush>
</colorrole>
@@ -225,9 +225,9 @@
<colorrole role="ButtonText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>242</red>
<green>101</green>
<blue>34</blue>
<red>255</red>
<green>224</green>
<blue>102</blue>
</color>
</brush>
</colorrole>
@@ -261,9 +261,9 @@
<colorrole role="AlternateBase">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>248</red>
<green>178</green>
<blue>144</blue>
<red>252</red>
<green>231</green>
<blue>180</blue>
</color>
</brush>
</colorrole>
@@ -290,9 +290,9 @@
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>242</red>
<green>101</green>
<blue>34</blue>
<red>255</red>
<green>224</green>
<blue>102</blue>
</color>
</brush>
</colorrole>
@@ -309,44 +309,44 @@
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>255</red>
<green>180</green>
<blue>144</blue>
<green>243</green>
<blue>170</blue>
</color>
</brush>
</colorrole>
<colorrole role="Midlight">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>248</red>
<green>140</green>
<blue>89</blue>
<red>252</red>
<green>221</green>
<blue>120</blue>
</color>
</brush>
</colorrole>
<colorrole role="Dark">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>121</red>
<green>50</green>
<blue>17</blue>
<red>140</red>
<green>100</green>
<blue>30</blue>
</color>
</brush>
</colorrole>
<colorrole role="Mid">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>161</red>
<green>67</green>
<blue>22</blue>
<red>180</red>
<green>140</green>
<blue>40</blue>
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>242</red>
<green>101</green>
<blue>34</blue>
<red>255</red>
<green>224</green>
<blue>102</blue>
</color>
</brush>
</colorrole>
@@ -362,9 +362,9 @@
<colorrole role="ButtonText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>242</red>
<green>101</green>
<blue>34</blue>
<red>255</red>
<green>224</green>
<blue>102</blue>
</color>
</brush>
</colorrole>
@@ -398,9 +398,9 @@
<colorrole role="AlternateBase">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>242</red>
<green>101</green>
<blue>34</blue>
<red>252</red>
<green>231</green>
<blue>180</blue>
</color>
</brush>
</colorrole>
@@ -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; }
</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0">
+2
View File
@@ -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)
+1 -1
View File
@@ -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);
+4
View File
@@ -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);
+11 -9
View File
@@ -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