Feat: Added status label opacity when installer item is incompatible (#6335)

This commit is contained in:
快乐凤爪王 authored and GitHub committed 2026-07-12 22:37:57 +08:00
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;