Webtop fixes

This commit is contained in:
crschnick
2025-02-16 01:27:13 +00:00
parent 0a96061b1b
commit eb67516209
3 changed files with 50 additions and 8 deletions
@@ -125,14 +125,15 @@ public class AppLayoutModel {
new LabelGraphic.IconGraphic("mdi2b-book-open-variant"),
null,
() -> Hyperlinks.open(Hyperlinks.DOCS),
null),
new Entry(
AppI18n.observable("webtop"),
new LabelGraphic.IconGraphic("mdi2d-desktop-mac"),
null,
() -> Hyperlinks.open(Hyperlinks.GITHUB_WEBTOP),
null)));
if (AppDistributionType.get() != AppDistributionType.WEBTOP) {
l.add(new Entry(
AppI18n.observable("webtop"),
new LabelGraphic.IconGraphic("mdi2d-desktop-mac"),
null,
() -> Hyperlinks.open(Hyperlinks.GITHUB_WEBTOP),
null));
}
return l;
}
@@ -1,5 +1,6 @@
package io.xpipe.app.terminal;
import io.xpipe.app.core.AppDistributionType;
import io.xpipe.app.ext.PrefsChoiceValue;
import io.xpipe.app.ext.ProcessControlProvider;
import io.xpipe.app.prefs.ExternalApplicationType;
@@ -413,6 +414,41 @@ public interface ExternalTerminalType extends PrefsChoiceValue {
return CommandBuilder.of().add("-c").addFile(configuration.getScriptFile());
}
};
ExternalTerminalType UXTERM = new SimplePathType("app.uxterm", "uxterm", true) {
@Override
public String getWebsite() {
return "https://invisible-island.net/xterm/";
}
@Override
public TerminalOpenFormat getOpenFormat() {
return TerminalOpenFormat.NEW_WINDOW;
}
@Override
public boolean isRecommended() {
return false;
}
@Override
public boolean useColoredTitle() {
return true;
}
@Override
public boolean supportsUnicode() {
return true;
}
@Override
protected CommandBuilder toCommand(TerminalLaunchConfiguration configuration) {
return CommandBuilder.of()
.add("-title")
.addQuoted(configuration.getColoredTitle())
.add("-e")
.addFile(configuration.getScriptFile());
}
};
ExternalTerminalType XTERM = new SimplePathType("app.xterm", "xterm", true) {
@Override
public String getWebsite() {
@@ -612,6 +648,7 @@ public interface ExternalTerminalType extends PrefsChoiceValue {
TILIX,
GUAKE,
TILDA,
UXTERM,
XTERM,
DEEPIN_TERMINAL,
FOOT,
@@ -664,6 +701,10 @@ public interface ExternalTerminalType extends PrefsChoiceValue {
return existing;
}
if (existing == null && AppDistributionType.get() == AppDistributionType.WEBTOP) {
return ExternalTerminalType.KONSOLE;
}
var r = ALL.stream()
.filter(externalTerminalType -> !externalTerminalType.equals(CUSTOM))
.filter(terminalType -> terminalType.isAvailable())
@@ -63,7 +63,7 @@
-fx-border-radius: 0;
}
.root:performance .context-menu {
.root:performance .context-menu, .root:performance .combo-box-popup .list-view {
-fx-effect: NONE;
-fx-background-radius: 0;
-fx-border-radius: 0;