Small fixes [stage]

This commit is contained in:
crschnick 2024-06-27 09:34:53 +00:00
parent 2df431ae79
commit 5ca15b2af6
4 changed files with 7 additions and 6 deletions

View file

@ -92,7 +92,7 @@ public class BrowserTransferComp extends SimpleComp {
.hide(Bindings.isEmpty(syncItems));
var bottom =
new HorizontalComp(List.of(dragNotice, Comp.hspacer(), downloadButton, Comp.hspacer(4), clearButton));
new HorizontalComp(List.of(Comp.hspacer(), dragNotice, Comp.hspacer(), downloadButton, Comp.hspacer(4), clearButton));
var listBox = new VerticalComp(List.of(list, bottom))
.spacing(5)
.padding(new Insets(10, 10, 5, 10))

View file

@ -8,7 +8,6 @@ import io.xpipe.app.prefs.AppPrefs;
import io.xpipe.app.util.InputHelper;
import io.xpipe.app.util.ThreadHelper;
import io.xpipe.core.process.OsType;
import javafx.application.Platform;
import javafx.beans.value.ObservableValue;
import javafx.css.PseudoClass;
@ -190,7 +189,9 @@ public class AppWindowHelper {
alert.initOwner(AppMainWindow.getInstance().getStage());
}
alert.getDialogPane().getScene().setFill(Color.TRANSPARENT);
addIcons(((Stage) alert.getDialogPane().getScene().getWindow()));
var stage = (Stage) alert.getDialogPane().getScene().getWindow();
stage.initStyle(StageStyle.UNIFIED);
addIcons(stage);
setupStylesheets(alert.getDialogPane().getScene());
return alert;
}

View file

@ -22,9 +22,9 @@ public class SyncCategory extends AppPrefsCategory {
.sub(new OptionsBuilder()
.name("enableGitStorage")
.description(
AppProperties.get().isStaging() ? "enableGitStoragePtbDisabled" : "enableGitStorage")
AppProperties.get().isStaging() && !prefs.developerMode().getValue() ? "enableGitStoragePtbDisabled" : "enableGitStorage")
.addToggle(prefs.enableGitStorage)
.disable(AppProperties.get().isStaging())
.disable(AppProperties.get().isStaging() && !prefs.developerMode().getValue())
.nameAndDescription("storageGitRemote")
.addString(prefs.storageGitRemote, true)
.disable(prefs.enableGitStorage.not())

View file

@ -1 +1 @@
10.0-23
10.0-24