From 5e30d243229af0fc4c1a4ef9fca805e2d06478a0 Mon Sep 17 00:00:00 2001 From: Ruan Gustavo Date: Thu, 17 Feb 2022 14:46:34 -0300 Subject: [PATCH] Fix black border due to display theme picker minimum width --- .../src/main/java/gearth/ui/titlebar/TitleBarController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/G-Earth/src/main/java/gearth/ui/titlebar/TitleBarController.java b/G-Earth/src/main/java/gearth/ui/titlebar/TitleBarController.java index aeefe0d..1e4bf0b 100644 --- a/G-Earth/src/main/java/gearth/ui/titlebar/TitleBarController.java +++ b/G-Earth/src/main/java/gearth/ui/titlebar/TitleBarController.java @@ -93,6 +93,10 @@ public class TitleBarController { if (!config.displayMinimizeButton()) { ((GridPane) controller.minimizeBtn.getParent()).getChildren().remove(controller.minimizeBtn); } + + if (!config.displayThemePicker()) { + ((GridPane) controller.themeBtn.getParent()).getChildren().remove(controller.themeBtn); + } }); return controller; }