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 stage = new Stage();
|
||||||
stage.setResizable(false);
|
stage.setResizable(false);
|
||||||
|
|
||||||
if (isMacApp()) {
|
stage.initStyle(StageStyle.DECORATED);
|
||||||
// Mac OS X specific configuration
|
stage.initModality(Modality.NONE);
|
||||||
stage.initStyle(StageStyle.DECORATED);
|
|
||||||
stage.initModality(Modality.NONE);
|
if (!isMacApp()) {
|
||||||
} else {
|
stage.getIcons().addAll(ResourceManager.getApplicationIconsFX()); // Windows / Linux specific configuration
|
||||||
// Windows / Linux specific configuration
|
|
||||||
stage.initStyle(StageStyle.UTILITY);
|
|
||||||
stage.initModality(Modality.NONE);
|
|
||||||
stage.getIcons().addAll(ResourceManager.getApplicationIconsFX());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return new GettingStartedStage(stage);
|
return new GettingStartedStage(stage);
|
||||||
|
Loading…
Reference in New Issue
Block a user