mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +00:00
Style fixes
This commit is contained in:
parent
0632875c7d
commit
708c2d0c3f
4 changed files with 7 additions and 7 deletions
|
@ -42,12 +42,11 @@ public final class BrowserBookmarkHeaderComp extends SimpleComp {
|
||||||
var top = new HorizontalComp(List.of(category, filter))
|
var top = new HorizontalComp(List.of(category, filter))
|
||||||
.apply(struc -> struc.get().setFillHeight(true))
|
.apply(struc -> struc.get().setFillHeight(true))
|
||||||
.apply(struc -> {
|
.apply(struc -> {
|
||||||
((Region) struc.get().getChildren().get(0))
|
var first = ((Region) struc.get().getChildren().get(0));
|
||||||
.prefHeightProperty()
|
var second = ((Region) struc.get().getChildren().get(1));
|
||||||
.bind(((Region) struc.get().getChildren().get(1)).heightProperty());
|
first.prefHeightProperty().bind(second.heightProperty());
|
||||||
((Region) struc.get().getChildren().get(0))
|
first.minHeightProperty().bind(second.heightProperty());
|
||||||
.minWidthProperty()
|
first.maxHeightProperty().bind(second.heightProperty());
|
||||||
.bind(struc.get().widthProperty().divide(2.0));
|
|
||||||
})
|
})
|
||||||
.styleClass("bookmarks-header")
|
.styleClass("bookmarks-header")
|
||||||
.createRegion();
|
.createRegion();
|
||||||
|
|
|
@ -35,6 +35,7 @@ public class FilterComp extends Comp<CompStructure<CustomTextField>> {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var filter = new CustomTextField();
|
var filter = new CustomTextField();
|
||||||
|
filter.setMinHeight(0);
|
||||||
filter.setMaxHeight(2000);
|
filter.setMaxHeight(2000);
|
||||||
filter.getStyleClass().add("filter-comp");
|
filter.getStyleClass().add("filter-comp");
|
||||||
filter.promptTextProperty().bind(AppI18n.observable("searchFilter"));
|
filter.promptTextProperty().bind(AppI18n.observable("searchFilter"));
|
||||||
|
|
|
@ -36,5 +36,5 @@
|
||||||
-fx-min-height: 3.3em;
|
-fx-min-height: 3.3em;
|
||||||
-fx-pref-height: 3.3em;
|
-fx-pref-height: 3.3em;
|
||||||
-fx-max-height: 3.3em;
|
-fx-max-height: 3.3em;
|
||||||
-fx-padding: 10 6 10 8;
|
-fx-padding: 9 6 9 8;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue