Windows 7 fixes

This commit is contained in:
crschnick 2023-04-19 03:15:23 +00:00
parent ccb8072625
commit 3029bd54f6
3 changed files with 3 additions and 20 deletions

View file

@ -5,13 +5,10 @@ import io.xpipe.app.issue.TrackEvent;
import io.xpipe.app.prefs.AppPrefs;
import io.xpipe.app.prefs.CloseBehaviourAlert;
import io.xpipe.app.util.ThreadHelper;
import javafx.application.ConditionalFeature;
import javafx.application.Platform;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.geometry.Rectangle2D;
import javafx.scene.Scene;
import javafx.scene.SceneAntialiasing;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.stage.Screen;
@ -220,10 +217,7 @@ public class AppMainWindow {
private void setupContent(Comp<?> content) {
var contentR = content.createRegion();
var aa = Platform.isSupported(ConditionalFeature.SCENE3D)
? SceneAntialiasing.BALANCED
: SceneAntialiasing.DISABLED;
var scene = new Scene(contentR, -1, -1, false, aa);
var scene = new Scene(contentR, -1, -1, false);
stage.setScene(scene);
contentR.requestFocus();
TrackEvent.debug("Set content scene");

View file

@ -1,10 +1,7 @@
package io.xpipe.app.core;
import io.xpipe.app.Main;
import javafx.application.ConditionalFeature;
import javafx.application.Platform;
import javafx.scene.Scene;
import javafx.scene.SceneAntialiasing;
import javafx.scene.image.ImageView;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
@ -20,10 +17,7 @@ public class AppSplashScreen {
stage.initStyle(StageStyle.TRANSPARENT);
var content = new ImageView(Main.class.getResource("resources/img/loading.gif").toString());
var aa = Platform.isSupported(ConditionalFeature.SCENE3D)
? SceneAntialiasing.BALANCED
: SceneAntialiasing.DISABLED;
var scene = new Scene(new Pane(content), -1, -1, false, aa);
var scene = new Scene(new Pane(content), -1, -1, false);
stage.setScene(scene);
stage.show();
}

View file

@ -4,13 +4,11 @@ import io.xpipe.app.comp.base.LoadingOverlayComp;
import io.xpipe.app.fxcomps.Comp;
import io.xpipe.app.issue.TrackEvent;
import io.xpipe.app.util.ThreadHelper;
import javafx.application.ConditionalFeature;
import javafx.application.Platform;
import javafx.beans.value.ObservableValue;
import javafx.geometry.Insets;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.SceneAntialiasing;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.ButtonType;
@ -157,10 +155,7 @@ public class AppWindowHelper {
var content = loading != null ? new LoadingOverlayComp(baseComp, loading) : baseComp;
var contentR = content.createRegion();
AppFont.small(contentR);
var aa = Platform.isSupported(ConditionalFeature.SCENE3D)
? SceneAntialiasing.BALANCED
: SceneAntialiasing.DISABLED;
var scene = new Scene(bindSize ? new Pane(contentR) : contentR, -1, -1, false, aa);
var scene = new Scene(bindSize ? new Pane(contentR) : contentR, -1, -1, false);
stage.setScene(scene);
contentR.requestFocus();
if (bindSize) {