public Object createValue(UIDefaults table) {
return Office2003Painter.getInstance().getControlShadow();
}
},
"StatusBarItem.border", new BorderUIResource(BorderFactory.createEmptyBorder(0, 1, 0, 1)),
"StatusBar.border", new StatusBarBorder(),
"DockableFrame.titleBorder", new BorderUIResource(BorderFactory.createEmptyBorder(0, 0, 0, 0)),
"DockableFrameTitlePane.use3dButtons", Boolean.FALSE,
"DockableFrameTitlePane.gripperPainter", gripperPainter,
"DockableFrameTitlePane.margin", new InsetsUIResource(1, 6, 1, 6), // gap
"DockableFrameTitlePane.contentFilledButtons", true,
"DockableFrame.activeTitleForeground", UIDefaultsLookup.getColor("DockableFrame.inactiveTitleForeground"),
"DockableFrame.slidingEastBorder", useShadowBorder ? slidingEastFrameBorder : slidingEastFrameBorder2,
"DockableFrame.slidingWestBorder", useShadowBorder ? slidingWestFrameBorder : slidingWestFrameBorder2,
"DockableFrame.slidingNorthBorder", useShadowBorder ? slidingNorthFrameBorder : slidingNorthFrameBorder2,
"DockableFrame.slidingSouthBorder", useShadowBorder ? slidingSouthFrameBorder : slidingSouthFrameBorder2,
"FrameContainer.contentBorderInsets", new InsetsUIResource(3, 3, 3, 3),
};
table.putDefaults(uiDefaults);
}
if ((products & PRODUCT_ACTION) != 0) {
Object floatingBorder = new ExtWindowsDesktopProperty(new String[]{"win.3d.titleBarColor"},
new Object[]{UIDefaultsLookup.get("controlShadow")}, toolkit, new ConvertListener() {
public Object convert(Object[] obj) {
return new BorderUIResource(BorderFactory.createCompoundBorder(BorderFactory.createLineBorder((Color) obj[0], 2),
BorderFactory.createEmptyBorder(1, 1, 1, 1)));
}
});
WindowsDesktopProperty activeTitleTextColor = new WindowsDesktopProperty("win.frame.captionTextColor", UIDefaultsLookup.get("activeCaptionText"), toolkit);
WindowsDesktopProperty activeTitleBackgroundColor = new WindowsDesktopProperty("win.frame.activeCaptionColor", UIDefaultsLookup.get("activeCaption"), toolkit);
uiDefaults = new Object[]{
// action
"CommandBar.font", toolbarFont,
"CommandBar.background", defaultBackgroundColor,
"CommandBar.foreground", defaultTextColor,
"CommandBar.shadow", defaultShadowColor,
"CommandBar.darkShadow", defaultDarkShadowColor,
"CommandBar.light", defaultLightColor,
"CommandBar.highlight", defaultHighlightColor,
"CommandBar.border", new BorderUIResource(BorderFactory.createEmptyBorder(1, 2, 2, 0)),
"CommandBar.borderVert", new BorderUIResource(BorderFactory.createEmptyBorder(2, 1, 0, 2)),
"CommandBar.borderFloating", new BorderUIResource(BorderFactory.createCompoundBorder(BorderFactory.createLineBorder(UIDefaultsLookup.getColor("activeCaption"), 2),
BorderFactory.createEmptyBorder(1, 1, 1, 1))),
"CommandBar.floatingBorder", floatingBorder,
"CommandBar.separatorSize", 5,
"CommandBar.titleBarSize", 17,
"CommandBar.titleBarButtonGap", 1,
"CommandBar.titleBarBackground", activeTitleBackgroundColor,
"CommandBar.titleBarForeground", SystemInfo.isWindowsVistaAbove() ? new ColorUIResource(Color.WHITE) : activeTitleTextColor,
"CommandBar.titleBarFont", boldFont,
"Chevron.size", 13,
"Chevron.alwaysVisible", Boolean.TRUE,
};
table.putDefaults(uiDefaults);
}
if ((products & PRODUCT_GRIDS) != 0) {
uiDefaults = new Object[]{
"AbstractComboBox.useJButton", Boolean.FALSE,
"NestedTableHeader.cellBorder", new HeaderCellBorder(),
"GroupList.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[]{
"TAB", "selectNextGroup",
"shift TAB", "selectPreviousGroup",
}),
};
table.putDefaults(uiDefaults);
}
if ((products & PRODUCT_COMPONENTS) != 0) {
uiDefaults = new Object[]{
"StatusBarItem.border", new BorderUIResource(BorderFactory.createEmptyBorder(0, 1, 0, 1)),
"StatusBar.border", new StatusBarBorder(),
};
table.putDefaults(uiDefaults);
}
UIDefaultsLookup.put(table, "Theme.painter", Office2003Painter.getInstance());