mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-10-01 09:40:35 +13:00
Fixes
This commit is contained in:
parent
cecc6b0880
commit
bb9f27300b
3 changed files with 15 additions and 2 deletions
|
@ -34,13 +34,13 @@ public class AppLayoutComp extends Comp<CompStructure<Pane>> {
|
|||
},
|
||||
model.getSelected())));
|
||||
var multi = new MultiContentComp(map);
|
||||
multi.styleClass("background");
|
||||
|
||||
var pane = new BorderPane();
|
||||
var sidebar = new SideMenuBarComp(model.getSelected(), model.getEntries());
|
||||
StackPane multiR = (StackPane) multi.createRegion();
|
||||
pane.setCenter(multiR);
|
||||
pane.setRight(sidebar.createRegion());
|
||||
pane.getStyleClass().add("background");
|
||||
model.getSelected().addListener((c, o, n) -> {
|
||||
if (o != null && o.equals(model.getEntries().get(2))) {
|
||||
AppPrefs.get().save();
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
.sidebar-comp .icon-button-comp, .sidebar-comp .button {
|
||||
-fx-background-radius: 0;
|
||||
-fx-background-insets: 0;
|
||||
-fx-background-color: -color-neutral-subtle;
|
||||
-fx-background-color: transparent;
|
||||
}
|
||||
|
||||
.sidebar-comp .button:disabled {
|
||||
|
@ -23,6 +23,10 @@
|
|||
-fx-background-color: -color-neutral-muted;
|
||||
}
|
||||
|
||||
.sidebar-comp {
|
||||
-fx-background-color: transparent;
|
||||
}
|
||||
|
||||
.sidebar-comp .icon-button-comp {
|
||||
-fx-padding: 1.1em;
|
||||
}
|
||||
|
|
|
@ -4,10 +4,19 @@
|
|||
-fx-border-color: red;
|
||||
}
|
||||
*/
|
||||
|
||||
.root {
|
||||
-fx-background-color: transparent;
|
||||
}
|
||||
|
||||
.root:dark .background {
|
||||
-fx-background-color: derive(-color-bg-default, 1%);
|
||||
}
|
||||
|
||||
.root:light .background {
|
||||
-fx-background-color: derive(-color-bg-default, -9%);
|
||||
}
|
||||
|
||||
.toggle-switch:has-graphic .label {
|
||||
-fx-font-size: 1.7em;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue