Browse Source

fix lcd text rendering issue on osx

terminal
Craig Raw 3 years ago
parent
commit
63259a2056
  1. 4
      build.gradle
  2. 3
      src/main/java/com/sparrowwallet/sparrow/AppController.java

4
build.gradle

@ -142,7 +142,7 @@ run {
"--add-opens=java.base/java.io=com.google.gson"]
if(os.macOsX) {
applicationDefaultJvmArgs += ["-Xdock:name=Sparrow", "-Xdock:icon=/Users/scy/git/sparrow/src/main/resources/sparrow-large.png",
applicationDefaultJvmArgs += ["-Dprism.lcdtext=false", "-Xdock:name=Sparrow", "-Xdock:icon=/Users/scy/git/sparrow/src/main/resources/sparrow-large.png",
"--add-opens=javafx.graphics/com.sun.glass.ui.mac=centerdevice.nsmenufx"]
}
}
@ -194,7 +194,7 @@ jlink {
"--add-reads=com.sparrowwallet.merged.module=com.fasterxml.jackson.core"]
if(os.macOsX) {
jvmArgs += "--add-opens=javafx.graphics/com.sun.glass.ui.mac=com.sparrowwallet.merged.module"
jvmArgs += ["-Dprism.lcdtext=false", "--add-opens=javafx.graphics/com.sun.glass.ui.mac=com.sparrowwallet.merged.module"]
}
}
addExtraDependencies("javafx")

3
src/main/java/com/sparrowwallet/sparrow/AppController.java

@ -396,6 +396,9 @@ public class AppController implements Initializable {
controller.setStage(stage);
controller.initializeView();
setStageIcon(stage);
stage.setOnShowing(event -> {
AppServices.moveToActiveWindowScreen(stage, 600, 460);
});
return stage;
} catch(IOException e) {

Loading…
Cancel
Save