From 65b4fef7e8d61234ac56af70729dad5b1c7c3067 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Mon, 26 Jul 2021 10:04:50 +0200 Subject: [PATCH] Further adjusting checkstate icon view style --- .../org/cryptomator/ui/health/CheckStateIconView.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/cryptomator/ui/health/CheckStateIconView.java b/src/main/java/org/cryptomator/ui/health/CheckStateIconView.java index d96916108..4df4ec8ce 100644 --- a/src/main/java/org/cryptomator/ui/health/CheckStateIconView.java +++ b/src/main/java/org/cryptomator/ui/health/CheckStateIconView.java @@ -27,11 +27,11 @@ public class CheckStateIconView extends FontAwesome5IconView { this.state = EasyBind.wrapNullable(check).mapObservable(Check::stateProperty).asOrdinary(); this.severity = EasyBind.wrapNullable(check).mapObservable(Check::highestResultSeverityProperty).asOrdinary(); this.glyph.bind(Bindings.createObjectBinding(this::glyphForState, state, severity)); - this.subscriptions = List.of( // TODO: make final decision about what color/style-class to show when - EasyBind.includeWhen(getStyleClass(), "glyph-icon-muted", Bindings.equal(state, Check.CheckState.SKIPPED).or(Bindings.equal(state,Check.CheckState.CANCELLED))), // + this.subscriptions = List.of( // + EasyBind.includeWhen(getStyleClass(), "glyph-icon-muted", Bindings.equal(state, Check.CheckState.SKIPPED).or(Bindings.equal(state, Check.CheckState.CANCELLED))), // EasyBind.includeWhen(getStyleClass(), "glyph-icon-primary", Bindings.equal(severity, DiagnosticResult.Severity.GOOD)), // - EasyBind.includeWhen(getStyleClass(), "glyph-icon-orange", Bindings.equal(severity, DiagnosticResult.Severity.WARN)), // - EasyBind.includeWhen(getStyleClass(), "glyph-icon-red", Bindings.equal(severity, DiagnosticResult.Severity.CRITICAL).or(Bindings.equal(state, Check.CheckState.ERROR))) // + EasyBind.includeWhen(getStyleClass(), "glyph-icon-orange", Bindings.equal(severity, DiagnosticResult.Severity.WARN).or(Bindings.equal(severity, DiagnosticResult.Severity.CRITICAL))), // + EasyBind.includeWhen(getStyleClass(), "glyph-icon-red", Bindings.equal(state, Check.CheckState.ERROR)) // ); }