diff --git a/src/main/java/org/cryptomator/ui/controls/FontAwesome5StatusView.java b/src/main/java/org/cryptomator/ui/controls/FontAwesome5StatusView.java index 0298d95f4..1d816d392 100644 --- a/src/main/java/org/cryptomator/ui/controls/FontAwesome5StatusView.java +++ b/src/main/java/org/cryptomator/ui/controls/FontAwesome5StatusView.java @@ -33,6 +33,12 @@ public class FontAwesome5StatusView extends Label { animatedSpinner.glyphSizeProperty().bind(glyphSize); EasyBind.subscribe(glyphProperty(), this::spinnerOrIcon); + EasyBind.subscribe(glyphSize, this::shrinkToGlyphSize); + } + + private void shrinkToGlyphSize(Number newValue) { + double sizeInPx = newValue.doubleValue() * 1.333; + setMaxSize(sizeInPx, sizeInPx); } private void spinnerOrIcon(FontAwesome5Icon icon) { diff --git a/src/main/resources/css/dark_theme.css b/src/main/resources/css/dark_theme.css index d44ad968b..153590318 100644 --- a/src/main/resources/css/dark_theme.css +++ b/src/main/resources/css/dark_theme.css @@ -804,6 +804,18 @@ -fx-scale-shape: false; } +/** +statusView +**/ + +.status-view-white .glyph-icon { + -fx-fill: white; +} + +.status-view-white .progress-indicator .segment { + -fx-background-color: white; +} + /******************************************************************************* * * * ProgressIndicator * diff --git a/src/main/resources/css/light_theme.css b/src/main/resources/css/light_theme.css index 113cd3e4a..97913b888 100644 --- a/src/main/resources/css/light_theme.css +++ b/src/main/resources/css/light_theme.css @@ -802,6 +802,18 @@ -fx-scale-shape: false; } +/** +statusView +**/ + +.status-view-white .glyph-icon { + -fx-fill: white; +} + +.status-view-white .progress-indicator .segment { + -fx-background-color: white; +} + /******************************************************************************* * * * ProgressIndicator * diff --git a/src/main/resources/fxml/vault_detail.fxml b/src/main/resources/fxml/vault_detail.fxml index 987ab9977..f4b49f7a6 100644 --- a/src/main/resources/fxml/vault_detail.fxml +++ b/src/main/resources/fxml/vault_detail.fxml @@ -10,6 +10,7 @@ + - +