mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-24 16:40:58 -04:00
Browser fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user