Style fixes

This commit is contained in:
crschnick 2024-07-17 22:36:08 +00:00
parent 58533aba5b
commit e9d9152d23
4 changed files with 11 additions and 11 deletions

View file

@ -109,7 +109,7 @@ public class BrowserNavBar extends Comp<BrowserNavBar.Structure> {
new TooltipAugment<>("history", new KeyCodeCombination(KeyCode.H, KeyCombination.ALT_DOWN)) new TooltipAugment<>("history", new KeyCodeCombination(KeyCode.H, KeyCombination.ALT_DOWN))
.augment(historyButton); .augment(historyButton);
var breadcrumbs = new BrowserBreadcrumbBar(model).grow(false, true); var breadcrumbs = new BrowserBreadcrumbBar(model);
var pathRegion = pathBar.createStructure().get(); var pathRegion = pathBar.createStructure().get();
var breadcrumbsRegion = breadcrumbs.createRegion(); var breadcrumbsRegion = breadcrumbs.createRegion();
@ -143,7 +143,7 @@ public class BrowserNavBar extends Comp<BrowserNavBar.Structure> {
topBox.setFillHeight(true); topBox.setFillHeight(true);
topBox.setAlignment(Pos.CENTER); topBox.setAlignment(Pos.CENTER);
homeButton.minWidthProperty().bind(pathRegion.heightProperty()); homeButton.minWidthProperty().bind(pathRegion.heightProperty());
homeButton.maxWidthProperty().bind(pathRegion.heightProperty().multiply(1.3)); homeButton.maxWidthProperty().bind(pathRegion.heightProperty());
homeButton.minHeightProperty().bind(pathRegion.heightProperty()); homeButton.minHeightProperty().bind(pathRegion.heightProperty());
homeButton.maxHeightProperty().bind(pathRegion.heightProperty()); homeButton.maxHeightProperty().bind(pathRegion.heightProperty());
historyButton.minHeightProperty().bind(pathRegion.heightProperty()); historyButton.minHeightProperty().bind(pathRegion.heightProperty());

View file

@ -85,10 +85,10 @@ public class OpenFileSystemComp extends SimpleComp {
var filter = new BrowserFilterComp(model, model.getFilter()).createStructure(); var filter = new BrowserFilterComp(model, model.getFilter()).createStructure();
var topBar = new HBox(); var topBar = new HBox();
filter.textField().prefHeightProperty().bind(topBar.heightProperty());
topBar.setAlignment(Pos.CENTER); topBar.setAlignment(Pos.CENTER);
topBar.getStyleClass().add("top-bar"); topBar.getStyleClass().add("top-bar");
var navBar = new BrowserNavBar(model).createStructure(); var navBar = new BrowserNavBar(model).createStructure();
filter.textField().prefHeightProperty().bind(navBar.get().heightProperty());
AppFont.medium(navBar.get()); AppFont.medium(navBar.get());
topBar.getChildren() topBar.getChildren()
.setAll( .setAll(

View file

@ -33,8 +33,8 @@
} }
.bookmarks-header { .bookmarks-header {
-fx-min-height: 3.5em; -fx-min-height: 3.3em;
-fx-pref-height: 3.5em; -fx-pref-height: 3.3em;
-fx-max-height: 3.5em; -fx-max-height: 3.3em;
-fx-padding: 10 6 10 8; -fx-padding: 10 6 10 8;
} }

View file

@ -99,9 +99,9 @@
} }
.browser .top-bar { .browser .top-bar {
-fx-min-height: 3.5em; -fx-min-height: 3.3em;
-fx-pref-height: 3.5em; -fx-pref-height: 3.3em;
-fx-max-height: 3.5em; -fx-max-height: 3.3em;
-fx-padding: 9px 6px; -fx-padding: 9px 6px;
} }
@ -149,7 +149,7 @@
} }
.browser .breadcrumbs { .browser .breadcrumbs {
-fx-padding: 2px 10px 2px 10px; -fx-padding: 0px 10px 0px 10px;
} }
.browser .breadcrumbs { .browser .breadcrumbs {
@ -166,7 +166,7 @@
} }
.browser .path-text, .browser .browser-filter .text-field { .browser .path-text, .browser .browser-filter .text-field {
-fx-padding: 5 12; -fx-padding: 3 12;
} }
.browser .path-text:invisible { .browser .path-text:invisible {