From 2d7514ccf660730aafdc45737f6965a09dcc20e7 Mon Sep 17 00:00:00 2001 From: "Christian F." Date: Wed, 20 Sep 2023 23:42:19 +0200 Subject: [PATCH] - update progress components on LaF change --- src/main/java/mediathek/mainwindow/MediathekGui.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/mediathek/mainwindow/MediathekGui.java b/src/main/java/mediathek/mainwindow/MediathekGui.java index 9c99d9ecf2..471762ec1d 100644 --- a/src/main/java/mediathek/mainwindow/MediathekGui.java +++ b/src/main/java/mediathek/mainwindow/MediathekGui.java @@ -149,6 +149,12 @@ public MediathekGui() { setupScrollBarWidth(); UIManager.put("TabbedPane.showTabSeparators", true); + UIManager.addPropertyChangeListener(evt -> { + if (evt.getPropertyName().equalsIgnoreCase("lookAndFeel")) { + SwingUtilities.updateComponentTreeUI(progressLabel); + SwingUtilities.updateComponentTreeUI(progressBar); + } + }); setupAlternatingRowColors();