/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Load the SystemColors into the defaults table. The keys
* for SystemColor defaults are the same as the names of
* the public fields in SystemColor. If the table is being
* created on a native Motif platform we use the SystemColor
* values, otherwise we create color objects whose values match
*/
String[] defaultSystemColors = {
"desktop", "#005C5C", /* Color of the desktop background */
"activeCaption", "#000080", /* Color for captions (title bars) when they are active. */
"activeCaptionText", "#FFFFFF", /* Text color for text in captions (title bars). */
"activeCaptionBorder", "#B24D7A", /* Border color for caption (title bar) window borders. */
"inactiveCaption", "#AEB2C3", /* Color for captions (title bars) when not active. */
"inactiveCaptionText", "#000000", /* Text color for text in inactive captions (title bars). */
"inactiveCaptionBorder", "#AEB2C3", /* Border color for inactive caption (title bar) window borders. */
"window", "#AEB2C3", /* Default color for the interior of windows */
"windowBorder", "#AEB2C3", /* ??? */
"windowText", "#000000", /* ??? */
"menu", "#AEB2C3", /* ??? */
"menuText", "#000000", /* ??? */
"text", "#FFF7E9", /* Text background color */
"textText", "#000000", /* Text foreground color */
"textHighlight", "#000000", /* Text background color when selected */
"textHighlightText", "#FFF7E9", /* Text color when selected */
"textInactiveText", "#808080", /* Text color when disabled */
"control", "#AEB2C3", /* Default color for controls (buttons, sliders, etc) */
"controlText", "#000000", /* Default color for text in controls */
"controlHighlight", "#DCDEE5", /* Highlight color for controls */
"controlLtHighlight", "#DCDEE5", /* Light highlight color for controls */
"controlShadow", "#63656F", /* Shadow color for controls */
"controlLightShadow", "#9397A5", /* Shadow color for controls */
"controlDkShadow", "#000000", /* Dark shadow color for controls */
"scrollbar", "#AEB2C3", /* Scrollbar ??? color. PENDING(jeff) foreground? background? ?*/
"info", "#FFF7E9", /* ??? */
"infoText", "#000000" /* ??? */
};
}
super.initComponentDefaults(table);
Color trackColor = new Color(MotifColorUtilities.calculateSelectFromBackground(scrollBarBackground.getRed(), scrollBarBackground.getGreen(), scrollBarBackground.getBlue()));
// *** Text
"control BACK_SLASH", "unselect",
"control shift O", "toggle-componentOrientation"
});
"control BACK_SLASH", "unselect",
"control shift O", "toggle-componentOrientation"
});
"shift PAGE_UP", "selection-page-up",
"shift PAGE_DOWN", "selection-page-down",
"ctrl shift PAGE_UP", "selection-page-left",
"ctrl shift PAGE_DOWN", "selection-page-right",
"control BACK_SLASH", "unselect",
"control T", "next-link-action",
"control shift T", "previous-link-action",
"control SPACE", "activate-link-action",
"control shift O", "toggle-componentOrientation"
});
"ScrollBar.background", scrollBarBackground,
"ScrollBar.track", trackColor,
"ScrollBar.trackHighlight", trackColor,
"ScrollBar.thumb", scrollBarBackground,
"ScrollBar.border", loweredBevelBorder,
"ScrollBar.focusInputMap",
"RIGHT", "positiveUnitIncrement",
"KP_RIGHT", "positiveUnitIncrement",
"DOWN", "positiveUnitIncrement",
"KP_DOWN", "positiveUnitIncrement",
"PAGE_DOWN", "positiveBlockIncrement",
"ctrl PAGE_DOWN", "positiveBlockIncrement",
"LEFT", "negativeUnitIncrement",
"KP_LEFT", "negativeUnitIncrement",
"UP", "negativeUnitIncrement",
"KP_UP", "negativeUnitIncrement",
"PAGE_UP", "negativeBlockIncrement",
"ctrl PAGE_UP", "negativeBlockIncrement",
"HOME", "minScroll",
"END", "maxScroll"
}),
"ScrollPane.font", dialogPlain12,
"ScrollPane.background", scrollBarBackground,
"ScrollPane.border", null,
"ScrollPane.viewportBorder", loweredBevelBorder,
"ScrollPane.ancestorInputMap",
"RIGHT", "unitScrollRight",
"KP_RIGHT", "unitScrollRight",
"DOWN", "unitScrollDown",
"KP_DOWN", "unitScrollDown",
"LEFT", "unitScrollLeft",
"KP_LEFT", "unitScrollLeft",
"UP", "unitScrollUp",
"KP_UP", "unitScrollUp",
"PAGE_UP", "scrollUp",
"PAGE_DOWN", "scrollDown",
"ctrl PAGE_UP", "scrollLeft",
"ctrl PAGE_DOWN", "scrollRight",
"ctrl HOME", "scrollHome",
"ctrl END", "scrollEnd"
}),
"FormattedTextField.focusInputMap",
"ctrl BACK_SLASH", "unselect",
"control shift O", "toggle-componentOrientation",
"ESCAPE", "reset-field-edit",
"UP", "increment",
"KP_UP", "increment",
"DOWN", "decrement",
"KP_DOWN", "decrement",
}),
"TextField.caretForeground", black,
"TextField.font", sansSerifPlain12,
"TextField.border", textFieldBorder,
"TextField.focusInputMap", fieldInputMap,
"PasswordField.caretForeground", black,
"PasswordField.font", sansSerifPlain12,
"PasswordField.border", textFieldBorder,
"PasswordField.focusInputMap", passwordInputMap,
"TextArea.caretForeground", black,
"TextArea.font", monospacedPlain12,
"TextArea.border", marginBorder,
"TextArea.focusInputMap", multilineInputMap
};
}
}