Improve category style

This commit is contained in:
crschnick
2025-02-16 02:37:58 +00:00
parent eb67516209
commit f6502c664c
@@ -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")