pull downs rounded starting to work

This commit is contained in:
woodser 2025-04-30 22:14:31 -04:00
parent 3a7320775b
commit a54877f482
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF
2 changed files with 12 additions and 0 deletions

View file

@ -222,6 +222,13 @@
-jfx-focus-color: -bs-color-primary;
-jfx-unfocus-color: -bs-color-gray-line;
-fx-background-color: -bs-background-color;
-fx-background-radius: 999;
-fx-border-radius: 999;
}
.jfx-combo-box .arrow-button {
-fx-background-radius: 999;
-fx-border-radius: 999;
}
.jfx-combo-box > .list-cell {
@ -235,6 +242,10 @@
-fx-shape: "M 0 0 l 3.5 4 l 3.5 -4";
}
.combo-box-popup .list-cell:hover {
-fx-background-radius: 8;
}
.combo-box-popup > .list-view > .virtual-flow > .clipped-container > .sheet > .list-cell:filled:selected {
-fx-background: -fx-selection-bar;
-fx-background-color: -fx-selection-bar;

View file

@ -1399,6 +1399,7 @@ public class FormBuilder {
GridPane.setRowIndex(comboBox, rowIndex);
GridPane.setColumnIndex(comboBox, 0);
comboBox.setPadding(new Insets(0, 10, 0, 10));
GridPane.setMargin(comboBox, new Insets(top + Layout.FLOATING_LABEL_DISTANCE, 0, 0, 0));
gridPane.getChildren().add(comboBox);