Use standard decorated window style on all platforms (because utility style does not look good on Windows 10)
This commit is contained in:
parent
6ab502b7dd
commit
6895631297
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue