public void setUpColorArrs() { super.setUpColorArrs(); // Generate the color arrays DEFAULT_COLORS = ColorHelper.createColorArr(controlColorLight, controlColorDark, 20); HIDEFAULT_COLORS = ColorHelper.createColorArr( ColorHelper.brighter(controlColorLight, 90), ColorHelper.brighter(controlColorDark, 30), 20); ACTIVE_COLORS = DEFAULT_COLORS; INACTIVE_COLORS = ColorHelper.createColorArr(Color.white, backgroundColor, 20); ROLLOVER_COLORS = ColorHelper.createColorArr(rolloverColorLight, rolloverColorDark, 20); SELECTED_COLORS = DEFAULT_COLORS; PRESSED_COLORS = ColorHelper.createColorArr(controlColorDark, controlColorLight, 20); DISABLED_COLORS = ColorHelper.createColorArr(Color.white, new Color(230, 230, 230), 20); WINDOW_TITLE_COLORS = ColorHelper.createColorArr(windowTitleColorLight, windowTitleColorDark, 20); WINDOW_INACTIVE_TITLE_COLORS = ColorHelper.createColorArr(windowInactiveTitleColorLight, windowInactiveTitleColorDark, 20); MENUBAR_COLORS = ColorHelper.createColorArr(menuColorLight, menuColorDark, 20); TOOLBAR_COLORS = ColorHelper.createColorArr(toolbarColorLight, toolbarColorDark, 20); BUTTON_COLORS = ColorHelper.createColorArr(buttonColorLight, buttonColorDark, 20); TAB_COLORS = ColorHelper.createColorArr(Color.white, backgroundColor, 20); CHECKBOX_COLORS = TAB_COLORS; COL_HEADER_COLORS = MENUBAR_COLORS; TRACK_COLORS = ColorHelper.createColorArr(backgroundColor, Color.white, 16); THUMB_COLORS = DEFAULT_COLORS; SLIDER_COLORS = DEFAULT_COLORS; PROGRESSBAR_COLORS = DEFAULT_COLORS; }
public static void setTheme(String name, String licenseKey, String logoString) { Properties props = (Properties) themesMap.get(name); if (props != null) { props.put("licenseKey", licenseKey); props.put("logoString", logoString); setTheme(props); if (myTheme != null) { AbstractTheme.setInternalName(name); } } }
public void setUpColor() { super.setUpColor(); // Defaults for SmartLookAndFeel backgroundColor = new ColorUIResource(244, 242, 232); backgroundColorLight = new ColorUIResource(255, 255, 255); backgroundColorDark = new ColorUIResource(236, 233, 215); alterBackgroundColor = new ColorUIResource(236, 233, 215); selectionBackgroundColor = new ColorUIResource(201, 218, 254); selectionBackgroundColorLight = new ColorUIResource(201, 218, 254); selectionBackgroundColorDark = new ColorUIResource(201, 218, 254); frameColor = new ColorUIResource(128, 124, 112); focusCellColor = new ColorUIResource(255, 230, 120); buttonBackgroundColor = new ColorUIResource(218, 230, 254); buttonColorLight = white; buttonColorDark = backgroundColor; rolloverColor = new ColorUIResource(218, 230, 254); rolloverColorLight = new ColorUIResource(236, 242, 255); rolloverColorDark = new ColorUIResource(191, 211, 253); controlForegroundColor = black; controlBackgroundColor = backgroundColor; controlColorLight = new ColorUIResource(218, 230, 254); controlColorDark = new ColorUIResource(180, 197, 240); controlShadowColor = new ColorUIResource(164, 164, 164); controlDarkShadowColor = new ColorUIResource(148, 148, 148); windowTitleBackgroundColor = new ColorUIResource(180, 197, 240); windowTitleColorLight = new ColorUIResource(218, 230, 254); windowTitleColorDark = new ColorUIResource(180, 197, 240); windowBorderColor = new ColorUIResource(128, 129, 132); windowInactiveTitleBackgroundColor = backgroundColor; windowInactiveTitleColorLight = new ColorUIResource(244, 242, 234); windowInactiveTitleColorDark = new ColorUIResource(230, 224, 202); windowInactiveBorderColor = new ColorUIResource(164, 165, 169); menuBackgroundColor = new ColorUIResource(248, 247, 239); menuSelectionForegroundColor = black; menuSelectionBackgroundColor = selectionBackgroundColor; menuColorLight = new ColorUIResource(248, 245, 235); menuColorDark = backgroundColor; toolbarBackgroundColor = backgroundColor; toolbarColorLight = menuColorLight; toolbarColorDark = menuColorDark; tabAreaBackgroundColor = backgroundColor; desktopColor = backgroundColor; }
public static void setTheme(String name) { setTheme((Properties) themesMap.get(name)); if (myTheme != null) { AbstractTheme.setInternalName(name); } }
public void setUpColor() { super.setUpColor(); menuOpaque = false; menuAlpha = 1.0f; showFocusFrame = true; textShadow = true; foregroundColor = black; backgroundColor = new ColorUIResource(242, 232, 220); backgroundColorLight = new ColorUIResource(224, 215, 205); backgroundColorDark = new ColorUIResource(197, 184, 168); alterBackgroundColor = new ColorUIResource(219, 206, 189); disabledForegroundColor = new ColorUIResource(114, 94, 80); disabledBackgroundColor = new ColorUIResource(244, 242, 232); inputBackgroundColor = white; inputForegroundColor = black; selectionForegroundColor = black; selectionBackgroundColor = new ColorUIResource(200, 215, 240); selectionBackgroundColorLight = new ColorUIResource(128, 128, 128); selectionBackgroundColorDark = new ColorUIResource(64, 64, 64); focusColor = orange; focusCellColor = orange; frameColor = new ColorUIResource(172, 162, 145); gridColor = new ColorUIResource(204, 197, 183); rolloverColor = new ColorUIResource(176, 163, 138); rolloverColorLight = new ColorUIResource(226, 222, 214); rolloverColorDark = new ColorUIResource(208, 200, 185); buttonForegroundColor = black; buttonBackgroundColor = extraLightGray; buttonColorLight = new ColorUIResource(247, 244, 239); buttonColorDark = new ColorUIResource(219, 216, 211); controlForegroundColor = black; controlBackgroundColor = new ColorUIResource(240, 230, 217); controlHighlightColor = white; controlShadowColor = new ColorUIResource(172, 162, 145); controlDarkShadowColor = new ColorUIResource(100, 80, 60); controlColorLight = new ColorUIResource(239, 230, 221); controlColorDark = new ColorUIResource(220, 207, 192); windowTitleForegroundColor = white; windowTitleBackgroundColor = new ColorUIResource(200, 215, 240); windowTitleColorLight = new ColorUIResource(96, 96, 96); windowTitleColorDark = new ColorUIResource(48, 48, 48); windowBorderColor = black; windowIconColor = white; windowIconShadowColor = black; windowIconRolloverColor = orange; windowInactiveTitleForegroundColor = white; windowInactiveTitleBackgroundColor = new ColorUIResource(242, 232, 220); windowInactiveTitleColorLight = new ColorUIResource(96, 96, 96); windowInactiveTitleColorDark = new ColorUIResource(48, 48, 48); windowInactiveBorderColor = black; menuForegroundColor = white; menuBackgroundColor = new ColorUIResource(240, 240, 240); menuSelectionForegroundColor = black; menuSelectionBackgroundColor = new ColorUIResource(32, 32, 32); menuSelectionBackgroundColorLight = new ColorUIResource(255, 213, 113); menuSelectionBackgroundColorDark = new ColorUIResource(240, 168, 0); menuColorLight = new ColorUIResource(240, 240, 240); menuColorDark = new ColorUIResource(220, 220, 220); toolbarForegroundColor = white; toolbarBackgroundColor = new ColorUIResource(52, 52, 52); toolbarColorLight = menuColorLight; toolbarColorDark = menuColorDark; tabAreaBackgroundColor = backgroundColor; tabSelectionForegroundColor = white; desktopColor = new ColorUIResource(220, 207, 192); tooltipForegroundColor = black; tooltipBackgroundColor = new ColorUIResource(244, 235, 228); controlFont = new FontUIResource("Dialog", Font.PLAIN, 13); systemFont = new FontUIResource("Dialog", Font.PLAIN, 13); userFont = new FontUIResource("Dialog", Font.PLAIN, 13); smallFont = new FontUIResource("Dialog", Font.PLAIN, 12); menuFont = new FontUIResource("Dialog", Font.PLAIN, 13); windowTitleFont = new FontUIResource("Dialog", Font.BOLD, 13); }
public void setUpColorArrs() { super.setUpColorArrs(); Color topHi = white; Color topLo = buttonColorLight; Color bottomHi = ColorHelper.brighter(buttonColorDark, 40); Color bottomLo = buttonColorDark; Color topColors[] = ColorHelper.createColorArr(topHi, topLo, 11); Color bottomColors[] = ColorHelper.createColorArr(bottomHi, bottomLo, 13); BUTTON_COLORS = new Color[24]; System.arraycopy(topColors, 0, BUTTON_COLORS, 0, 11); System.arraycopy(bottomColors, 0, BUTTON_COLORS, 11, 13); CHECKBOX_COLORS = BUTTON_COLORS; DEFAULT_COLORS = ColorHelper.createColorArr(controlColorLight, controlColorDark, 24); HIDEFAULT_COLORS = new Color[20]; for (int i = 0; i < 20; i++) { HIDEFAULT_COLORS[i] = ColorHelper.brighter(DEFAULT_COLORS[i], 40); } SELECTED_COLORS = ColorHelper.createColorArr(selectionBackgroundColorLight, selectionBackgroundColorDark, 20); SELECTION_COLORS = SELECTED_COLORS; // ColorHelper.createColorArr(selectionBackgroundColorLight, // selectionBackgroundColorDark, 20); MENU_SELECTION_COLORS = ColorHelper.createColorArr( menuSelectionBackgroundColorLight, menuSelectionBackgroundColorDark, 20); topHi = rolloverColorLight; topLo = rolloverColorDark; bottomHi = ColorHelper.darker(rolloverColorDark, 6); bottomLo = ColorHelper.darker(rolloverColorDark, 10); topColors = ColorHelper.createColorArr(topHi, topLo, 11); bottomColors = ColorHelper.createColorArr(bottomHi, bottomLo, 13); ROLLOVER_COLORS = new Color[24]; System.arraycopy(topColors, 0, ROLLOVER_COLORS, 0, 11); System.arraycopy(bottomColors, 0, ROLLOVER_COLORS, 11, 13); PRESSED_COLORS = ColorHelper.createColorArr(buttonColorDark, buttonColorLight, 24); DISABLED_COLORS = ColorHelper.createColorArr(superLightGray, extraLightGray, 24); ACTIVE_COLORS = DEFAULT_COLORS; INACTIVE_COLORS = BUTTON_COLORS; WINDOW_TITLE_COLORS = ColorHelper.createColorArr(windowTitleColorLight, windowTitleColorDark, 24); WINDOW_INACTIVE_TITLE_COLORS = ColorHelper.createColorArr(windowInactiveTitleColorLight, windowInactiveTitleColorDark, 24); TOOLBAR_COLORS = ColorHelper.createColorArr(toolbarColorLight, toolbarColorDark, 24); MENUBAR_COLORS = ColorHelper.createColorArr(menuColorLight, menuColorDark, 24); TAB_COLORS = BUTTON_COLORS; // ColorHelper.createColorArr(controlColorLight, controlColorDark, 24); COL_HEADER_COLORS = BUTTON_COLORS; THUMB_COLORS = ColorHelper.createColorArr(backgroundColorLight, backgroundColorDark, 24); Color hiColor = ColorHelper.brighter(backgroundColor, 30); Color loColor = ColorHelper.brighter(backgroundColor, 10); TRACK_COLORS = ColorHelper.createColorArr(loColor, hiColor, 24); SLIDER_COLORS = THUMB_COLORS; PROGRESSBAR_COLORS = SLIDER_COLORS; }