From 633f823581b3a70d15c94c2f122ef0eba0d945ff Mon Sep 17 00:00:00 2001 From: HenrikJannsen Date: Sat, 6 Jul 2024 22:39:28 +0700 Subject: [PATCH] Set -fx-font-smoothing-type to grey. Remove system property at linux set to false (issue happens on all OS as far I am aware). Signed-off-by: HenrikJannsen --- common/src/main/java/bisq/common/setup/CommonSetup.java | 2 -- desktop/src/main/java/bisq/desktop/bisq.css | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/bisq/common/setup/CommonSetup.java b/common/src/main/java/bisq/common/setup/CommonSetup.java index d46d933433..25e826ce51 100644 --- a/common/src/main/java/bisq/common/setup/CommonSetup.java +++ b/common/src/main/java/bisq/common/setup/CommonSetup.java @@ -111,8 +111,6 @@ public class CommonSetup { } protected static void setSystemProperties() { - if (Utilities.isLinux()) - System.setProperty("prism.lcdtext", "false"); } protected static void setupSigIntHandlers(GracefulShutDownHandler gracefulShutDownHandler) { diff --git a/desktop/src/main/java/bisq/desktop/bisq.css b/desktop/src/main/java/bisq/desktop/bisq.css index a082485fbc..0b79c4bb66 100644 --- a/desktop/src/main/java/bisq/desktop/bisq.css +++ b/desktop/src/main/java/bisq/desktop/bisq.css @@ -26,6 +26,11 @@ -fx-font-family: "IBM Plex Sans"; } +/* Avoid color artefacts at antialias */ +.text { + -fx-font-smoothing-type: gray; +} + /******************************************************************************************************************** * * * General *