mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
separator color
This commit is contained in:
@@ -437,6 +437,15 @@ public final class LafManagerImpl extends LafManager implements ApplicationCompo
|
||||
updateUI(frame);
|
||||
}
|
||||
fireLookAndFeelChanged();
|
||||
|
||||
fixSeparatorColor(uiDefaults);
|
||||
}
|
||||
|
||||
private static void fixSeparatorColor(UIDefaults uiDefaults) {
|
||||
if (UIUtil.isUnderAquaLookAndFeel()) {
|
||||
uiDefaults.put("Separator.background", UIUtil.SEPARATOR_BACKGROUND_COLOR);
|
||||
uiDefaults.put("Separator.foreground", UIUtil.SEPARATOR_FOREGROUND_COLOR);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -113,6 +113,8 @@ public class UIUtil {
|
||||
private static final Color ACTIVE_HEADER_COLOR = new Color(160, 186, 213);
|
||||
private static final Color INACTIVE_HEADER_COLOR = new Color(128, 128, 128);
|
||||
private static final Color BORDER_COLOR = Color.LIGHT_GRAY;
|
||||
public static final Color SEPARATOR_FOREGROUND_COLOR = new Color(200, 200, 200);
|
||||
public static final Color SEPARATOR_BACKGROUND_COLOR = new Color(250, 250, 250);
|
||||
|
||||
public static final int DEFAULT_HGAP = 10;
|
||||
public static final int DEFAULT_VGAP = 5;
|
||||
|
||||
Reference in New Issue
Block a user