mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 09:00:26 +00:00
Style fixes
This commit is contained in:
parent
f5edcb69d3
commit
5e8ddb881d
2 changed files with 11 additions and 7 deletions
|
@ -51,6 +51,8 @@ public class BrowserSessionTabsComp extends SimpleComp {
|
||||||
|
|
||||||
public Region createSimple() {
|
public Region createSimple() {
|
||||||
var multi = new MultiContentComp(Map.<Comp<?>, ObservableValue<Boolean>>of(
|
var multi = new MultiContentComp(Map.<Comp<?>, ObservableValue<Boolean>>of(
|
||||||
|
Comp.hspacer().styleClass("top-spacer"),
|
||||||
|
new SimpleBooleanProperty(true),
|
||||||
Comp.of(() -> createTabPane()),
|
Comp.of(() -> createTabPane()),
|
||||||
Bindings.isNotEmpty(model.getSessionEntries()),
|
Bindings.isNotEmpty(model.getSessionEntries()),
|
||||||
new BrowserWelcomeComp(model).apply(struc -> StackPane.setAlignment(struc.get(), Pos.CENTER_LEFT)),
|
new BrowserWelcomeComp(model).apply(struc -> StackPane.setAlignment(struc.get(), Pos.CENTER_LEFT)),
|
||||||
|
@ -59,6 +61,7 @@ public class BrowserSessionTabsComp extends SimpleComp {
|
||||||
return model.getSessionEntries().size() == 0;
|
return model.getSessionEntries().size() == 0;
|
||||||
},
|
},
|
||||||
model.getSessionEntries())));
|
model.getSessionEntries())));
|
||||||
|
multi.apply(struc -> ((StackPane) struc.get()).setAlignment(Pos.TOP_CENTER));
|
||||||
return multi.createRegion();
|
return multi.createRegion();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,15 +50,16 @@
|
||||||
-fx-opacity: 1.0;
|
-fx-opacity: 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.browser .welcome {
|
.browser .top-spacer {
|
||||||
-fx-border-color: -color-bg-inset, -color-border-default;
|
-fx-background-color: -color-bg-inset;
|
||||||
-fx-border-width: 2.65em 10 0 0, 0.05em 0 0 0;
|
-fx-border-width: 0 0 0.05em 0;
|
||||||
-fx-border-insets: 0, 2.65em 0 0 0;
|
-fx-border-color: -color-border-default;
|
||||||
-fx-border-radius: 0 10 0 0, 0;
|
-fx-pref-height: 2.65em;
|
||||||
|
-fx-max-height: 2.65em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.root:seamless-frame .browser .welcome {
|
.root:seamless-frame .browser .top-spacer {
|
||||||
-fx-background-radius: 0 10 0 0, 0, 0;
|
-fx-background-radius: 0 10 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.browser .welcome .button:hover {
|
.browser .welcome .button:hover {
|
||||||
|
|
Loading…
Reference in a new issue