mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-19 13:51:23 +00:00
Style fixes
This commit is contained in:
parent
58533aba5b
commit
e9d9152d23
|
@ -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());
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue