/[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.52 by rabbit78, Thu Sep 8 21:29:48 2005 UTC revision 1.53 by rabbit78, Fri Sep 9 13:32:39 2005 UTC
# Line 760  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(getControlTextColor()),        "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(getControlShadow()),        "Button.select", getControlShadow(),
774        "Button.shadow", new ColorUIResource(getControlShadow()),        "Button.shadow", getControlShadow(),
775    
776        "CheckBox.background", new ColorUIResource(getControl()),        "CheckBox.background", getControl(),
777        "CheckBox.border", MetalBorders.getButtonBorder(),        "CheckBox.border", MetalBorders.getButtonBorder(),
778        "CheckBox.disabledText", getControlDisabled(),        "CheckBox.disabledText", getInactiveControlTextColor(),
779        "CheckBox.focus", getFocusColor(),        "CheckBox.focus", getFocusColor(),
780        "CheckBox.font", new FontUIResource("Dialog", Font.BOLD, 12),        "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"),
# Line 801  public class MetalLookAndFeel extends Ba Line 802  public class MetalLookAndFeel extends Ba
802    
803        "ColorChooser.background", getControl(),        "ColorChooser.background", getControl(),
804        "ColorChooser.foreground", getControlTextColor(),        "ColorChooser.foreground", getControlTextColor(),
805        "ColorChooser.swatchesDefaultRecentColor", getControlHighlight(),        "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(),        "ComboBox.background", getControl(),
811        "ComboBox.buttonBackground", getControl(),        "ComboBox.buttonBackground", getControl(),
# Line 819  public class MetalLookAndFeel extends Ba Line 823  public class MetalLookAndFeel extends Ba
823    
824        "DesktopIcon.background", getControl(),        "DesktopIcon.background", getControl(),
825        "DesktopIcon.foreground", getControlTextColor(),        "DesktopIcon.foreground", getControlTextColor(),
826          "DesktopIcon.width", new Integer(160),
827    
828        "EditorPane.background", getWindowBackground(),        "EditorPane.background", getWindowBackground(),
829        "EditorPane.caretForeground", getUserTextColor(),        "EditorPane.caretForeground", getUserTextColor(),
# Line 862  public class MetalLookAndFeel extends Ba Line 867  public class MetalLookAndFeel extends Ba
867        "Label.font", getControlTextFont(),        "Label.font", getControlTextFont(),
868        "Label.foreground", getSystemTextColor(),        "Label.foreground", getSystemTextColor(),
869    
870        "ToolBar.background", getControl(),        "List.background", getWindowBackground(),
871          "List.foreground", getUserTextColor(),
872        "Panel.background", new ColorUIResource(getControl()),        "List.selectionBackground", getTextHighlightColor(),
873        "Slider.background", new ColorUIResource(getControl()),        "List.selectionForeground", getHighlightedTextColor(),
874        "OptionPane.background", new ColorUIResource(getControl()),  
875        "ProgressBar.background", new ColorUIResource(getControl()),        "Menu.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 10),
876        "ScrollPane.border", new MetalBorders.ScrollPaneBorder(),        "Menu.acceleratorForeground", getAcceleratorForeground(),
877        "TabbedPane.background", new ColorUIResource(getControl()),        "Menu.acceleratorSelectionForeground", getAcceleratorSelectedForeground(),
878        "Menu.background", new ColorUIResource(getControl()),        "Menu.background", getMenuBackground(),
879        "Menu.border", new MetalBorders.MenuItemBorder(),        "Menu.border", new MetalBorders.MenuItemBorder(),
880        "Menu.borderPainted", Boolean.TRUE,        "Menu.borderPainted", Boolean.TRUE,
881          "Menu.disabledForeground", getMenuDisabledForeground(),
882        "Menu.font", getControlTextFont(),        "Menu.font", getControlTextFont(),
883          "Menu.foreground", getMenuForeground(),
884        "Menu.selectionBackground", getMenuSelectedBackground(),        "Menu.selectionBackground", getMenuSelectedBackground(),
885        "Menu.selectionForeground", getMenuSelectedForeground(),        "Menu.selectionForeground", getMenuSelectedForeground(),
886        "MenuBar.background", new ColorUIResource(getControl()),  
887          "MenuBar.background", getMenuBackground(),
888        "MenuBar.border", new MetalBorders.MenuBarBorder(),        "MenuBar.border", new MetalBorders.MenuBarBorder(),
889        "MenuBar.font", getControlTextFont(),        "MenuBar.font", getControlTextFont(),
890        "MenuItem.background", new ColorUIResource(getControl()),        "MenuBar.foreground", getMenuForeground(),
891          "MenuBar.highlight", getControlHighlight(),
892          "MenuBar.shadow", getControlShadow(),
893    
894          "MenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 10),
895          "MenuItem.acceleratorForeground", getAcceleratorForeground(),
896          "MenuItem.acceleratorSelectionForeground", getAcceleratorSelectedForeground(),
897          "MenuItem.background", getMenuBackground(),
898        "MenuItem.border", new MetalBorders.MenuItemBorder(),        "MenuItem.border", new MetalBorders.MenuItemBorder(),
899          "MenuItem.disabledForeground", getMenuDisabledForeground(),
900        "MenuItem.font", getControlTextFont(),        "MenuItem.font", getControlTextFont(),
901          "MenuItem.foreground", getMenuForeground(),
902        "MenuItem.selectionBackground", getMenuSelectedBackground(),        "MenuItem.selectionBackground", getMenuSelectedBackground(),
903        "MenuItem.selectionForeground", getMenuSelectedForeground(),        "MenuItem.selectionForeground", getMenuSelectedForeground(),
904        "Panel.background", new ColorUIResource(getControl()),  
905        "RadioButton.disabledText",        "OptionPane.background", getControl(),
906        MetalLookAndFeel.getInactiveControlTextColor(),        "OptionPane.errorDialog.border.background", new ColorUIResource(153, 51, 51),
907          "OptionPane.errorDialog.titlePane.background", new ColorUIResource(255, 153, 153),
908          "OptionPane.errorDialog.titlePane.foreground", new ColorUIResource(51, 0, 0),
909          "OptionPane.errorDialog.titlePane.shadow", new ColorUIResource(204, 102, 102),
910          "OptionPane.foreground", getControlTextColor(),
911          "OptionPane.messageForeground", getControlTextColor(),
912          "OptionPane.questionDialog.border.background", new ColorUIResource(51, 102, 51),
913          "OptionPane.questionDialog.titlePane.background", new ColorUIResource(153, 204, 153),
914          "OptionPane.questionDialog.titlePane.foreground", new ColorUIResource(0, 51, 0),
915          "OptionPane.questionDialog.titlePane.shadow", new ColorUIResource(102, 153, 102),
916          "OptionPane.warningDialog.border.background", new ColorUIResource(153, 102, 51),
917          "OptionPane.warningDialog.titlePane.background", new ColorUIResource(255, 204, 153),
918          "OptionPane.warningDialog.titlePane.foreground", new ColorUIResource(102, 51, 0),
919          "OptionPane.warningDialog.titlePane.shadow", new ColorUIResource(204, 153, 102),
920    
921          "Panel.background", getControl(),
922          "Panel.foreground", getUserTextColor(),
923    
924          "PasswordField.background", getWindowBackground(),
925          "PasswordField.caretForeground", getUserTextColor(),
926          "PasswordField.foreground", getUserTextColor(),
927          "PasswordField.inactiveBackground", getControl(),
928          "PasswordField.inactiveForeground", getInactiveSystemTextColor(),
929          "PasswordField.selectionBackground", getTextHighlightColor(),
930          "PasswordField.selectionForeground", getHighlightedTextColor(),
931    
932          "PopupMenu.background", getMenuBackground(),
933          "PopupMenu.border", new MetalBorders.PopupMenuBorder(),
934          "PopupMenu.font", new FontUIResource("Dialog", Font.BOLD, 12),
935          "PopupMenu.foreground", getMenuForeground(),
936    
937          "ProgressBar.background", getControl(),
938          "ProgressBar.border", new BorderUIResource.LineBorderUIResource(getControlDarkShadow(), 1),
939          "ProgressBar.font", new FontUIResource("Dialog", Font.BOLD, 12),
940          "ProgressBar.foreground", getPrimaryControlShadow(),
941          "ProgressBar.selectionBackground", getPrimaryControlDarkShadow(),
942          "ProgressBar.selectionForeground", getControl(),
943    
944          "RadioButton.background", getControl(),
945          "RadioButton.darkShadow", getControlDarkShadow(),
946          "RadioButton.disabledText", getInactiveControlTextColor(),
947        "RadioButton.icon",        "RadioButton.icon",
948        new UIDefaults.LazyValue()        new UIDefaults.LazyValue()
949        {        {
# Line 897  public class MetalLookAndFeel extends Ba Line 954  public class MetalLookAndFeel extends Ba
954        },        },
955        "RadioButton.focus", MetalLookAndFeel.getFocusColor(),        "RadioButton.focus", MetalLookAndFeel.getFocusColor(),
956        "RadioButton.font", MetalLookAndFeel.getControlTextFont(),        "RadioButton.font", MetalLookAndFeel.getControlTextFont(),
957        "RadioButton.select", MetalLookAndFeel.getControlShadow(),        "RadioButton.foreground", getControlTextColor(),
958          "RadioButton.highlight", getControlHighlight(),
959          "RadioButton.light", getControlHighlight(),
960          "RadioButton.select", getControlShadow(),
961          "RadioButton.shadow", getControlShadow(),
962    
963          "RadioButtonMenuItem.acceleratorFont", new Font("Dialog", Font.PLAIN, 10),
964          "RadioButtonMenuItem.acceleratorForeground", getAcceleratorForeground(),
965          "RadioButtonMenuItem.acceleratorSelectionForeground", getAcceleratorSelectedForeground(),
966          "RadioButtonMenuItem.background", getMenuBackground(),
967        "RadioButtonMenuItem.border", new MetalBorders.MenuItemBorder(),        "RadioButtonMenuItem.border", new MetalBorders.MenuItemBorder(),
968        "RadioButtonMenuItem.borderPainted", Boolean.TRUE,        "RadioButtonMenuItem.borderPainted", Boolean.TRUE,
969        "RadioButtonMenuItem.checkIcon",        "RadioButtonMenuItem.checkIcon",
970          MetalIconFactory.getRadioButtonMenuItemIcon(),          MetalIconFactory.getRadioButtonMenuItemIcon(),
971          "RadioButtonMenuItem.disabledForeground", getMenuDisabledForeground(),
972        "RadioButtonMenuItem.font", MetalLookAndFeel.getControlTextFont(),        "RadioButtonMenuItem.font", MetalLookAndFeel.getControlTextFont(),
973          "RadioButtonMenuItem.foreground", getMenuForeground(),
974        "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2),        "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2),
975        "RadioButtonMenuItem.selectionBackground",        "RadioButtonMenuItem.selectionBackground",
976          MetalLookAndFeel.getMenuSelectedBackground(),          MetalLookAndFeel.getMenuSelectedBackground(),
977        "RadioButtonMenuItem.selectionForeground",        "RadioButtonMenuItem.selectionForeground",
978          MetalLookAndFeel.getMenuSelectedForeground(),          MetalLookAndFeel.getMenuSelectedForeground(),
979    
980        "ScrollBar.background", new ColorUIResource(getControl()),        "ScrollBar.background", getControl(),
981        "ScrollBar.shadow", new ColorUIResource(getControlShadow()),        "ScrollBar.darkShadow", getControlDarkShadow(),
982        "ScrollBar.thumb", new ColorUIResource(getPrimaryControlShadow()),        "ScrollBar.foreground", getControl(),
983        "ScrollBar.thumbDarkShadow",        "ScrollBar.highlight", getControlHighlight(),
984        new ColorUIResource(getPrimaryControlDarkShadow()),        "ScrollBar.shadow", getControlShadow(),
985        "ScrollBar.thumbHighlight",        "ScrollBar.thumb", getPrimaryControlShadow(),
986        new ColorUIResource(getPrimaryControl()),        "ScrollBar.thumbDarkShadow", getControlDarkShadow(),
987          "ScrollBar.thumbHighlight", getPrimaryControl(),
988        "SplitPane.darkShadow",        "ScrollBar.thumbShadow", getPrimaryControlDarkShadow(),
989        new ColorUIResource(getControlDarkShadow()),        "ScrollBar.track", getControl(),
990        "SplitPane.highlight",        "ScrollBar.trackHighlight", getControlDarkShadow(),
991        new ColorUIResource(getControlHighlight()),  
992          "ScrollPane.background", getControl(),
993          "ScrollPane.border", new MetalBorders.ScrollPaneBorder(),
994          "ScrollPane.foreground", getControlTextColor(),
995    
996          "Separator.background", getSeparatorBackground(),
997          "Separator.foreground", getSeparatorForeground(),
998          "Separator.highlight", getControlHighlight(),
999          "Separator.shadow", getControlShadow(),
1000    
1001          "Slider.background", getControl(),
1002          "Slider.focus", getFocusColor(),
1003        "Slider.focusInsets", new InsetsUIResource(0, 0, 0, 0),        "Slider.focusInsets", new InsetsUIResource(0, 0, 0, 0),
1004          "Slider.foreground", getPrimaryControlShadow(),
1005          "Slider.highlight", getControlHighlight(),
1006        "Slider.horizontalThumbIcon",        "Slider.horizontalThumbIcon",
1007        MetalIconFactory.getHorizontalSliderThumbIcon(),        MetalIconFactory.getHorizontalSliderThumbIcon(),
1008          "Slider.majorTickLength", new Integer(6),
1009          "Slider.shadow", getControlShadow(),
1010          "Slider.trackWidth", new Integer(7),
1011        "Slider.verticalThumbIcon",        "Slider.verticalThumbIcon",
1012        MetalIconFactory.getVerticalSliderThumbIcon(),        MetalIconFactory.getVerticalSliderThumbIcon(),
1013        "Slider.trackWidth", new Integer(7),  
1014        "Slider.majorTickLength", new Integer(6),        "Spinner.background", getControl(),
1015                "Spinner.font", new FontUIResource("Dialog", Font.BOLD, 12),
1016          "Spinner.foreground", getControl(),
1017    
1018          "SplitPane.background", getControl(),
1019          "SplitPane.darkShadow", getControlDarkShadow(),
1020          "SplitPane.dividerFocusColor", getPrimaryControl(),
1021          "SplitPane.highlight", getControlHighlight(),
1022          "SplitPane.shadow", getControlShadow(),
1023    
1024          "SplitPaneDivider.draggingColor", Color.DARK_GRAY,
1025    
1026          "TabbedPane.background", getControlShadow(),
1027          "TabbedPane.darkShadow", getControlDarkShadow(),
1028          "TabbedPane.focus", getPrimaryControlDarkShadow(),
1029        "TabbedPane.font", new FontUIResource("Dialog", Font.BOLD, 12),        "TabbedPane.font", new FontUIResource("Dialog", Font.BOLD, 12),
1030        "TabbedPane.tabInsets", new InsetsUIResource(0, 9, 1, 9),        "TabbedPane.foreground", getControlTextColor(),
1031          "TabbedPane.highlight", getControlHighlight(),
1032          "TabbedPane.light", getControl(),
1033          "TabbedPane.selected", getControl(),
1034          "TabbedPane.selectHighlight", getControlHighlight(),
1035        "TabbedPane.selectedTabPadInsets", new InsetsUIResource(2, 2, 2, 1),        "TabbedPane.selectedTabPadInsets", new InsetsUIResource(2, 2, 2, 1),
1036          "TabbedPane.shadow", getControlShadow(),
1037          "TabbedPane.tabAreaBackground", getControl(),
1038        "TabbedPane.tabAreaInsets", new InsetsUIResource(4, 2, 0, 6),        "TabbedPane.tabAreaInsets", new InsetsUIResource(4, 2, 0, 6),
1039          "TabbedPane.tabInsets", new InsetsUIResource(0, 9, 1, 9),
1040    
1041          "Table.background", getWindowBackground(),
1042          "Table.focusCellBackground", getWindowBackground(),
1043          "Table.focusCellForeground", getControlTextColor(),
1044          "Table.foreground", getControlTextColor(),
1045          "Table.focusCellHighlightBorder", getControlShadow(),
1046          "Table.focusCellBackground", getWindowBackground(),
1047          "Table.gridColor", getControlShadow(),
1048    
1049          "TableHeader.background", getControl(),
1050          "TableHeader.foreground", getControlTextColor(),
1051    
1052          "TextArea.background", getWindowBackground(),
1053          "TextArea.caretForeground", getUserTextColor(),
1054          "TextArea.font", new FontUIResource("Dialog", Font.PLAIN, 12),
1055          "TextArea.foreground", getUserTextColor(),
1056          "TextArea.inactiveForeground", getInactiveSystemTextColor(),
1057          "TextArea.selectionBackground", getTextHighlightColor(),
1058          "TextArea.selectionForeground", getHighlightedTextColor(),
1059    
1060          "TextField.background", getWindowBackground(),
1061        "TextField.border", MetalBorders.getTextFieldBorder(),        "TextField.border", MetalBorders.getTextFieldBorder(),
1062        "TextField.inactiveBackground", getControlTextColor(),        "TextField.caretForeground", getUserTextColor(),
1063        "TextField.inactiveForeground", getInactiveControlTextColor(),        "TextField.darkShadow", getControlDarkShadow(),
1064          "TextField.font", new FontUIResource("Dialog", Font.PLAIN, 12),
1065          "TextField.foreground", getUserTextColor(),
1066          "TextField.highlight", getControlHighlight(),
1067          "TextField.inactiveBackground", getControl(),
1068          "TextField.inactiveForeground", getInactiveSystemTextColor(),
1069          "TextField.light", getControlHighlight(),
1070          "TextField.selectionBackground", getTextHighlightColor(),
1071          "TextField.selectionForeground", getHighlightedTextColor(),
1072          "TextField.shadow", getControlShadow(),
1073        
1074          "TextPane.background", getWindowBackground(),
1075          "TextPane.caretForeground", getUserTextColor(),
1076          "TextPane.font", new FontUIResource("Dialog", Font.PLAIN, 12),
1077          "TextPane.foreground", getUserTextColor(),
1078          "TextPane.inactiveForeground", getInactiveSystemTextColor(),
1079          "TextPane.selectionBackground", getTextHighlightColor(),
1080          "TextPane.selectionForeground", getHighlightedTextColor(),
1081    
1082          "TitledBorder.font", new FontUIResource("Dialog", Font.BOLD, 12),
1083          "TitledBorder.titleColor", getSystemTextColor(),
1084    
1085        "ToggleButton.background", new ColorUIResource(getControl()),        "ToggleButton.background", getControl(),
1086        "ToggleButton.border", MetalBorders.getButtonBorder(),        "ToggleButton.border", MetalBorders.getButtonBorder(),
1087        "ToggleButton.darkShadow", new ColorUIResource(getControlDarkShadow()),        "ToggleButton.darkShadow", getControlDarkShadow(),
1088        "ToggleButton.disabledText", new ColorUIResource(getControlDisabled()),        "ToggleButton.disabledText", getInactiveControlTextColor(),
1089        "ToggleButton.focus", new ColorUIResource(getFocusColor()),        "ToggleButton.focus", new ColorUIResource(getFocusColor()),
1090        "ToggleButton.font", getControlTextFont(),        "ToggleButton.font", getControlTextFont(),
1091        "ToggleButton.foreground", new ColorUIResource(getSystemTextColor()),        "ToggleButton.foreground", getControlTextColor(),
1092        "ToggleButton.highlight", new ColorUIResource(getControlHighlight()),        "ToggleButton.highlight", getControlHighlight(),
1093        "ToggleButton.light", new ColorUIResource(getControlHighlight()),        "ToggleButton.light", getControlHighlight(),
1094        "ToggleButton.margin", new Insets(2, 14, 2, 14),        "ToggleButton.margin", new Insets(2, 14, 2, 14),
1095        "ToggleButton.select", new ColorUIResource(getPrimaryControlShadow()),        "ToggleButton.select", getControlShadow(),
1096        "ToggleButton.shadow", new ColorUIResource(getPrimaryControlShadow()),        "ToggleButton.shadow", getControlShadow(),
1097    
1098        "Tree.openIcon", MetalIconFactory.getTreeFolderIcon(),        "ToolBar.background", getMenuBackground(),
1099          "ToolBar.darkShadow", getControlDarkShadow(),
1100          "ToolBar.dockingBackground", getMenuBackground(),
1101          "ToolBar.dockingForeground", getPrimaryControlDarkShadow(),
1102          "ToolBar.floatingBackground", getMenuBackground(),
1103          "ToolBar.floatingForeground", getPrimaryControl(),
1104          "ToolBar.font", new FontUIResource("Dialog", Font.BOLD, 12),
1105          "ToolBar.foreground", getMenuForeground(),
1106          "ToolBar.highlight", getControlHighlight(),
1107          "ToolBar.light", getControlHighlight(),
1108          "ToolBar.shadow", getControlShadow(),
1109    
1110          "ToolTip.background", getPrimaryControl(),
1111          "ToolTip.backgroundInactive", getControl(),
1112          "ToolTip.border", new BorderUIResource.LineBorderUIResource(getPrimaryControlDarkShadow(), 1),
1113          "ToolTip.borderInactive", new BorderUIResource.LineBorderUIResource(getControlDarkShadow(), 1),
1114          "ToolTip.font", new FontUIResource("Dialog", Font.PLAIN, 12),
1115          "ToolTip.foreground", getPrimaryControlInfo(),
1116          "ToolTip.foregroundInactive", getControlDarkShadow(),
1117    
1118          "Tree.background", getWindowBackground(),
1119        "Tree.closedIcon", MetalIconFactory.getTreeFolderIcon(),        "Tree.closedIcon", MetalIconFactory.getTreeFolderIcon(),
       "Tree.leafIcon", MetalIconFactory.getTreeLeafIcon(),  
