mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Small fixes
This commit is contained in:
parent
69938b469f
commit
f5bd2758d1
2 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue