ToolTipManager.sharedInstance().setInitialDelay(500);
PopupFactory.setSharedInstance(new DCPopupFactory());
EmptyBorder emptyBorder = new EmptyBorder(0, 0, 0, 0);
LineBorder borderDarkest3 = new LineBorder(WidgetUtils.BG_COLOR_DARKEST, 3);
UIManager.put("ScrollPane.border", emptyBorder);
UIManager.put("Menu.border", borderDarkest3);
UIManager.put("Menu.background", WidgetUtils.BG_COLOR_DARKEST);
UIManager.put("Menu.foreground", WidgetUtils.BG_COLOR_BRIGHTEST);
UIManager.put("MenuItem.selectionForeground", WidgetUtils.BG_COLOR_BRIGHTEST);
UIManager.put("MenuItem.selectionBackground", WidgetUtils.BG_COLOR_LESS_DARK);
UIManager.put("List.selectionForeground", WidgetUtils.BG_COLOR_BRIGHTEST);
UIManager.put("List.selectionBackground", WidgetUtils.BG_COLOR_LESS_DARK);
UIManager.put("List.focusCellHighlightBorder", WidgetUtils.BORDER_THIN);
UIManager.put("Tree.selectionForeground", WidgetUtils.BG_COLOR_BRIGHTEST);
UIManager.put("Tree.selectionBackground", WidgetUtils.BG_COLOR_LESS_DARK);
UIManager.put("Tree.selectionBorderColor", WidgetUtils.BG_COLOR_MEDIUM);
UIManager.put("Table.selectionForeground", WidgetUtils.BG_COLOR_BRIGHTEST);
UIManager.put("Table.selectionBackground", WidgetUtils.BG_COLOR_LESS_DARK);
UIManager.put("Table.focusCellHighlightBorder", WidgetUtils.BORDER_THIN);
// splitpane "flattening" (remove bevel like borders in divider)
UIManager.put("SplitPane.border", new EmptyBorder(0, 0, 0, 0));
UIManager.put("SplitPaneDivider.border", new EmptyBorder(0, 0, 0, 0));
UIManager.put("PopupMenu.border", emptyBorder);
UIManager.put("PopupMenu.background", WidgetUtils.BG_COLOR_DARKEST);
UIManager.put("PopupMenu.foreground", WidgetUtils.BG_COLOR_BRIGHTEST);
UIManager.put("MenuItem.border", borderDarkest3);
UIManager.put("MenuItem.background", WidgetUtils.BG_COLOR_DARKEST);
UIManager.put("MenuItem.foreground", WidgetUtils.BG_COLOR_BRIGHTEST);
UIManager.put("MenuBar.border", emptyBorder);
UIManager.put("MenuBar.background", WidgetUtils.BG_COLOR_DARKEST);
UIManager.put("MenuBar.foreground", WidgetUtils.BG_COLOR_BRIGHTEST);
// white background for input components
UIManager.put("Tree.background", WidgetUtils.BG_COLOR_BRIGHTEST);
UIManager.put("TextArea.background", WidgetUtils.BG_COLOR_BRIGHTEST);
UIManager.put("PasswordField.background", WidgetUtils.BG_COLOR_BRIGHTEST);
UIManager.put("FormattedTextField.background", WidgetUtils.BG_COLOR_BRIGHTEST);
UIManager.put("EditorPane.background", WidgetUtils.BG_COLOR_BRIGHTEST);
UIManager.put("ComboBox.background", WidgetUtils.BG_COLOR_BRIGHTEST);
UIManager.put("TextField.background", WidgetUtils.BG_COLOR_BRIGHTEST);
UIManager.put("Spinner.background", WidgetUtils.BG_COLOR_BRIGHTEST);
// table header styling
UIManager.put("TableHeader.background", WidgetUtils.BG_COLOR_DARK);
UIManager.put("TableHeader.focusCellBackground", WidgetUtils.BG_COLOR_LESS_DARK);
UIManager.put("TableHeader.foreground", WidgetUtils.BG_COLOR_BRIGHTEST);
UIManager.put("TableHeader.cellBorder", new LineBorder(WidgetUtils.BG_COLOR_LESS_DARK));
// titled borders
UIManager.put("TitledBorder.font", WidgetUtils.FONT_HEADER1);
UIManager.put("TitledBorder.titleColor", WidgetUtils.BG_COLOR_BLUE_BRIGHT);