if (reload || themeChanged)
installPreferredTheme();
}
public static void installPreferredTheme() {
Theme theme = getPreferredTheme();
UI_DEFAULTS.clear();
setProperty(View.class, theme.getViewUI());
setProperty(Titlebar.class, theme.getTitlebarUI());
setProperty(Button.class, theme.getButtonUI());
RootWindow[] windows = RootWindow.getVisibleWindows();
for (int i = 0; i < windows.length; i++)
windows[i].updateComponentTreeUI();
}