mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-26 19:26:32 +00:00
Add some opacity to layout
This commit is contained in:
@@ -44,6 +44,12 @@ public class AppLayoutComp extends Comp<AppLayoutComp.Structure> {
|
||||
var multi = new MultiContentComp(map, true);
|
||||
multi.styleClass("background");
|
||||
|
||||
multi.apply(struc -> {
|
||||
struc.get().opacityProperty().bind(Bindings.createDoubleBinding(() -> {
|
||||
return AppPrefs.get().performanceMode().get() ? 1.0 : 0.9;
|
||||
}, AppPrefs.get().performanceMode()));
|
||||
});
|
||||
|
||||
var pane = new BorderPane();
|
||||
var sidebar = new SideMenuBarComp(model.getSelected(), model.getEntries(), model.getQueueEntries());
|
||||
StackPane multiR = (StackPane) multi.createRegion();
|
||||
|
||||
Reference in New Issue
Block a user