Small fixes

This commit is contained in:
crschnick 2024-07-17 18:54:55 +00:00
parent 69938b469f
commit f5bd2758d1
2 changed files with 6 additions and 1 deletions

View file

@ -67,7 +67,7 @@ public class ModifiedStage extends Stage {
case OsType.MacOs macOs -> { case OsType.MacOs macOs -> {
var ctrl = new NativeMacOsWindowControl(stage); var ctrl = new NativeMacOsWindowControl(stage);
var seamlessFrame = !AppPrefs.get().performanceMode().get() && mergeFrame(); 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("seamless-frame"), seamlessFrameApplied);
stage.getScene().getRoot().pseudoClassStateChanged(PseudoClass.getPseudoClass("separate-frame"), !seamlessFrameApplied); stage.getScene().getRoot().pseudoClassStateChanged(PseudoClass.getPseudoClass("separate-frame"), !seamlessFrameApplied);
} }

View file

@ -57,6 +57,11 @@
-fx-padding: 0 0 0 0; -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 > * { .root:seamless-frame.layout > .background > * {
-fx-background-radius: 0 10 0 0; -fx-background-radius: 0 10 0 0;
-fx-border-radius: 0 10 0 0; -fx-border-radius: 0 10 0 0;