separator color

This commit is contained in:
Evgeny Zakrevsky
2011-09-09 18:15:00 +04:00
parent 7f6291c530
commit 21da71b6f7
2 changed files with 11 additions and 0 deletions
@@ -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;