/[classpath]/classpath/javax/swing/plaf/metal/MetalLookAndFeel.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/metal/MetalLookAndFeel.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6.2.8 by gnu_andrew, Sat Sep 10 15:31:52 2005 UTC revision 1.6.2.9 by gnu_andrew, Tue Sep 20 18:46:34 2005 UTC
# Line 69  public class MetalLookAndFeel extends Ba Line 69  public class MetalLookAndFeel extends Ba
69     */     */
70    public MetalLookAndFeel()    public MetalLookAndFeel()
71    {    {
72      createDefaultTheme();      if (theme == null)
73          createDefaultTheme();
74    }    }
75    
76    /**    /**
# Line 77  public class MetalLookAndFeel extends Ba Line 78  public class MetalLookAndFeel extends Ba
78     */     */
79    protected void createDefaultTheme()    protected void createDefaultTheme()
80    {    {
81      setCurrentTheme(new DefaultMetalTheme());      setCurrentTheme(new OceanTheme());
82    }    }
83    
84    /**    /**
# Line 759  public class MetalLookAndFeel extends Ba Line 760  public class MetalLookAndFeel extends Ba
760    {    {
761      super.initComponentDefaults(defaults);      super.initComponentDefaults(defaults);
762      Object[] myDefaults = new Object[] {      Object[] myDefaults = new Object[] {
763        "Button.background", new ColorUIResource(getControl()),        "Button.background", getControl(),
764        "Button.border", MetalBorders.getButtonBorder(),        "Button.border", MetalBorders.getButtonBorder(),
765        "Button.darkShadow", new ColorUIResource(getControlDarkShadow()),        "Button.darkShadow", getControlDarkShadow(),
766        "Button.disabledText", new ColorUIResource(getControlDisabled()),        "Button.disabledText", getInactiveControlTextColor(),
767        "Button.focus", new ColorUIResource(getFocusColor()),        "Button.focus", getFocusColor(),
768        "Button.font", getControlTextFont(),        "Button.font", getControlTextFont(),
769        "Button.foreground", new ColorUIResource(getSystemTextColor()),        "Button.foreground", getControlTextColor(),
770        "Button.highlight", new ColorUIResource(getControlHighlight()),        "Button.highlight", getControlHighlight(),
771        "Button.light", new ColorUIResource(getControlHighlight()),        "Button.light", getControlHighlight(),
772        "Button.margin", new Insets(2, 14, 2, 14),        "Button.margin", new Insets(2, 14, 2, 14),
773        "Button.select", new ColorUIResource(getPrimaryControlShadow()),        "Button.select", getControlShadow(),
774        "Button.shadow", new ColorUIResource(getPrimaryControlShadow()),        "Button.shadow", getControlShadow(),
775        "CheckBox.background", new ColorUIResource(getControl()),  
776          "CheckBox.background", getControl(),
777        "CheckBox.border", MetalBorders.getButtonBorder(),        "CheckBox.border", MetalBorders.getButtonBorder(),
778          "CheckBox.disabledText", getInactiveControlTextColor(),
779          "CheckBox.focus", getFocusColor(),
780          "CheckBox.font", new FontUIResource("Dialog", Font.BOLD, 12),
781          "CheckBox.foreground", getControlTextColor(),
782        "CheckBox.icon",        "CheckBox.icon",
783        new UIDefaults.ProxyLazyValue        new UIDefaults.ProxyLazyValue
784            ("javax.swing.plaf.metal.MetalCheckBoxIcon"),            ("javax.swing.plaf.metal.MetalCheckBoxIcon"),
785        "CheckBox.checkIcon",        "CheckBox.checkIcon",
786        new UIDefaults.ProxyLazyValue        new UIDefaults.ProxyLazyValue
787        ("javax.swing.plaf.metal.MetalCheckBoxIcon"),        ("javax.swing.plaf.metal.MetalCheckBoxIcon"),
788        "CheckBoxMenuItem.background", new ColorUIResource(getControl()),        "Checkbox.select", getControlShadow(),
789    
790          "CheckBoxMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 10),
791          "CheckBoxMenuItem.acceleratorForeground", getAcceleratorForeground(),
792          "CheckBoxMenuItem.acceleratorSelectionForeground", getAcceleratorSelectedForeground(),
793          "CheckBoxMenuItem.background", getMenuBackground(),
794          "CheckBoxMenuItem.borderPainted", new Boolean(true),
795          "CheckBoxMenuItem.commandSound", "sounds/MenuItemCommand.wav",
796        "CheckBoxMenuItem.checkIcon", MetalIconFactory.getCheckBoxMenuItemIcon(),        "CheckBoxMenuItem.checkIcon", MetalIconFactory.getCheckBoxMenuItemIcon(),
797        "ToolBar.background", new ColorUIResource(getControl()),        "CheckBoxMenuItem.disabledForeground", getMenuDisabledForeground(),
798        "Panel.background", new ColorUIResource(getControl()),        "CheckBoxMenuItem.font", new FontUIResource("Dialog", Font.BOLD, 12),
799        "Slider.background", new ColorUIResource(getControl()),        "CheckBoxMenuItem.foreground", getMenuForeground(),
800        "OptionPane.background", new ColorUIResource(getControl()),        "CheckBoxMenuItem.selectionBackground", getMenuSelectedBackground(),
801        "ProgressBar.background", new ColorUIResource(getControl()),        "CheckBoxMenuItem.selectionForeground", getMenuSelectedForeground(),
802        "ScrollPane.border", new MetalBorders.ScrollPaneBorder(),  
803        "TabbedPane.background", new ColorUIResource(getControl()),        "ColorChooser.background", getControl(),
804          "ColorChooser.foreground", getControlTextColor(),
805          "ColorChooser.rgbBlueMnemonic", new Integer(0),
806          "ColorChooser.rgbGreenMnemonic", new Integer(0),
807          "ColorChooser.rgbRedMnemonic", new Integer(0),
808          "ColorChooser.swatchesDefaultRecentColor", getControl(),
809    
810          "ComboBox.background", getControl(),
811          "ComboBox.buttonBackground", getControl(),
812          "ComboBox.buttonDarkShadow", getControlDarkShadow(),
813          "ComboBox.buttonHighlight", getControlHighlight(),
814          "ComboBox.buttonShadow", getControlShadow(),
815          "ComboBox.disabledBackground", getControl(),
816          "ComboBox.disabledForeground", getInactiveSystemTextColor(),
817          "ComboBox.font", new FontUIResource("Dialog", Font.BOLD, 12),
818          "ComboBox.foreground", getControlTextColor(),
819          "ComboBox.selectionBackground", getPrimaryControlShadow(),
820          "ComboBox.selectionForeground", getControlTextColor(),
821    
822          "Desktop.background", getDesktopColor(),
823    
824          "DesktopIcon.background", getControl(),
825          "DesktopIcon.foreground", getControlTextColor(),
826          "DesktopIcon.width", new Integer(160),
827          "DesktopIcon.border", MetalBorders.getDesktopIconBorder(),
828    
829          "EditorPane.background", getWindowBackground(),
830          "EditorPane.caretForeground", getUserTextColor(),
831          "EditorPane.font", new FontUIResource("Dialog", Font.PLAIN, 12),
832          "EditorPane.foreground",  getUserTextColor(),
833          "EditorPane.inactiveForeground",  getInactiveSystemTextColor(),
834          "EditorPane.selectionBackground", getTextHighlightColor(),
835          "EditorPane.selectionForeground", getHighlightedTextColor(),
836          
837          "FormattedTextField.background", getWindowBackground(),
838          "FormattedTextField.border",
839          new BorderUIResource(MetalBorders.getTextFieldBorder()),
840          "FormattedTextField.caretForeground", getUserTextColor(),
841          "FormattedTextField.font", new FontUIResource("Dialog", Font.PLAIN, 12),
842          "FormattedTextField.foreground",  getUserTextColor(),
843          "FormattedTextField.inactiveBackground",  getControl(),
844          "FormattedTextField.inactiveForeground",  getInactiveSystemTextColor(),
845          "FormattedTextField.selectionBackground", getTextHighlightColor(),
846          "FormattedTextField.selectionForeground", getHighlightedTextColor(),
847    
848    
849          "InternalFrame.activeTitleBackground", getWindowTitleBackground(),
850          "InternalFrame.activeTitleForeground", getWindowTitleForeground(),
851        "InternalFrame.border", new MetalBorders.InternalFrameBorder(),        "InternalFrame.border", new MetalBorders.InternalFrameBorder(),
852          "InternalFrame.borderColor", getControl(),
853          "InternalFrame.borderDarkShadow", getControlDarkShadow(),
854          "InternalFrame.borderHighlight", getControlHighlight(),
855          "InternalFrame.borderLight", getControlHighlight(),
856          "InternalFrame.borderShadow", getControlShadow(),
857        "InternalFrame.icon", MetalIconFactory.getInternalFrameDefaultMenuIcon(),        "InternalFrame.icon", MetalIconFactory.getInternalFrameDefaultMenuIcon(),
858        "InternalFrame.closeIcon",        "InternalFrame.closeIcon",
859          MetalIconFactory.getInternalFrameCloseIcon(16),          MetalIconFactory.getInternalFrameCloseIcon(16),
860          "InternalFrame.inactiveTitleBackground", getWindowTitleInactiveBackground(),
861          "InternalFrame.inactiveTitleForeground", getWindowTitleInactiveForeground(),
862        "InternalFrame.maximizeIcon",        "InternalFrame.maximizeIcon",
863          MetalIconFactory.getInternalFrameMaximizeIcon(16),          MetalIconFactory.getInternalFrameMaximizeIcon(16),
864        "InternalFrame.iconifyIcon",        "InternalFrame.iconifyIcon",
865          MetalIconFactory.getInternalFrameMinimizeIcon(16),          MetalIconFactory.getInternalFrameMinimizeIcon(16),
866        "Label.background", new ColorUIResource(getControl()),        "InternalFrame.paletteBorder", new MetalBorders.PaletteBorder(),
867          "InternalFrame.paletteCloseIcon", new MetalIconFactory.PaletteCloseIcon(),
868          "InternalFrame.paletteTitleHeight", new Integer(11),
869    
870          "Label.background", getControl(),
871          "Label.disabledForeground", getInactiveSystemTextColor(),
872          "Label.disabledShadow", getControlShadow(),
873        "Label.font", getControlTextFont(),        "Label.font", getControlTextFont(),
874        "Label.disabledForeground", new ColorUIResource(getInactiveControlTextColor()),        "Label.foreground", getSystemTextColor(),
875        "Label.foreground", new ColorUIResource(getControlTextColor()),  
876        "Menu.background", new ColorUIResource(getControl()),        "List.background", getWindowBackground(),
877          "List.foreground", getUserTextColor(),
878          "List.selectionBackground", getTextHighlightColor(),
879          "List.selectionForeground", getHighlightedTextColor(),
880    
881          "Menu.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 10),
882          "Menu.acceleratorForeground", getAcceleratorForeground(),
883          "Menu.acceleratorSelectionForeground", getAcceleratorSelectedForeground(),
884          "Menu.background", getMenuBackground(),
885        "Menu.border", new MetalBorders.MenuItemBorder(),        "Menu.border", new MetalBorders.MenuItemBorder(),
886        "Menu.borderPainted", Boolean.TRUE,        "Menu.borderPainted", Boolean.TRUE,
887          "Menu.disabledForeground", getMenuDisabledForeground(),
888        "Menu.font", getControlTextFont(),        "Menu.font", getControlTextFont(),
889          "Menu.foreground", getMenuForeground(),
890        "Menu.selectionBackground", getMenuSelectedBackground(),        "Menu.selectionBackground", getMenuSelectedBackground(),
891        "Menu.selectionForeground", getMenuSelectedForeground(),        "Menu.selectionForeground", getMenuSelectedForeground(),
892        "MenuBar.background", new ColorUIResource(getControl()),  
893          "MenuBar.background", getMenuBackground(),
894        "MenuBar.border", new MetalBorders.MenuBarBorder(),        "MenuBar.border", new MetalBorders.MenuBarBorder(),
895        "MenuBar.font", getControlTextFont(),        "MenuBar.font", getControlTextFont(),
896        "MenuItem.background", new ColorUIResource(getControl()),        "MenuBar.foreground", getMenuForeground(),
897          "MenuBar.highlight", getControlHighlight(),
898          "MenuBar.shadow", getControlShadow(),
899    
900          "MenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 10),
901          "MenuItem.acceleratorForeground", getAcceleratorForeground(),
902          "MenuItem.acceleratorSelectionForeground", getAcceleratorSelectedForeground(),
903          "MenuItem.background", getMenuBackground(),
904        "MenuItem.border", new MetalBorders.MenuItemBorder(),        "MenuItem.border", new MetalBorders.MenuItemBorder(),
905          "MenuItem.disabledForeground", getMenuDisabledForeground(),
906        "MenuItem.font", getControlTextFont(),        "MenuItem.font", getControlTextFont(),
907          "MenuItem.foreground", getMenuForeground(),
908        "MenuItem.selectionBackground", getMenuSelectedBackground(),        "MenuItem.selectionBackground", getMenuSelectedBackground(),
909        "MenuItem.selectionForeground", getMenuSelectedForeground(),        "MenuItem.selectionForeground", getMenuSelectedForeground(),
910        "Panel.background", new ColorUIResource(getControl()),  
911        "RadioButton.disabledText",        "OptionPane.background", getControl(),
912        MetalLookAndFeel.getInactiveControlTextColor(),        "OptionPane.errorDialog.border.background", new ColorUIResource(153, 51, 51),
913          "OptionPane.errorDialog.titlePane.background", new ColorUIResource(255, 153, 153),
914          "OptionPane.errorDialog.titlePane.foreground", new ColorUIResource(51, 0, 0),
915          "OptionPane.errorDialog.titlePane.shadow", new ColorUIResource(204, 102, 102),
916          "OptionPane.foreground", getControlTextColor(),
917          "OptionPane.messageForeground", getControlTextColor(),
918          "OptionPane.questionDialog.border.background", new ColorUIResource(51, 102, 51),
919          "OptionPane.questionDialog.titlePane.background", new ColorUIResource(153, 204, 153),
920          "OptionPane.questionDialog.titlePane.foreground", new ColorUIResource(0, 51, 0),
921          "OptionPane.questionDialog.titlePane.shadow", new ColorUIResource(102, 153, 102),
922          "OptionPane.warningDialog.border.background", new ColorUIResource(153, 102, 51),
923          "OptionPane.warningDialog.titlePane.background", new ColorUIResource(255, 204, 153),
924          "OptionPane.warningDialog.titlePane.foreground", new ColorUIResource(102, 51, 0),
925          "OptionPane.warningDialog.titlePane.shadow", new ColorUIResource(204, 153, 102),
926    
927          "Panel.background", getControl(),
928          "Panel.foreground", getUserTextColor(),
929    
930          "PasswordField.background", getWindowBackground(),
931          "PasswordField.border",
932          new BorderUIResource(MetalBorders.getTextFieldBorder()),
933          "PasswordField.caretForeground", getUserTextColor(),
934          "PasswordField.foreground", getUserTextColor(),
935          "PasswordField.inactiveBackground", getControl(),
936          "PasswordField.inactiveForeground", getInactiveSystemTextColor(),
937          "PasswordField.selectionBackground", getTextHighlightColor(),
938          "PasswordField.selectionForeground", getHighlightedTextColor(),
939    
940          "PopupMenu.background", getMenuBackground(),
941          "PopupMenu.border", new MetalBorders.PopupMenuBorder(),
942          "PopupMenu.font", new FontUIResource("Dialog", Font.BOLD, 12),
943          "PopupMenu.foreground", getMenuForeground(),
944    
945          "ProgressBar.background", getControl(),
946          "ProgressBar.border", new BorderUIResource.LineBorderUIResource(getControlDarkShadow(), 1),
947          "ProgressBar.font", new FontUIResource("Dialog", Font.BOLD, 12),
948          "ProgressBar.foreground", getPrimaryControlShadow(),
949          "ProgressBar.selectionBackground", getPrimaryControlDarkShadow(),
950          "ProgressBar.selectionForeground", getControl(),
951    
952          "RadioButton.background", getControl(),
953          "RadioButton.darkShadow", getControlDarkShadow(),
954          "RadioButton.disabledText", getInactiveControlTextColor(),
955        "RadioButton.icon",        "RadioButton.icon",
956        new UIDefaults.LazyValue()        new UIDefaults.LazyValue()
957        {        {
# Line 827  public class MetalLookAndFeel extends Ba Line 962  public class MetalLookAndFeel extends Ba
962        },        },
963        "RadioButton.focus", MetalLookAndFeel.getFocusColor(),        "RadioButton.focus", MetalLookAndFeel.getFocusColor(),
964        "RadioButton.font", MetalLookAndFeel.getControlTextFont(),        "RadioButton.font", MetalLookAndFeel.getControlTextFont(),
965        "RadioButton.select", MetalLookAndFeel.getControlShadow(),        "RadioButton.foreground", getControlTextColor(),
966          "RadioButton.highlight", getControlHighlight(),
967          "RadioButton.light", getControlHighlight(),
968          "RadioButton.select", getControlShadow(),
969          "RadioButton.shadow", getControlShadow(),
970    
971          "RadioButtonMenuItem.acceleratorFont", new Font("Dialog", Font.PLAIN, 10),
972          "RadioButtonMenuItem.acceleratorForeground", getAcceleratorForeground(),
973          "RadioButtonMenuItem.acceleratorSelectionForeground", getAcceleratorSelectedForeground(),
974          "RadioButtonMenuItem.background", getMenuBackground(),
975        "RadioButtonMenuItem.border", new MetalBorders.MenuItemBorder(),        "RadioButtonMenuItem.border", new MetalBorders.MenuItemBorder(),
976        "RadioButtonMenuItem.borderPainted", Boolean.TRUE,        "RadioButtonMenuItem.borderPainted", Boolean.TRUE,
977        "RadioButtonMenuItem.checkIcon",        "RadioButtonMenuItem.checkIcon",
978          MetalIconFactory.getRadioButtonMenuItemIcon(),          MetalIconFactory.getRadioButtonMenuItemIcon(),
979          "RadioButtonMenuItem.disabledForeground", getMenuDisabledForeground(),
980        "RadioButtonMenuItem.font", MetalLookAndFeel.getControlTextFont(),        "RadioButtonMenuItem.font", MetalLookAndFeel.getControlTextFont(),
981          "RadioButtonMenuItem.foreground", getMenuForeground(),
982        "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2),        "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2),
983        "RadioButtonMenuItem.selectionBackground",        "RadioButtonMenuItem.selectionBackground",
984          MetalLookAndFeel.getMenuSelectedBackground(),          MetalLookAndFeel.getMenuSelectedBackground(),
985        "RadioButtonMenuItem.selectionForeground",        "RadioButtonMenuItem.selectionForeground",
986          MetalLookAndFeel.getMenuSelectedForeground(),          MetalLookAndFeel.getMenuSelectedForeground(),
987    
988        "ScrollBar.background", new ColorUIResource(getControl()),        "ScrollBar.background", getControl(),
989        "ScrollBar.shadow", new ColorUIResource(getControlShadow()),        "ScrollBar.darkShadow", getControlDarkShadow(),
990        "ScrollBar.thumb", new ColorUIResource(getPrimaryControlShadow()),        "ScrollBar.foreground", getControl(),
991        "ScrollBar.thumbDarkShadow",        "ScrollBar.highlight", getControlHighlight(),
992        new ColorUIResource(getPrimaryControlDarkShadow()),        "ScrollBar.shadow", getControlShadow(),
993        "ScrollBar.thumbHighlight",        "ScrollBar.thumb", getPrimaryControlShadow(),
994        new ColorUIResource(getPrimaryControl()),        "ScrollBar.thumbDarkShadow", getControlDarkShadow(),
995          "ScrollBar.thumbHighlight", getPrimaryControl(),
996        "SplitPane.darkShadow",        "ScrollBar.thumbShadow", getPrimaryControlDarkShadow(),
997        new ColorUIResource(getControlDarkShadow()),        "ScrollBar.track", getControl(),
998        "SplitPane.highlight",        "ScrollBar.trackHighlight", getControlDarkShadow(),
999        new ColorUIResource(getControlHighlight()),  
1000          "ScrollPane.background", getControl(),
1001          "ScrollPane.border", new MetalBorders.ScrollPaneBorder(),
1002          "ScrollPane.foreground", getControlTextColor(),
1003    
1004          "Separator.background", getSeparatorBackground(),
1005          "Separator.foreground", getSeparatorForeground(),
1006          "Separator.highlight", getControlHighlight(),
1007          "Separator.shadow", getControlShadow(),
1008    
1009          "Slider.background", getControl(),
1010          "Slider.focus", getFocusColor(),
1011        "Slider.focusInsets", new InsetsUIResource(0, 0, 0, 0),        "Slider.focusInsets", new InsetsUIResource(0, 0, 0, 0),
1012          "Slider.foreground", getPrimaryControlShadow(),
1013          "Slider.highlight", getControlHighlight(),
1014        "Slider.horizontalThumbIcon",        "Slider.horizontalThumbIcon",
1015        MetalIconFactory.getHorizontalSliderThumbIcon(),        MetalIconFactory.getHorizontalSliderThumbIcon(),
1016          "Slider.majorTickLength", new Integer(6),
1017          "Slider.shadow", getControlShadow(),
1018          "Slider.trackWidth", new Integer(7),
1019        "Slider.verticalThumbIcon",        "Slider.verticalThumbIcon",
1020        MetalIconFactory.getVerticalSliderThumbIcon(),        MetalIconFactory.getVerticalSliderThumbIcon(),
1021        "Slider.trackWidth", new Integer(7),  
1022        "Slider.majorTickLength", new Integer(6),        "Spinner.background", getControl(),
1023                "Spinner.font", new FontUIResource("Dialog", Font.BOLD, 12),
1024          "Spinner.foreground", getControl(),
1025    
1026          "SplitPane.background", getControl(),
1027          "SplitPane.darkShadow", getControlDarkShadow(),
1028          "SplitPane.dividerFocusColor", getPrimaryControl(),
1029          "SplitPane.highlight", getControlHighlight(),
1030          "SplitPane.shadow", getControlShadow(),
1031    
1032          "SplitPaneDivider.draggingColor", Color.DARK_GRAY,
1033    
1034          "TabbedPane.background", getControlShadow(),
1035          "TabbedPane.darkShadow", getControlDarkShadow(),
1036          "TabbedPane.focus", getPrimaryControlDarkShadow(),
1037        "TabbedPane.font", new FontUIResource("Dialog", Font.BOLD, 12),        "TabbedPane.font", new FontUIResource("Dialog", Font.BOLD, 12),
1038        "TabbedPane.tabInsets", new InsetsUIResource(0, 9, 1, 9),        "TabbedPane.foreground", getControlTextColor(),
1039          "TabbedPane.highlight", getControlHighlight(),
1040          "TabbedPane.light", getControl(),
1041          "TabbedPane.selected", getControl(),
1042          "TabbedPane.selectHighlight", getControlHighlight(),
1043        "TabbedPane.selectedTabPadInsets", new InsetsUIResource(2, 2, 2, 1),        "TabbedPane.selectedTabPadInsets", new InsetsUIResource(2, 2, 2, 1),
1044          "TabbedPane.shadow", getControlShadow(),
1045          "TabbedPane.tabAreaBackground", getControl(),
1046        "TabbedPane.tabAreaInsets", new InsetsUIResource(4, 2, 0, 6),        "TabbedPane.tabAreaInsets", new InsetsUIResource(4, 2, 0, 6),
1047          "TabbedPane.tabInsets", new InsetsUIResource(0, 9, 1, 9),
1048    
1049        "ToggleButton.background", new ColorUIResource(getControl()),        "Table.background", getWindowBackground(),
1050        "ToggleButton.border", MetalBorders.getButtonBorder(),        "Table.focusCellBackground", getWindowBackground(),
1051        "ToggleButton.darkShadow", new ColorUIResource(getControlDarkShadow()),        "Table.focusCellForeground", getControlTextColor(),
1052        "ToggleButton.disabledText", new ColorUIResource(getControlDisabled()),        "Table.foreground", getControlTextColor(),
1053        "ToggleButton.focus", new ColorUIResource(getFocusColor()),        "Table.focusCellHighlightBorder", getControlShadow(),
1054          "Table.focusCellBackground", getWindowBackground(),
1055          "Table.gridColor", getControlDarkShadow(),
1056    
1057          "TableHeader.background", getControl(),
1058          "TableHeader.cellBorder", new MetalBorders.TableHeaderBorder(),
1059          "TableHeader.foreground", getControlTextColor(),
1060    
1061          "TextArea.background", getWindowBackground(),
1062          "TextArea.caretForeground", getUserTextColor(),
1063          "TextArea.font", new FontUIResource("Dialog", Font.PLAIN, 12),
1064          "TextArea.foreground", getUserTextColor(),
1065          "TextArea.inactiveForeground", getInactiveSystemTextColor(),
1066          "TextArea.selectionBackground", getTextHighlightColor(),
1067          "TextArea.selectionForeground", getHighlightedTextColor(),
1068    
1069          "TextField.background", getWindowBackground(),
1070          "TextField.border",
1071          new BorderUIResource(MetalBorders.getTextFieldBorder()),
1072          "TextField.caretForeground", getUserTextColor(),
1073          "TextField.darkShadow", getControlDarkShadow(),
1074          "TextField.font", new FontUIResource("Dialog", Font.PLAIN, 12),
1075          "TextField.foreground", getUserTextColor(),
1076          "TextField.highlight", getControlHighlight(),
1077          "TextField.inactiveBackground", getControl(),
1078          "TextField.inactiveForeground", getInactiveSystemTextColor(),
1079          "TextField.light", getControlHighlight(),
1080          "TextField.selectionBackground", getTextHighlightColor(),
1081          "TextField.selectionForeground", getHighlightedTextColor(),
1082          "TextField.shadow", getControlShadow(),
1083        
1084          "TextPane.background", getWindowBackground(),
1085          "TextPane.caretForeground", getUserTextColor(),
1086          "TextPane.font", new FontUIResource("Dialog", Font.PLAIN, 12),
1087          "TextPane.foreground", getUserTextColor(),
1088          "TextPane.inactiveForeground", getInactiveSystemTextColor(),
1089          "TextPane.selectionBackground", getTextHighlightColor(),
1090          "TextPane.selectionForeground", getHighlightedTextColor(),
1091    
1092          "TitledBorder.font", new FontUIResource("Dialog", Font.BOLD, 12),
1093          "TitledBorder.titleColor", getSystemTextColor(),
1094    
1095          "ToggleButton.background", getControl(),
1096          "ToggleButton.border", MetalBorders.getToggleButtonBorder(),
1097          "ToggleButton.darkShadow", getControlDarkShadow(),
1098          "ToggleButton.disabledText", getInactiveControlTextColor(),
1099          "ToggleButton.focus", getFocusColor(),
1100        "ToggleButton.font", getControlTextFont(),        "ToggleButton.font", getControlTextFont(),
1101        "ToggleButton.foreground", new ColorUIResource(getSystemTextColor()),        "ToggleButton.foreground", getControlTextColor(),
1102        "ToggleButton.highlight", new ColorUIResource(getControlHighlight()),        "ToggleButton.highlight", getControlHighlight(),
1103        "ToggleButton.light", new ColorUIResource(getControlHighlight()),        "ToggleButton.light", getControlHighlight(),
1104        "ToggleButton.margin", new Insets(2, 14, 2, 14),        "ToggleButton.margin", new InsetsUIResource(2, 14, 2, 14),
1105        "ToggleButton.select", new ColorUIResource(getPrimaryControlShadow()),        "ToggleButton.select", getControlShadow(),
1106        "ToggleButton.shadow", new ColorUIResource(getPrimaryControlShadow()),        "ToggleButton.shadow", getControlShadow(),
1107    
1108          "ToolBar.background", getMenuBackground(),
1109          "ToolBar.darkShadow", getControlDarkShadow(),
1110          "ToolBar.dockingBackground", getMenuBackground(),
1111          "ToolBar.dockingForeground", getPrimaryControlDarkShadow(),
1112          "ToolBar.floatingBackground", getMenuBackground(),
1113          "ToolBar.floatingForeground", getPrimaryControl(),
1114          "ToolBar.font", new FontUIResource("Dialog", Font.BOLD, 12),
1115          "ToolBar.foreground", getMenuForeground(),
1116          "ToolBar.highlight", getControlHighlight(),
1117          "ToolBar.light", getControlHighlight(),
1118          "ToolBar.shadow", getControlShadow(),
1119    
1120          "ToolTip.background", getPrimaryControl(),
1121          "ToolTip.backgroundInactive", getControl(),
1122          "ToolTip.border", new BorderUIResource.LineBorderUIResource(getPrimaryControlDarkShadow(), 1),
1123          "ToolTip.borderInactive", new BorderUIResource.LineBorderUIResource(getControlDarkShadow(), 1),
1124          "ToolTip.font", new FontUIResource("Dialog", Font.PLAIN, 12),
1125          "ToolTip.foreground", getPrimaryControlInfo(),
1126          "ToolTip.foregroundInactive", getControlDarkShadow(),
1127    
1128        "Tree.openIcon", MetalIconFactory.getTreeFolderIcon(),        "Tree.background", getWindowBackground(),
1129        "Tree.closedIcon", MetalIconFactory.getTreeFolderIcon(),        "Tree.closedIcon", MetalIconFactory.getTreeFolderIcon(),
       "Tree.leafIcon", MetalIconFactory.getTreeLeafIcon(),  
1130        "Tree.collapsedIcon", MetalIconFactory.getTreeControlIcon(true),        "Tree.collapsedIcon", MetalIconFactory.getTreeControlIcon(true),
1131        "Tree.expandedIcon", MetalIconFactory.getTreeControlIcon(false),        "Tree.expandedIcon", MetalIconFactory.getTreeControlIcon(false),
1132        "Tree.font", new FontUIResource(new Font("Helvetica", Font.PLAIN, 12)),        "Tree.font", new FontUIResource("Dialog", Font.PLAIN, 12),
1133        "Tree.background", new ColorUIResource(Color.white),        "Tree.foreground", getUserTextColor(),
1134        "Tree.foreground", new ColorUIResource(new Color(204, 204, 255)),        "Tree.hash", getPrimaryControl(),
1135        "Tree.hash", new ColorUIResource(new Color(204, 204, 255)),        "Tree.leafIcon", MetalIconFactory.getTreeLeafIcon(),
1136        "Tree.leftChildIndent", new Integer(7),        "Tree.leftChildIndent", new Integer(7),
1137          "Tree.line", getPrimaryControl(),
1138          "Tree.openIcon", MetalIconFactory.getTreeFolderIcon(),
1139        "Tree.rightChildIndent", new Integer(13),        "Tree.rightChildIndent", new Integer(13),
1140        "Tree.rowHeight", new Integer(20),        "Tree.rowHeight", new Integer(20),
1141        "Tree.scrollsOnExpand", Boolean.TRUE,        "Tree.scrollsOnExpand", Boolean.TRUE,
1142        "Tree.selectionBackground", new ColorUIResource(new Color(204, 204, 255)),        "Tree.selectionBackground", getTextHighlightColor(),
       "Tree.nonSelectionBackground", new ColorUIResource(Color.white),  
       "Tree.selectionBorderColor", new ColorUIResource(new Color(102, 102, 153)),  
1143        "Tree.selectionBorder", new BorderUIResource.LineBorderUIResource(new Color(102, 102, 153)),        "Tree.selectionBorder", new BorderUIResource.LineBorderUIResource(new Color(102, 102, 153)),
1144        "Tree.nonSelectionBorder", new BorderUIResource.LineBorderUIResource(Color.white),        "Tree.selectionBorderColor", getFocusColor(),
1145        "Tree.selectionForeground", new ColorUIResource(Color.black),        "Tree.selectionForeground", getHighlightedTextColor(),
1146        "Tree.textBackground", new ColorUIResource(new Color(204, 204, 255)),        "Tree.textBackground", getWindowBackground(),
1147        "Tree.textForeground", new ColorUIResource(Color.black),        "Tree.textForeground", getUserTextColor(),
1148        "Tree.selectionForeground", new ColorUIResource(Color.black),  
1149        "PopupMenu.border", new MetalBorders.PopupMenuBorder()        "Viewport.background", getControl(),
1150          "Viewport.foreground", getUserTextColor()
1151      };      };
1152      defaults.putDefaults(myDefaults);      defaults.putDefaults(myDefaults);
1153    }    }

Legend:
Removed from v.1.6.2.8  
changed lines
  Added in v.1.6.2.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26