修复自动安装界面卡片上按钮无法点击的问题 (#5251)
This commit is contained in:
@@ -283,11 +283,15 @@ public class InstallerItem extends Control {
|
|||||||
}
|
}
|
||||||
pane.getStyleClass().add("installer-item");
|
pane.getStyleClass().add("installer-item");
|
||||||
RipplerContainer container = new RipplerContainer(pane);
|
RipplerContainer container = new RipplerContainer(pane);
|
||||||
container.setPosition(JFXRippler.RipplerPos.FRONT);
|
container.setPosition(JFXRippler.RipplerPos.BACK);
|
||||||
getChildren().setAll(container);
|
StackPane paneWrapper = new StackPane();
|
||||||
|
paneWrapper.getStyleClass().add("installer-item-wrapper");
|
||||||
|
paneWrapper.getChildren().setAll(container);
|
||||||
|
getChildren().setAll(paneWrapper);
|
||||||
|
|
||||||
pane.pseudoClassStateChanged(LIST_ITEM, control.style == Style.LIST_ITEM);
|
pane.pseudoClassStateChanged(LIST_ITEM, control.style == Style.LIST_ITEM);
|
||||||
pane.pseudoClassStateChanged(CARD, control.style == Style.CARD);
|
pane.pseudoClassStateChanged(CARD, control.style == Style.CARD);
|
||||||
|
paneWrapper.pseudoClassStateChanged(CARD, control.style == Style.CARD);
|
||||||
|
|
||||||
if (control.iconType != null) {
|
if (control.iconType != null) {
|
||||||
ImageView view = new ImageView(control.iconType.getIcon());
|
ImageView view = new ImageView(control.iconType.getIcon());
|
||||||
|
|||||||
@@ -388,31 +388,33 @@
|
|||||||
-fx-cursor: hand;
|
-fx-cursor: hand;
|
||||||
}
|
}
|
||||||
|
|
||||||
.installer-item {
|
.installer-item-wrapper {
|
||||||
-fx-padding: 8px;
|
-fx-background-color: -monet-surface;
|
||||||
|
-fx-background-radius: 4;
|
||||||
|
-fx-pref-width: 180px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.installer-item:list-item {
|
.installer-item-wrapper:card {
|
||||||
|
-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.26), 10, 0.12, -1, 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.installer-item-wrapper .installer-item:list-item {
|
||||||
|
-fx-padding: 8px;
|
||||||
-fx-border-color: -monet-outline-variant;
|
-fx-border-color: -monet-outline-variant;
|
||||||
-fx-border-width: 0 0 1 0;
|
-fx-border-width: 0 0 1 0;
|
||||||
-fx-alignment: center-left;
|
-fx-alignment: center-left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.installer-item:list-item > .installer-item-name {
|
.installer-item-wrapper .installer-item:list-item > .installer-item-name {
|
||||||
-fx-pref-width: 80px;
|
-fx-pref-width: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.installer-item:list-item > .installer-item-status {
|
.installer-item-wrapper .installer-item:list-item > .installer-item-status {
|
||||||
-fx-max-width: infinity;
|
-fx-max-width: infinity;
|
||||||
}
|
}
|
||||||
|
|
||||||
.installer-item:card {
|
.installer-item-wrapper .installer-item:card {
|
||||||
-fx-background-color: -monet-surface;
|
|
||||||
-fx-background-radius: 4;
|
|
||||||
-fx-alignment: center;
|
-fx-alignment: center;
|
||||||
-fx-pref-width: 180px;
|
|
||||||
|
|
||||||
-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.26), 10, 0.12, -1, 2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user