mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-23 01:36:33 +00:00
Rework
This commit is contained in:
@@ -89,6 +89,10 @@ public class DenseStoreEntryComp extends StoreEntryComp {
|
||||
controls.setAlignment(Pos.CENTER_RIGHT);
|
||||
controls.setSpacing(10);
|
||||
|
||||
var bbButton = (Region) bb.getChildrenUnmodifiable().getFirst();
|
||||
info.prefHeightProperty().bind(bbButton.heightProperty());
|
||||
info.maxHeightProperty().bind(bbButton.heightProperty());
|
||||
|
||||
var rightWidth = Bindings.createDoubleBinding(
|
||||
() -> {
|
||||
return controls.getWidth();
|
||||
|
||||
@@ -105,6 +105,10 @@ public class StandardStoreEntryComp extends StoreEntryComp {
|
||||
controls.setAlignment(Pos.CENTER_RIGHT);
|
||||
controls.setSpacing(10);
|
||||
|
||||
var bbButton = (Region) bb.getChildrenUnmodifiable().getFirst();
|
||||
info.prefHeightProperty().bind(bbButton.heightProperty());
|
||||
info.maxHeightProperty().bind(bbButton.heightProperty());
|
||||
|
||||
var rightWidth = Bindings.createDoubleBinding(
|
||||
() -> {
|
||||
return controls.getWidth();
|
||||
|
||||
@@ -49,6 +49,7 @@ public class StoreEntryInformationComp extends SimpleRegionBuilder {
|
||||
h.spacing(8);
|
||||
|
||||
var hbox = h.build();
|
||||
hbox.setFillHeight(true);
|
||||
hbox.setMinWidth(0);
|
||||
hbox.setPrefWidth(Region.USE_COMPUTED_SIZE);
|
||||
hbox.setAlignment(Pos.CENTER_LEFT);
|
||||
@@ -136,6 +137,7 @@ public class StoreEntryInformationComp extends SimpleRegionBuilder {
|
||||
? val.getCompressedName().orElse(val.getGraphic() != null ? null : val.getName())
|
||||
: val.getName();
|
||||
var button = new ButtonComp(new ReadOnlyObjectWrapper<>(name), val.getGraphic(), null);
|
||||
button.maxHeight(100);
|
||||
button.minWidth(Region.USE_PREF_SIZE);
|
||||
button.style("store-entry-badge");
|
||||
val.getAction()
|
||||
|
||||
@@ -294,6 +294,7 @@
|
||||
-fx-background-radius: 4;
|
||||
-fx-font-size: 1.0em;
|
||||
-fx-padding: 2 5 2 5;
|
||||
-fx-background-color: -color-bg-default-transparent;
|
||||
}
|
||||
|
||||
.store-entry-badge .stacked-ikonli-font-icon > .outer-icon {
|
||||
@@ -321,8 +322,9 @@
|
||||
-fx-icon-color: -color-accent-emphasis;
|
||||
}
|
||||
|
||||
.store-entry-badge.clickable:hover {
|
||||
.store-entry-badge:hover {
|
||||
-fx-background-color: -color-bg-default-transparent;
|
||||
-fx-border-color: -color-accent-muted;
|
||||
}
|
||||
|
||||
.root:nord .store-entry-badge {
|
||||
|
||||
Reference in New Issue
Block a user