From f6502c664c0d790adfe09d5727fd95d1ec55b3a2 Mon Sep 17 00:00:00 2001 From: crschnick Date: Sun, 16 Feb 2025 02:37:58 +0000 Subject: [PATCH] Improve category style --- .../main/java/io/xpipe/app/comp/store/StoreCategoryComp.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/xpipe/app/comp/store/StoreCategoryComp.java b/app/src/main/java/io/xpipe/app/comp/store/StoreCategoryComp.java index 994feb5c8..e87227d89 100644 --- a/app/src/main/java/io/xpipe/app/comp/store/StoreCategoryComp.java +++ b/app/src/main/java/io/xpipe/app/comp/store/StoreCategoryComp.java @@ -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")