Style fixes

This commit is contained in:
crschnick 2024-07-05 19:43:40 +00:00
parent f5edcb69d3
commit 5e8ddb881d
2 changed files with 11 additions and 7 deletions

View file

@ -51,6 +51,8 @@ public class BrowserSessionTabsComp extends SimpleComp {
public Region createSimple() {
var multi = new MultiContentComp(Map.<Comp<?>, ObservableValue<Boolean>>of(
Comp.hspacer().styleClass("top-spacer"),
new SimpleBooleanProperty(true),
Comp.of(() -> createTabPane()),
Bindings.isNotEmpty(model.getSessionEntries()),
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;
},
model.getSessionEntries())));
multi.apply(struc -> ((StackPane) struc.get()).setAlignment(Pos.TOP_CENTER));
return multi.createRegion();
}

View file

@ -50,15 +50,16 @@
-fx-opacity: 1.0;
}
.browser .welcome {
-fx-border-color: -color-bg-inset, -color-border-default;
-fx-border-width: 2.65em 10 0 0, 0.05em 0 0 0;
-fx-border-insets: 0, 2.65em 0 0 0;
-fx-border-radius: 0 10 0 0, 0;
.browser .top-spacer {
-fx-background-color: -color-bg-inset;
-fx-border-width: 0 0 0.05em 0;
-fx-border-color: -color-border-default;
-fx-pref-height: 2.65em;
-fx-max-height: 2.65em;
}
.root:seamless-frame .browser .welcome {
-fx-background-radius: 0 10 0 0, 0, 0;
.root:seamless-frame .browser .top-spacer {
-fx-background-radius: 0 10 0 0;
}
.browser .welcome .button:hover {