Fixed color of <address> tag in HTML text

This commit is contained in:
Karl Tauber
2021-02-04 12:58:14 +01:00
parent 027b4ab7da
commit e5d3c08821
2 changed files with 3 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ FlatLaf Change Log
- Label and ToolTip: Fixed font sizes for `<code>`, `<kbd>`, `<big>`, `<small>`
and `<samp>` tags in HTML text.
- Fixed color of `<address>` tag in HTML text.
## 1.0-rc2

View File

@@ -262,7 +262,7 @@ public abstract class FlatLaf
Color linkColor = defaults.getColor( "Component.linkColor" );
if( linkColor != null ) {
new HTMLEditorKit().getStyleSheet().addRule(
String.format( "a { color: #%06x; }", linkColor.getRGB() & 0xffffff ) );
String.format( "a, address { color: #%06x; }", linkColor.getRGB() & 0xffffff ) );
}
};
@@ -304,7 +304,7 @@ public abstract class FlatLaf
}
// restore default link color
new HTMLEditorKit().getStyleSheet().addRule( "a { color: blue; }" );
new HTMLEditorKit().getStyleSheet().addRule( "a, address { color: blue; }" );
postInitialization = null;
// restore enable/disable window decorations