From ea86fad3541ea9fd5305c24a6acaf57df28c26ef Mon Sep 17 00:00:00 2001 From: Dirk Lemmermann Date: Wed, 18 Oct 2023 15:11:50 +0200 Subject: [PATCH] Proper styling of custom stage when native. --- .../main/resources/com/dlsc/jfxcentral2/app/stage/stage.css | 6 +++--- .../src/main/java/com/dlsc/jfxcentral2/utils/OSUtil.java | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/app/src/main/resources/com/dlsc/jfxcentral2/app/stage/stage.css b/app/src/main/resources/com/dlsc/jfxcentral2/app/stage/stage.css index 16cc23f4..3648224f 100644 --- a/app/src/main/resources/com/dlsc/jfxcentral2/app/stage/stage.css +++ b/app/src/main/resources/com/dlsc/jfxcentral2/app/stage/stage.css @@ -26,9 +26,9 @@ -fx-alignment: center-left; } -.custom-stage .title-bar.native > .front-box { - -fx-padding: 15; - -fx-alignment: center; +.custom-stage .title-bar.native { + -fx-border-color: white; + -fx-border-width: 1px 0px 0px 0px; } .custom-stage .title-bar.native > .navigation-view { diff --git a/components/src/main/java/com/dlsc/jfxcentral2/utils/OSUtil.java b/components/src/main/java/com/dlsc/jfxcentral2/utils/OSUtil.java index 3fe6f786..eadcd3d4 100644 --- a/components/src/main/java/com/dlsc/jfxcentral2/utils/OSUtil.java +++ b/components/src/main/java/com/dlsc/jfxcentral2/utils/OSUtil.java @@ -55,10 +55,6 @@ public static boolean isUnknown() { } public static boolean isNative() { - if (true) { - return true; - } return PlatformUtils.isIOS() || PlatformUtils.isAndroid(); } - }