Fix wrong styling of link icon in dark mode

It also removes a style workaround that is not needed anymore.
Side note: the style that was set never existed anyways.
This commit is contained in:
Christoph Atteneder 2019-12-19 11:35:48 +01:00
parent 26044d8ce1
commit 35ef9b62f9
No known key found for this signature in database
GPG key ID: CD5DC1C529CDFD3B
2 changed files with 2 additions and 3 deletions

View file

@ -838,6 +838,7 @@ textfield */
-fx-border-width: 0px;
-fx-underline: true;
-fx-text-fill: -bs-rd-font-dark;
-fx-fill: -bs-rd-font-dark;
}
.hyperlink.no-underline {
@ -846,6 +847,7 @@ textfield */
.hyperlink:hover {
-fx-text-fill: -bs-text-color;
-fx-fill: -bs-text-color;
}
.hyperlink:hover,

View file

@ -81,9 +81,6 @@ public class HyperlinkWithIcon extends Hyperlink {
setContentDisplay(ContentDisplay.RIGHT);
setGraphicTextGap(7.0);
//TODO: replace workaround of setting the style this way
tooltipProperty().addListener((observable, oldValue, newValue) -> newValue.getStyleClass().add("tooltip-hyperlink-icon"));
}
public void clear() {