mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-26 18:35:43 +00:00
Improve category style
This commit is contained in:
@@ -14,6 +14,7 @@ import io.xpipe.app.util.ClipboardHelper;
|
||||
import io.xpipe.app.util.ContextMenuHelper;
|
||||
import io.xpipe.app.util.LabelGraphic;
|
||||
|
||||
import io.xpipe.core.process.OsType;
|
||||
import javafx.beans.binding.Bindings;
|
||||
import javafx.beans.property.SimpleBooleanProperty;
|
||||
import javafx.beans.property.SimpleObjectProperty;
|
||||
@@ -79,7 +80,9 @@ public class StoreCategoryComp extends SimpleComp {
|
||||
.apply(struc -> {
|
||||
struc.get().setAlignment(Pos.CENTER);
|
||||
struc.get().setFocusTraversable(false);
|
||||
HBox.setMargin(struc.get(), new Insets(0, 0, 2.6, 0));
|
||||
if (OsType.getLocal() != OsType.LINUX) {
|
||||
HBox.setMargin(struc.get(), new Insets(0, 0, 2.6, 0));
|
||||
}
|
||||
})
|
||||
.disable(Bindings.isEmpty(category.getChildren().getList()))
|
||||
.styleClass("expand-button")
|
||||
|
||||
Reference in New Issue
Block a user