mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-20 13:54:32 +01:00
Update style
This commit is contained in:
parent
7dc8d66614
commit
6f05579c4b
2 changed files with 11 additions and 21 deletions
|
@ -465,22 +465,8 @@ textfield */
|
|||
|
||||
|
||||
/* TitledSeparator */
|
||||
#titled-separator-label {
|
||||
-fx-font-weight: bold;
|
||||
-fx-font-size: 14;
|
||||
-fx-text-fill: -bs-dark-grey;
|
||||
-fx-background-color: #f4f4f4;
|
||||
}
|
||||
#titled-separator-label-active {
|
||||
-fx-font-weight: bold;
|
||||
-fx-font-size: 14;
|
||||
-fx-text-fill: -bs-theme-color;
|
||||
-fx-background-color: #f4f4f4;
|
||||
}
|
||||
#titled-separator:horizontal .line {
|
||||
-fx-border-color: #cccccc transparent #999999 transparent;
|
||||
-fx-border-color: transparent #f4f4f4 transparent #f4f4f4;
|
||||
-fx-background-color: transparent;
|
||||
-fx-border-width: 10px;
|
||||
}
|
||||
|
||||
#titled-separator-active:horizontal .line {
|
||||
-fx-border-color: #dddddd transparent derive(-bs-theme-color, 50%) transparent;
|
||||
}
|
|
@ -43,6 +43,9 @@ public class TitledSeparator extends Pane {
|
|||
|
||||
separator = new Separator();
|
||||
separator.prefWidthProperty().bind(widthProperty());
|
||||
separator.setLayoutX(0);
|
||||
separator.setLayoutY(6);
|
||||
separator.setId("titled-separator");
|
||||
|
||||
label = new Label();
|
||||
label.textProperty().bind(text);
|
||||
|
@ -51,16 +54,17 @@ public class TitledSeparator extends Pane {
|
|||
label.setPadding(new Insets(0, 7, 0, 5));
|
||||
setActive();
|
||||
getChildren().addAll(separator, label);
|
||||
|
||||
}
|
||||
|
||||
public void setInactive() {
|
||||
separator.setId("titled-separator");
|
||||
label.setId("titled-separator-label");
|
||||
setId("titled-group-bg");
|
||||
label.setId("titled-group-bg-label");
|
||||
}
|
||||
|
||||
public void setActive() {
|
||||
separator.setId("titled-separator-active");
|
||||
label.setId("titled-separator-label-active");
|
||||
setId("titled-group-bg-active");
|
||||
label.setId("titled-group-bg-label-active");
|
||||
}
|
||||
|
||||
public String getText() {
|
||||
|
|
Loading…
Add table
Reference in a new issue