mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-07 14:30:56 +03:00
Fixed color of <address> tag in HTML text
This commit is contained in:
@@ -7,6 +7,7 @@ FlatLaf Change Log
|
|||||||
|
|
||||||
- Label and ToolTip: Fixed font sizes for `<code>`, `<kbd>`, `<big>`, `<small>`
|
- Label and ToolTip: Fixed font sizes for `<code>`, `<kbd>`, `<big>`, `<small>`
|
||||||
and `<samp>` tags in HTML text.
|
and `<samp>` tags in HTML text.
|
||||||
|
- Fixed color of `<address>` tag in HTML text.
|
||||||
|
|
||||||
|
|
||||||
## 1.0-rc2
|
## 1.0-rc2
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ public abstract class FlatLaf
|
|||||||
Color linkColor = defaults.getColor( "Component.linkColor" );
|
Color linkColor = defaults.getColor( "Component.linkColor" );
|
||||||
if( linkColor != null ) {
|
if( linkColor != null ) {
|
||||||
new HTMLEditorKit().getStyleSheet().addRule(
|
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
|
// restore default link color
|
||||||
new HTMLEditorKit().getStyleSheet().addRule( "a { color: blue; }" );
|
new HTMLEditorKit().getStyleSheet().addRule( "a, address { color: blue; }" );
|
||||||
postInitialization = null;
|
postInitialization = null;
|
||||||
|
|
||||||
// restore enable/disable window decorations
|
// restore enable/disable window decorations
|
||||||
|
|||||||
Reference in New Issue
Block a user