Add edge-to-edge tweak support to Card
This commit is contained in:
parent
05d38acffd
commit
091066de35
@ -7,6 +7,7 @@ import atlantafx.base.controls.ModalPane;
|
||||
import atlantafx.base.controls.Spacer;
|
||||
import atlantafx.base.controls.Tile;
|
||||
import atlantafx.base.layout.ModalBox;
|
||||
import atlantafx.base.theme.Tweaks;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.control.Button;
|
||||
@ -32,6 +33,7 @@ public abstract class ModalDialog extends ModalBox {
|
||||
|
||||
protected void createView() {
|
||||
content.setHeader(header);
|
||||
content.getStyleClass().add(Tweaks.EDGE_TO_EDGE);
|
||||
|
||||
// IMPORTANT: this guarantees client will use correct width and height
|
||||
setMinWidth(USE_PREF_SIZE);
|
||||
|
@ -39,6 +39,7 @@ import javafx.scene.layout.GridPane;
|
||||
import javafx.scene.layout.HBox;
|
||||
import javafx.scene.layout.Pane;
|
||||
import javafx.scene.layout.Priority;
|
||||
import javafx.scene.layout.Region;
|
||||
import javafx.scene.layout.VBox;
|
||||
import javafx.stage.DirectoryChooser;
|
||||
import javafx.util.Duration;
|
||||
@ -201,6 +202,8 @@ class SceneBuilderDialog extends ModalDialog {
|
||||
Installation files will be overwritten, but you can rollback changes using the same dialog again.
|
||||
""");
|
||||
noticeLbl.setWrapText(true);
|
||||
noticeLbl.setMaxWidth(Region.USE_PREF_SIZE);
|
||||
noticeLbl.setMinHeight(Region.USE_PREF_SIZE);
|
||||
|
||||
// ~
|
||||
|
||||
|
@ -69,11 +69,10 @@
|
||||
|
||||
.modal-dialog {
|
||||
-fx-background-color: transparent;
|
||||
-fx-border-width: 2;
|
||||
-fx-border-width: 1;
|
||||
-fx-border-color: -color-border-default;
|
||||
|
||||
.card {
|
||||
-fx-border-width: 0;
|
||||
-fx-padding: 10px 20px 10px 20px;
|
||||
}
|
||||
}
|
||||
|
@ -53,3 +53,9 @@ $spacing: 10px !default;
|
||||
-fx-background-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.edge-to-edge>.card {
|
||||
-fx-border-width: 0;
|
||||
-fx-border-radius: 0;
|
||||
-fx-effect: none;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user