mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +00:00
Small fixes
This commit is contained in:
parent
cb10d27c0d
commit
b5fe5589d3
3 changed files with 14 additions and 5 deletions
|
@ -131,7 +131,7 @@ public class AppLayoutModel {
|
||||||
var zone = ZoneId.of(ZoneId.SHORT_IDS.get("PST"));
|
var zone = ZoneId.of(ZoneId.SHORT_IDS.get("PST"));
|
||||||
var phStart = ZonedDateTime.of(2024, 10, 22, 0, 1, 0, 0, zone).toInstant();
|
var phStart = ZonedDateTime.of(2024, 10, 22, 0, 1, 0, 0, zone).toInstant();
|
||||||
var clicked = AppCache.get("phClicked",Boolean.class,() -> false);
|
var clicked = AppCache.get("phClicked",Boolean.class,() -> false);
|
||||||
var phShow = now.isAfter(phStart) && clicked;
|
var phShow = now.isAfter(phStart) && !clicked;
|
||||||
if (phShow) {
|
if (phShow) {
|
||||||
l.add(new Entry(
|
l.add(new Entry(
|
||||||
new SimpleStringProperty("Product Hunt"),
|
new SimpleStringProperty("Product Hunt"),
|
||||||
|
|
|
@ -102,7 +102,7 @@ public class DesktopHelper {
|
||||||
try {
|
try {
|
||||||
Desktop.getDesktop().open(file.toFile());
|
Desktop.getDesktop().open(file.toFile());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
ErrorEvent.fromThrowable(e).omit().handle();
|
ErrorEvent.fromThrowable(e).expected().handle();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -110,6 +110,7 @@ public class DesktopHelper {
|
||||||
public static void browseFileInDirectory(Path file) {
|
public static void browseFileInDirectory(Path file) {
|
||||||
if (!Desktop.getDesktop().isSupported(Desktop.Action.BROWSE_FILE_DIR)) {
|
if (!Desktop.getDesktop().isSupported(Desktop.Action.BROWSE_FILE_DIR)) {
|
||||||
if (!Desktop.getDesktop().isSupported(Desktop.Action.OPEN)) {
|
if (!Desktop.getDesktop().isSupported(Desktop.Action.OPEN)) {
|
||||||
|
ErrorEvent.fromMessage("Desktop integration unable to open file " + file).expected().handle();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,7 +118,7 @@ public class DesktopHelper {
|
||||||
try {
|
try {
|
||||||
Desktop.getDesktop().open(file.getParent().toFile());
|
Desktop.getDesktop().open(file.getParent().toFile());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
ErrorEvent.fromThrowable(e).omit().handle();
|
ErrorEvent.fromThrowable(e).expected().handle();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
@ -127,7 +128,7 @@ public class DesktopHelper {
|
||||||
try {
|
try {
|
||||||
Desktop.getDesktop().browseFileDirectory(file.toFile());
|
Desktop.getDesktop().browseFileDirectory(file.toFile());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
ErrorEvent.fromThrowable(e).omit().handle();
|
ErrorEvent.fromThrowable(e).expected().handle();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,10 +97,18 @@
|
||||||
-fx-padding: 0.7em 1px 1em 1em;
|
-fx-padding: 0.7em 1px 1em 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
.root:windows .text {
|
||||||
-fx-font-smoothing-type: gray;
|
-fx-font-smoothing-type: gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.root:linux .text {
|
||||||
|
-fx-font-smoothing-type: lcd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.root:macos .text {
|
||||||
|
-fx-font-smoothing-type: lcd;
|
||||||
|
}
|
||||||
|
|
||||||
.radio-button {
|
.radio-button {
|
||||||
-fx-background-color: transparent;
|
-fx-background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue