Browser fixes

This commit is contained in:
crschnick
2023-11-06 20:05:04 +00:00
parent 812a97d365
commit 5f6a9e6deb
3 changed files with 19 additions and 8 deletions

View File

@@ -88,9 +88,6 @@ public final class BrowserFileListModel {
.toList()
: all.getValue();
Comparator<BrowserEntry> tableComparator = comparatorProperty.getValue();
var comparator =
tableComparator != null ? FILE_TYPE_COMPARATOR.thenComparing(tableComparator) : FILE_TYPE_COMPARATOR;
var listCopy = new ArrayList<>(filtered);
sort(listCopy);
shown.setValue(listCopy);

View File

@@ -73,8 +73,8 @@ public class BrowserTransferComp extends SimpleComp {
.apply(struc -> struc.get().setSpacing(10)),
button -> {
var p = new AnchorPane(button);
AnchorPane.setRightAnchor(button, 20.0);
AnchorPane.setTopAnchor(button, 20.0);
AnchorPane.setRightAnchor(button, 10.0);
AnchorPane.setTopAnchor(button, 10.0);
p.setPickOnBounds(false);
return p;
});
@@ -155,6 +155,6 @@ public class BrowserTransferComp extends SimpleComp {
});
}),
PlatformThread.sync(stage.getDownloading()));
return stack.createRegion();
return stack.styleClass("transfer").createRegion();
}
}

View File

@@ -1,7 +1,21 @@
.download-background {
-fx-border-color: -color-border-default;
-fx-border-width: 1px 0 0 0;
-fx-padding: 1em;
}
.transfer .button {
-fx-border-color: -color-border-default;
-fx-border-width: 1px 0 0 0;
-fx-padding: 1em;
-fx-border-width: 1px;
-fx-background-color: -color-bg-default;
-fx-background-radius: 4;
-fx-border-radius: 4;
-fx-padding: 0.1em 0.2em;
}
.transfer .button:hover {
-fx-background-color: -color-bg-subtle;
-fx-opacity: 1.0;
}
.browser .welcome .button {