Redesign CheckBox

This commit is contained in:
Christoph Atteneder 2018-07-24 14:11:19 +02:00
parent 8e292ad883
commit 473d64404c
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B
2 changed files with 11 additions and 6 deletions

View File

@ -206,7 +206,11 @@ bg color of non edit textFields: fafafa
}
.jfx-button {
-fx-background-color:-bs-new-grey;
-fx-background-color: -bs-new-grey;
}
.jfx-checkbox {
-jfx-checked-color: -bs-green;
}
/* Behavior */

View File

@ -17,13 +17,14 @@
package bisq.desktop.components;
import javafx.scene.control.CheckBox;
import com.jfoenix.controls.JFXCheckBox;
import com.jfoenix.skins.JFXCheckBoxSkin;
import javafx.scene.control.Skin;
import javafx.scene.control.skin.CheckBoxSkin;
import static bisq.desktop.components.TooltipUtil.showTooltipIfTruncated;
public class AutoTooltipCheckBox extends CheckBox {
public class AutoTooltipCheckBox extends JFXCheckBox {
public AutoTooltipCheckBox() {
super();
@ -38,8 +39,8 @@ public class AutoTooltipCheckBox extends CheckBox {
return new AutoTooltipCheckBoxSkin(this);
}
private class AutoTooltipCheckBoxSkin extends CheckBoxSkin {
public AutoTooltipCheckBoxSkin(CheckBox checkBox) {
private class AutoTooltipCheckBoxSkin extends JFXCheckBoxSkin {
public AutoTooltipCheckBoxSkin(JFXCheckBox checkBox) {
super(checkBox);
}