Merge pull request #2689 from ripcurlx/adapt-update-popup

Adapt update popup
This commit is contained in:
Manfred Karrer 2019-04-10 11:03:27 -05:00 committed by GitHub
commit e5f4299a77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View file

@ -122,12 +122,12 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
@SuppressWarnings("PointlessBooleanExpression")
public static void blurLight() {
transitions.blur(MainView.rootContainer, Transitions.DEFAULT_DURATION, -0.1, false, 5);
transitions.blur(MainView.rootContainer, Transitions.DEFAULT_DURATION, -0.6, false, 5);
}
@SuppressWarnings("PointlessBooleanExpression")
public static void blurUltraLight() {
transitions.blur(MainView.rootContainer, Transitions.DEFAULT_DURATION, -0.1, false, 2);
transitions.blur(MainView.rootContainer, Transitions.DEFAULT_DURATION, -0.6, false, 2);
}
@SuppressWarnings("PointlessBooleanExpression")

View file

@ -90,8 +90,9 @@ public class DisplayUpdateDownloadWindow extends Overlay<DisplayUpdateDownloadWi
public void show() {
width = 968;
// need to set headLine, otherwise the fields will not be created in addHeadLine
headLine = Res.get("displayUpdateDownloadWindow.headline");
createGridPane();
information(""); // to set regular information styling
headLine = Res.get("displayUpdateDownloadWindow.headline");
addHeadLine();
addContent();
addButtons();
@ -104,9 +105,6 @@ public class DisplayUpdateDownloadWindow extends Overlay<DisplayUpdateDownloadWi
///////////////////////////////////////////////////////////////////////////////////////////
private void addContent() {
headLine = "Important update information!";
headLineLabel.getStyleClass().addAll("headline-label", "highlight");
checkNotNull(alert, "alertMessage must not be null");
addMultilineLabel(gridPane, ++rowIndex, alert.getMessage(), 10);