Use standard decorated window style on all platforms (because utility style does not look good on Windows 10)

This commit is contained in:
Reinhard Pointner 2016-11-06 00:03:28 +08:00
parent 6ab502b7dd
commit 6895631297
1 changed files with 5 additions and 9 deletions

View File

@ -56,15 +56,11 @@ public class GettingStartedStage {
Stage stage = new Stage();
stage.setResizable(false);
if (isMacApp()) {
// Mac OS X specific configuration
stage.initStyle(StageStyle.DECORATED);
stage.initModality(Modality.NONE);
} else {
// Windows / Linux specific configuration
stage.initStyle(StageStyle.UTILITY);
stage.initModality(Modality.NONE);
stage.getIcons().addAll(ResourceManager.getApplicationIconsFX());
stage.initStyle(StageStyle.DECORATED);
stage.initModality(Modality.NONE);
if (!isMacApp()) {
stage.getIcons().addAll(ResourceManager.getApplicationIconsFX()); // Windows / Linux specific configuration
}
return new GettingStartedStage(stage);