Skip to content

Commit

Permalink
LinkButton: Use css property for recoloring text
Browse files Browse the repository at this point in the history
  • Loading branch information
Argent77 committed Nov 13, 2024
1 parent dea2da3 commit 9ebdcba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/infinity/gui/LinkButton.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ private void setLink(String text, String resource, boolean asLink, int maxLength
} else if (resource != null && !resource.isEmpty()) {
final String colorAttr;
if (color != null) {
colorAttr = String.format(" color=\"#%02X%02X%02X\"", color.getRed(), color.getGreen(), color.getBlue());
colorAttr = String.format(" style=\"color: #%02X%02X%02X\"", color.getRed(), color.getGreen(), color.getBlue());
} else {
colorAttr = "";
}
Expand Down

0 comments on commit 9ebdcba

Please sign in to comment.