1120        "Tree.collapsedIcon", MetalIconFactory.getTreeControlIcon(true),        "Tree.collapsedIcon", MetalIconFactory.getTreeControlIcon(true),
1121        "Tree.expandedIcon", MetalIconFactory.getTreeControlIcon(false),        "Tree.expandedIcon", MetalIconFactory.getTreeControlIcon(false),
1122        "Tree.font", new FontUIResource(new Font("Helvetica", Font.PLAIN, 12)),        "Tree.font", new FontUIResource("Dialog", Font.PLAIN, 12),
1123        "Tree.background", new ColorUIResource(Color.white),        "Tree.foreground", getUserTextColor(),
1124        "Tree.foreground", new ColorUIResource(new Color(204, 204, 255)),        "Tree.hash", getPrimaryControl(),
1125        "Tree.hash", new ColorUIResource(new Color(204, 204, 255)),        "Tree.leafIcon", MetalIconFactory.getTreeLeafIcon(),
1126        "Tree.leftChildIndent", new Integer(7),        "Tree.leftChildIndent", new Integer(7),
1127          "Tree.line", getPrimaryControl(),
1128          "Tree.openIcon", MetalIconFactory.getTreeFolderIcon(),
1129        "Tree.rightChildIndent", new Integer(13),        "Tree.rightChildIndent", new Integer(13),
1130        "Tree.rowHeight", new Integer(20),        "Tree.rowHeight", new Integer(20),
1131        "Tree.scrollsOnExpand", Boolean.TRUE,        "Tree.scrollsOnExpand", Boolean.TRUE,
1132        "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)),  
1133        "Tree.selectionBorder", new BorderUIResource.LineBorderUIResource(new Color(102, 102, 153)),        "Tree.selectionBorder", new BorderUIResource.LineBorderUIResource(new Color(102, 102, 153)),
1134        "Tree.nonSelectionBorder", new BorderUIResource.LineBorderUIResource(Color.white),        "Tree.selectionBorderColor", getFocusColor(),
1135        "Tree.selectionForeground", new ColorUIResource(Color.black),        "Tree.selectionForeground", getHighlightedTextColor(),
1136        "Tree.textBackground", new ColorUIResource(new Color(204, 204, 255)),        "Tree.textBackground", getWindowBackground(),
1137        "Tree.textForeground", new ColorUIResource(Color.black),        "Tree.textForeground", getUserTextColor(),
1138        "Tree.selectionForeground", new ColorUIResource(Color.black),  
1139        "PopupMenu.border", new MetalBorders.PopupMenuBorder()        "Viewport.background", getControl(),
1140          "Viewport.foreground", getUserTextColor()
1141      };      };
1142      defaults.putDefaults(myDefaults);      defaults.putDefaults(myDefaults);
1143    }    }

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

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