format display of addresses in tables only when the table is selected
What changed, and why it matters
This commit is a cosmetic CSS tweak for a Bitcoin wallet application. It changes when address text gets alternating color formatting: previously all address chunks were styled, now only those inside text fields, labels, or selected tree-table views get the alternate shading. There is no security relevance in this change.
No security action needed. Treat as a normal UI polish change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch narrows CSS selectors for .address-chunk.alternate in two theme files. The old selector applied the alternate fill color globally; the new selector restricts it to .text-field, .label, and .tree-table-view:focused contexts. This prevents address chunks in tables from receiving alternate coloring unless the table is focused/selected. It is purely a UI presentation change with no functional, cryptographic, or security behavior modified.
Changed components
src/main/resources/com/sparrowwallet/sparrow/darktheme.csssrc/main/resources/com/sparrowwallet/sparrow/general.cssInspect captured patch +2 / −2
diff --git a/src/main/resources/com/sparrowwallet/sparrow/darktheme.css b/src/main/resources/com/sparrowwallet/sparrow/darktheme.css
index 8bd7563..111c40d 100644
--- a/src/main/resources/com/sparrowwallet/sparrow/darktheme.css
+++ b/src/main/resources/com/sparrowwallet/sparrow/darktheme.css
@@ -386,7 +386,7 @@ HorizontalHeaderColumn > TableColumnHeader.column-header.table-column{
-fx-fill: white;
}
-.root .address-chunk.alternate {
+.root .text-field .address-chunk.alternate, .root .label .address-chunk.alternate, .root .tree-table-view:focused .address-chunk.alternate {
-fx-fill: derive(-fx-text-inner-color, -35%);
}
diff --git a/src/main/resources/com/sparrowwallet/sparrow/general.css b/src/main/resources/com/sparrowwallet/sparrow/general.css
index a419944..09dbe4e 100644
--- a/src/main/resources/com/sparrowwallet/sparrow/general.css
+++ b/src/main/resources/com/sparrowwallet/sparrow/general.css
@@ -350,7 +350,7 @@ CellView > .text-input.text-field {
-fx-fill: white;
}
-.address-chunk.alternate {
+.text-field .address-chunk.alternate, .label .address-chunk.alternate, .tree-table-view:focused .address-chunk.alternate {
-fx-fill: derive(-fx-text-inner-color, 70%);
}
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.