Feat: Added status label opacity when installer item is incompatible (#6335)
This commit is contained in:
1 parent
2b310e035d
commit
3484792e81
2 files changed
+11
No files matched your search
@@ -338,6 +338,13 @@ public class InstallerItem extends Control {
|
||||
throw new AssertionError("Unknown state type: " + state.getClass());
|
||||
}
|
||||
}, control.resolvedStateProperty));
|
||||
FXUtils.onChangeAndOperate(
|
||||
control.resolvedStateProperty,
|
||||
state -> statusLabel.pseudoClassStateChanged(
|
||||
PseudoClass.getPseudoClass("incompatible"),
|
||||
state instanceof IncompatibleState
|
||||
)
|
||||
);
|
||||
BorderPane.setMargin(statusLabel, new Insets(0, 0, 0, 8));
|
||||
BorderPane.setAlignment(statusLabel, Pos.CENTER_LEFT);
|
||||
|
||||
|
||||
@@ -396,6 +396,10 @@
|
||||
-fx-cursor: hand;
|
||||
}
|
||||
|
||||
.installer-item-status:incompatible {
|
||||
-fx-opacity: 0.6;
|
||||
}
|
||||
|
||||
.installer-item-wrapper {
|
||||
-fx-background-color: -monet-surface;
|
||||
-fx-background-radius: 4;
|
||||
|
||||
Reference in new issue
Block a user