Style fixes

This commit is contained in:
crschnick 2024-07-23 01:26:45 +00:00
parent 3e183a22f4
commit d4da792e49
3 changed files with 5 additions and 7 deletions

View file

@ -92,7 +92,7 @@ public class DenseStoreEntryComp extends StoreEntryComp {
nameCC.setHgrow(Priority.ALWAYS);
grid.getColumnConstraints().addAll(nameCC);
var nameBox = new HBox(name, notes);
nameBox.setSpacing(1);
nameBox.setSpacing(6);
nameBox.setAlignment(Pos.CENTER_LEFT);
grid.addRow(0, nameBox);

View file

@ -2,6 +2,7 @@ package io.xpipe.app.comp.store;
import io.xpipe.app.core.AppFont;
import io.xpipe.app.fxcomps.Comp;
import io.xpipe.core.process.OsType;
import javafx.geometry.HPos;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
@ -33,14 +34,14 @@ public class StandardStoreEntryComp extends StoreEntryComp {
var grid = new GridPane();
grid.setHgap(6);
grid.setVgap(0);
grid.setVgap(OsType.getLocal() == OsType.MACOS ? 2 : 0);
var storeIcon = createIcon(46, 40);
grid.add(storeIcon, 0, 0, 1, 2);
grid.getColumnConstraints().add(new ColumnConstraints(56));
var nameAndNotes = new HBox(name, notes);
nameAndNotes.setSpacing(1);
nameAndNotes.setSpacing(6);
nameAndNotes.setAlignment(Pos.CENTER_LEFT);
grid.add(nameAndNotes, 1, 0);
GridPane.setVgrow(nameAndNotes, Priority.ALWAYS);

View file

@ -1,5 +1,6 @@
package io.xpipe.app.comp.store;
import atlantafx.base.controls.Popover;
import io.xpipe.app.comp.base.ButtonComp;
import io.xpipe.app.comp.base.DialogComp;
import io.xpipe.app.comp.base.MarkdownEditorComp;
@ -10,7 +11,6 @@ import io.xpipe.app.fxcomps.CompStructure;
import io.xpipe.app.fxcomps.impl.IconButtonComp;
import io.xpipe.app.fxcomps.util.BindingsHelper;
import io.xpipe.app.storage.DataStorage;
import javafx.application.Platform;
import javafx.beans.property.Property;
import javafx.beans.property.SimpleStringProperty;
@ -18,8 +18,6 @@ import javafx.event.ActionEvent;
import javafx.scene.control.Button;
import javafx.scene.paint.Color;
import atlantafx.base.controls.Popover;
import java.util.List;
import java.util.concurrent.atomic.AtomicReference;
@ -39,7 +37,6 @@ public class StoreNotesComp extends Comp<StoreNotesComp.Structure> {
.focusTraversableForAccessibility()
.tooltipKey("notes")
.styleClass("notes-button")
.grow(false, true)
.hide(BindingsHelper.map(n, s -> s.getCommited() == null && s.getCurrent() == null))
.createStructure()
.get();