From f5bd2758d1a027ff132510b80fd284d11efa29a0 Mon Sep 17 00:00:00 2001 From: crschnick Date: Wed, 17 Jul 2024 18:54:55 +0000 Subject: [PATCH] Small fixes --- .../main/java/io/xpipe/app/core/window/ModifiedStage.java | 2 +- .../main/resources/io/xpipe/app/resources/style/style.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/xpipe/app/core/window/ModifiedStage.java b/app/src/main/java/io/xpipe/app/core/window/ModifiedStage.java index 18bc28f82..ef0f69fa1 100644 --- a/app/src/main/java/io/xpipe/app/core/window/ModifiedStage.java +++ b/app/src/main/java/io/xpipe/app/core/window/ModifiedStage.java @@ -67,7 +67,7 @@ public class ModifiedStage extends Stage { case OsType.MacOs macOs -> { var ctrl = new NativeMacOsWindowControl(stage); var seamlessFrame = !AppPrefs.get().performanceMode().get() && mergeFrame(); - var seamlessFrameApplied = ctrl.setAppearance(seamlessFrame, AppPrefs.get().theme.getValue().isDark()) && seamlessFrame; + var seamlessFrameApplied = seamlessFrame && ctrl.setAppearance(seamlessFrame, AppPrefs.get().theme.getValue().isDark()); stage.getScene().getRoot().pseudoClassStateChanged(PseudoClass.getPseudoClass("seamless-frame"), seamlessFrameApplied); stage.getScene().getRoot().pseudoClassStateChanged(PseudoClass.getPseudoClass("separate-frame"), !seamlessFrameApplied); } diff --git a/app/src/main/resources/io/xpipe/app/resources/style/style.css b/app/src/main/resources/io/xpipe/app/resources/style/style.css index 00bf38800..bfc127634 100644 --- a/app/src/main/resources/io/xpipe/app/resources/style/style.css +++ b/app/src/main/resources/io/xpipe/app/resources/style/style.css @@ -57,6 +57,11 @@ -fx-padding: 0 0 0 0; } +.root.macos:seamless-frame.layout > .background { + -fx-background-insets: 0; + -fx-border-insets: 0; +} + .root:seamless-frame.layout > .background > * { -fx-background-radius: 0 10 0 0; -fx-border-radius: 0 10 0 0;