Skip to content

Commit

Permalink
Fixed progress-indicator styling
Browse files Browse the repository at this point in the history
  • Loading branch information
btut committed May 12, 2020
1 parent 396411a commit e24c141
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions src/main/java/org/jabref/gui/Base.css
Original file line number Diff line number Diff line change
Expand Up @@ -387,13 +387,16 @@
-fx-padding: -0.1em 0.5em 0.5em 0.5em;
}

.progress-indicatorToolbar,
.progress-indicator {
-fx-progress-color: -jr-theme;
-fx-border-width: 0px;
-fx-background-color: -jr-icon-background;
}

.progress-indicator:hover {
-fx-background-color: -jr-icon-background-active;
}

.progress-indicatorToolbar {
-fx-padding: 0.5em;
}
Expand All @@ -402,11 +405,6 @@
-fx-fill:null;
}

.progress-indicator:hover,
.progress-indicatorToolbar:hover {
-fx-background-color: -jr-icon-background-active;
}

.check-box {
-fx-label-padding: 0.0em 0.0em 0.0em 0.75em;
-fx-text-fill: -fx-text-background-color;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jabref/gui/JabRefFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ private MenuBar createMenu() {

private Group createTaskIndicator() {
ProgressIndicator indicator = new ProgressIndicator();
indicator.getStyleClass().setAll("progress-indicatorToolbar");
indicator.getStyleClass().add("progress-indicatorToolbar");
indicator.progressProperty().bind(stateManager.getTasksProgress());

Tooltip someTasksRunning = new Tooltip(Localization.lang("Background Tasks are running"));
Expand Down

0 comments on commit e24c141

Please sign in to comment.