mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-195558 'Use dark header' setting is saved immediately
After-review: add legacy deprecated method for plugins if any
This commit is contained in:
@@ -101,6 +101,11 @@ public class UIUtil {
|
||||
UIManager.getDefaults().put("javax.swing.JLabel.userStyleSheet", UIUtil.JBHtmlEditorKit.createStyleSheet());
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static void decorateFrame(@NotNull JRootPane pane) {
|
||||
decorateWindowHeader(pane);
|
||||
}
|
||||
|
||||
public static void decorateWindowHeader(@NotNull JRootPane pane) {
|
||||
if (SystemInfo.isMac) {
|
||||
pane.putClientProperty("jetbrains.awt.windowDarkAppearance", Registry.is("ide.mac.allowDarkWindowDecorations") && isUnderDarcula());
|
||||
|
||||
Reference in New Issue
Block a user