mirror of
https://github.com/xpipe-io/xpipe.git
synced 2025-04-17 09:43:37 +00:00
Small fixes
This commit is contained in:
parent
6de7e39bb4
commit
1fd26a4313
5 changed files with 52 additions and 10 deletions
|
@ -82,6 +82,10 @@ class BrowserFileListNameCell extends TableCell<BrowserEntry, String> {
|
|||
}
|
||||
|
||||
var item = getTableRow().getItem();
|
||||
if (item == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var notDir = item.getRawFileEntry().resolved().getKind() != FileKind.DIRECTORY;
|
||||
var isParentLink = item.getRawFileEntry()
|
||||
.equals(fileList.getFileSystemModel().getCurrentParentDirectory());
|
||||
|
|
|
@ -14,6 +14,7 @@ import io.xpipe.core.process.OsType;
|
|||
|
||||
import javafx.beans.binding.Bindings;
|
||||
import javafx.beans.property.SimpleStringProperty;
|
||||
import javafx.css.PseudoClass;
|
||||
import javafx.geometry.Insets;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.control.Label;
|
||||
|
@ -134,17 +135,11 @@ public class StoreEntryListOverviewComp extends SimpleComp {
|
|||
var b = new IconButtonComp("mdi2l-layers", () -> {
|
||||
batchMode.setValue(!batchMode.getValue());
|
||||
});
|
||||
b.styleClass("batch-mode-button");
|
||||
b.apply(struc -> {
|
||||
struc.get()
|
||||
.opacityProperty()
|
||||
.bind(Bindings.createDoubleBinding(
|
||||
() -> {
|
||||
if (batchMode.getValue()) {
|
||||
return 1.0;
|
||||
}
|
||||
return 0.4;
|
||||
},
|
||||
batchMode));
|
||||
batchMode.subscribe(a -> {
|
||||
struc.get().pseudoClassStateChanged(PseudoClass.getPseudoClass("active"), a);
|
||||
});
|
||||
struc.get().getStyleClass().remove(Styles.FLAT);
|
||||
});
|
||||
return b;
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
package io.xpipe.app.core.check;
|
||||
|
||||
import io.xpipe.app.core.AppCache;
|
||||
import io.xpipe.app.issue.ErrorEvent;
|
||||
import io.xpipe.app.util.LocalExec;
|
||||
import io.xpipe.core.process.OsType;
|
||||
|
||||
public class AppPathCorruptCheck {
|
||||
|
||||
public static void check() {
|
||||
if (OsType.getLocal() != OsType.WINDOWS) {
|
||||
return;
|
||||
}
|
||||
|
||||
var where = LocalExec.readStdoutIfPossible("where", "powershell");
|
||||
if (where.isPresent()) {
|
||||
return;
|
||||
}
|
||||
|
||||
ErrorEvent.fromMessage(
|
||||
"Your system PATH looks to be corrupt, essential system tools are not available. This will cause XPipe to not function correctly. Please make sure to fix your PATH environment variable to include the base Windows tools.")
|
||||
.expected()
|
||||
.handle();
|
||||
}
|
||||
}
|
|
@ -56,6 +56,7 @@ public class BaseMode extends OperationMode {
|
|||
TrackEvent.info("Initializing base mode components ...");
|
||||
AppMainWindow.loadingText("initializingApp");
|
||||
LicenseProvider.get().init();
|
||||
AppPathCorruptCheck.check();
|
||||
AppHomebrewCoreutilsCheck.check();
|
||||
AppAvCheck.check();
|
||||
AppJavaOptionsCheck.check();
|
||||
|
|
|
@ -116,6 +116,23 @@
|
|||
-fx-padding: -5 4 0 5;
|
||||
}
|
||||
|
||||
.icon-button-comp.batch-mode-button {
|
||||
-fx-border-radius: 3;
|
||||
-fx-background-radius: 3;
|
||||
-fx-focus-color: transparent;
|
||||
-fx-background-insets: 0;
|
||||
-fx-border-width: 1;
|
||||
-fx-border-color: -color-fg-subtle;
|
||||
}
|
||||
|
||||
.batch-mode-button .ikonli-font-icon {
|
||||
-fx-icon-color: -color-fg-default;
|
||||
}
|
||||
|
||||
.batch-mode-button:active .ikonli-font-icon {
|
||||
-fx-icon-color: -color-accent-emphasis;
|
||||
}
|
||||
|
||||
.root:pretty:light .store-active-comp .dot {
|
||||
-fx-fill: radial-gradient(radius 180%, rgb(30, 180, 30, 0.6), rgb(20, 120, 20, 0.65), rgb(37, 200, 37, 0.6));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue