private void defineBaseColors(UIDefaults d){
  d.put("control",new ColorUIResource(0xf8f8f8));
  addColor(d,"text",0,0,0,255);
  addColor(d,"seaGlassBase",51,98,140,255);
  addColor(d,"seaGlassBlueGrey","seaGlassBase",0.032459438f,-0.52518797f,0.19607842f,0);
  addColor(d,"seaGlassOrange",191,98,4,255);
  addColor(d,"seaGlassGreen",176,179,50,255);
  addColor(d,"seaGlassRed",169,46,34,255);
  addColor(d,"seaGlassBorder","seaGlassBlueGrey",0.0f,-0.017358616f,-0.11372548f,0);
  addColor(d,"seaGlassSelection","seaGlassBase",-0.010750473f,-0.04875779f,-0.007843137f,0);
  addColor(d,"seaGlassInfoBlue",47,92,180,255);
  addColor(d,"seaGlassAlertYellow",255,220,35,255);
  addColor(d,"seaGlassFocus",115,164,209,255);
  addColor(d,"seaGlassSelectedText",255,255,255,255);
  addColor(d,"seaGlassSelectionBackground",57,105,138,255);
  addColor(d,"seaGlassDisabledText",142,143,145,255);
  addColor(d,"seaGlassLightBackground",255,255,255,255);
  addColor(d,"infoText","text",0.0f,0.0f,0.0f,0);
  addColor(d,"info",242,242,189,255);
  addColor(d,"menuText","text",0.0f,0.0f,0.0f,0);
  addColor(d,"menu","seaGlassBase",0.021348298f,-0.6150531f,0.39999998f,0);
  addColor(d,"scrollbar","seaGlassBlueGrey",-0.006944418f,-0.07296763f,0.09019607f,0);
  addColor(d,"controlText","text",0.0f,0.0f,0.0f,0);
  addColor(d,"controlHighlight","seaGlassBlueGrey",0.0f,-0.07333623f,0.20392156f,0);
  addColor(d,"controlLHighlight","seaGlassBlueGrey",0.0f,-0.098526314f,0.2352941f,0);
  addColor(d,"controlShadow","seaGlassBlueGrey",-0.0027777553f,-0.0212406f,0.13333333f,0);
  addColor(d,"controlDkShadow","seaGlassBlueGrey",-0.0027777553f,-0.0018306673f,-0.02352941f,0);
  addColor(d,"textHighlight","seaGlassSelectionBackground",0.0f,0.0f,0.0f,0);
  addColor(d,"textHighlightText","seaGlassSelectedText",0.0f,0.0f,0.0f,0);
  addColor(d,"textInactiveText","seaGlassDisabledText",0.0f,0.0f,0.0f,0);
  addColor(d,"desktop","seaGlassBase",-0.009207249f,-0.13984653f,-0.07450983f,0);
  addColor(d,"activeCaption","seaGlassBlueGrey",0.0f,-0.049920253f,0.031372547f,0);
  addColor(d,"inactiveCaption","seaGlassBlueGrey",-0.00505054f,-0.055526316f,0.039215684f,0);
  addColor(d,"textForeground","text",0.0f,0.0f,0.0f,255);
  addColor(d,"[Disabled].textForeground","textForeground",0.0f,0.0f,0.0f,80);
  addColor(d,"textBackground","seaGlassSelectionBackground",0.0f,0.0f,0.0f,0);
  addColor(d,"background","control",0,0,0,0);
  d.put("TitledBorder.position","ABOVE_TOP");
  d.put("TitledBorder.titleColor",Color.BLACK);
  d.put("TitledBorder.font",new DerivedFont("defaultFont",1.0f,false,false));
  d.put("FileView.fullRowSelection",Boolean.TRUE);
  d.put("seaGlassSelection",new Color(0x6181a5));
  d.put("seaGlassFocus",new Color(0x73a4d1));
  d.put("seaGlassBorder",new Color(0x9297a1));
  d.put("seaGlassSelectedText",Color.WHITE);
  d.put("seaGlassSelectionBackground",new Color(0x6181a5));
  d.put("seaGlassDisabledText",new Color(0xc8c8c8));
  d.put("textHighlight",d.get("seaGlassSelectionBackground"));
  d.put("textHighlightText",Color.WHITE);
  d.put("textInactiveText",d.get("seaGlassDisabledText"));
  d.put("menuText",Color.WHITE);
  d.put("menu",Color.WHITE);
  d.put("seaGlassTransparent",new Color(0x0,true));
  d.put("seaGlassTextEmphasis",new Color(255,255,255,110));
  d.put("seaGlassDropShadow",new Color(211,211,211));
  d.put("seaGlassInnerShadow",new Color(0x20000000,true));
  d.put("seaGlassStyleDefaultColor",new ColorUIResource(Color.BLACK));
  d.put("seaGlassFocusInsets",new Insets(2,2,2,2));
  d.put("seaGlassTransparent",new Color(0,true));
  d.put("seaGlassFocus",new Color(0x73a4d1));
  d.put("seaGlassOuterFocus",getDerivedColor("seaGlassFocus",-0.0028f,0.01f,0f,-0x80,true));
  if (PlatformUtils.isMac()) {
    d.put("seaGlassToolBarFocus",d.get("seaGlassFocus"));
    d.put("seaGlassToolBarOuterFocus",d.get("seaGlassOuterFocus"));
    d.put("seaGlassToolBarDisabledText",new Color(0x80000000,true));
  }
 else {
    d.put("seaGlassToolBarFocus",new Color(0x5b7ea4));
    d.put("seaGlassToolBarOuterFocus",getDerivedColor("seaGlassToolBarFocus",-0.0028f,0.01f,0f,-0x80,true));
    d.put("seaGlassToolBarDisabledText",new Color(0x80000000,true));
  }
  d.put("seaGlassTableSelectionActiveBottom",new Color(0x7daaea));
  d.put("seaGlassTableSelectionInactiveBottom",new Color(0xe0e0e0));
  d.put("seaGlassSearchPlaceholderText",new Color(0x808080));
  d.put("seaGlassSearchIcon",new Color(0x404040));
  d.put("seaGlassCancelIcon",new Color(0xb3b3b3));
  d.put("seaGlassCancelIconPressed",new Color(0x808080));
  d.put("seaGlassTextEnabledBorder",new Color(0x709ad0));
  d.put("seaGlassTextDisabledBorder",SeaGlassGraphicsUtils.disable(new Color(0x709ad0)));
  d.put("seaGlassTextEnabledToolbarBorder",new Color(0x888888));
  d.put("seaGlassMenuIcon",new Color(0x5b7ea4));
}

private void defineBaseColors ( UIDefaults d ) { d . put ( "control" , new ColorUIResource ( 0xf8f8f8 ) ) ; addColor ( d , "text" , 0 , 0 , 0 , 255 ) ; addColor ( d , "seaGlassBase" , 51 , 98 , 140 , 255 ) ; addColor ( d , "seaGlassBlueGrey" , "seaGlassBase" , 0.032459438f , - 0.52518797f , 0.19607842f , 0 ) ; addColor ( d , "seaGlassOrange" , 191 , 98 , 4 , 255 ) ; addColor ( d , "seaGlassGreen" , 176 , 179 , 50 , 255 ) ; addColor ( d , "seaGlassRed" , 169 , 46 , 34 , 255 ) ; addColor ( d , "seaGlassBorder" , "seaGlassBlueGrey" , 0.0f , - 0.017358616f , - 0.11372548f , 0 ) ; addColor ( d , "seaGlassSelection" , "seaGlassBase" , - 0.010750473f , - 0.04875779f , - 0.007843137f , 0 ) ; addColor ( d , "seaGlassInfoBlue" , 47 , 92 , 180 , 255 ) ; addColor ( d , "seaGlassAlertYellow" , 255 , 220 , 35 , 255 ) ; addColor ( d , "seaGlassFocus" , 115 , 164 , 209 , 255 ) ; addColor ( d , "seaGlassSelectedText" , 255 , 255 , 255 , 255 ) ; addColor ( d , "seaGlassSelectionBackground" , 57 , 105 , 138 , 255 ) ; addColor ( d , "seaGlassDisabledText" , 142 , 143 , 145 , 255 ) ; addColor ( d , "seaGlassLightBackground" , 255 , 255 , 255 , 255 ) ; addColor ( d , "infoText" , "text" , 0.0f , 0.0f , 0.0f , 0 ) ; addColor ( d , "info" , 242 , 242 , 189 , 255 ) ; addColor ( d , "menuText" , "text" , 0.0f , 0.0f , 0.0f , 0 ) ; addColor ( d , "menu" , "seaGlassBase" , 0.021348298f , - 0.6150531f , 0.39999998f , 0 ) ; addColor ( d , "scrollbar" , "seaGlassBlueGrey" , - 0.006944418f , - 0.07296763f , 0.09019607f , 0 ) ; addColor ( d , "controlText" , "text" , 0.0f , 0.0f , 0.0f , 0 ) ; addColor ( d , "controlHighlight" , "seaGlassBlueGrey" , 0.0f , - 0.07333623f , 0.20392156f , 0 ) ; addColor ( d , "controlLHighlight" , "seaGlassBlueGrey" , 0.0f , - 0.098526314f , 0.2352941f , 0 ) ; addColor ( d , "controlShadow" , "seaGlassBlueGrey" , - 0.0027777553f , - 0.0212406f , 0.13333333f , 0 ) ; addColor ( d , "controlDkShadow" , "seaGlassBlueGrey" , - 0.0027777553f , - 0.0018306673f , - 0.02352941f , 0 ) ; addColor ( d , "textHighlight" , "seaGlassSelectionBackground" , 0.0f , 0.0f , 0.0f , 0 ) ; addColor ( d , "textHighlightText" , "seaGlassSelectedText" , 0.0f , 0.0f , 0.0f , 0 ) ; addColor ( d , "textInactiveText" , "seaGlassDisabledText" , 0.0f , 0.0f , 0.0f , 0 ) ; addColor ( d , "desktop" , "seaGlassBase" , - 0.009207249f , - 0.13984653f , - 0.07450983f , 0 ) ; addColor ( d , "activeCaption" , "seaGlassBlueGrey" , 0.0f , - 0.049920253f , 0.031372547f , 0 ) ; addColor ( d , "inactiveCaption" , "seaGlassBlueGrey" , - 0.00505054f , - 0.055526316f , 0.039215684f , 0 ) ; addColor ( d , "textForeground" , "text" , 0.0f , 0.0f , 0.0f , 255 ) ; addColor ( d , "[Disabled].textForeground" , "textForeground" , 0.0f , 0.0f , 0.0f , 80 ) ; addColor ( d , "textBackground" , "seaGlassSelectionBackground" , 0.0f , 0.0f , 0.0f , 0 ) ; addColor ( d , "background" , "control" , 0 , 0 , 0 , 0 ) ; d . put ( "TitledBorder.position" , "ABOVE_TOP" ) ; d . put ( "TitledBorder.titleColor" , Color . BLACK ) ; d . put ( "TitledBorder.font" , new DerivedFont ( "defaultFont" , 1.0f , false , false ) ) ; d . put ( "FileView.fullRowSelection" , Boolean . TRUE ) ; d . put ( "seaGlassSelection" , new Color ( 0x6181a5 ) ) ; d . put ( "seaGlassFocus" , new Color ( 0x73a4d1 ) ) ; d . put ( "seaGlassBorder" , new Color ( 0x9297a1 ) ) ; d . put ( "seaGlassSelectedText" , Color . WHITE ) ; d . put ( "seaGlassSelectionBackground" , new Color ( 0x6181a5 ) ) ; d . put ( "seaGlassDisabledText" , new Color ( 0xc8c8c8 ) ) ; d . put ( "textHighlight" , d . get ( "seaGlassSelectionBackground" ) ) ; d . put ( "textHighlightText" , Color . WHITE ) ; d . put ( "textInactiveText" , d . get ( "seaGlassDisabledText" ) ) ; d . put ( "menuText" , Color . WHITE ) ; d . put ( "menu" , Color . WHITE ) ; d . put ( "seaGlassTransparent" , new Color ( 0x0 , true ) ) ; d . put ( "seaGlassTextEmphasis" , new Color ( 255 , 255 , 255 , 110 ) ) ; d . put ( "seaGlassDropShadow" , new Color ( 211 , 211 , 211 ) ) ; d . put ( "seaGlassInnerShadow" , new Color ( 0x20000000 , true ) ) ; d . put ( "seaGlassStyleDefaultColor" , new ColorUIResource ( Color . BLACK ) ) ; d . put ( "seaGlassFocusInsets" , new Insets ( 2 , 2 , 2 , 2 ) ) ; d . put ( "seaGlassTransparent" , new Color ( 0 , true ) ) ; d . put ( "seaGlassFocus" , new Color ( 0x73a4d1 ) ) ; d . put ( "seaGlassOuterFocus" , getDerivedColor ( "seaGlassFocus" , - 0.0028f , 0.01f , 0f , - 0x80 , true ) ) ; if ( PlatformUtils . isMac ( ) ) { d . put ( "seaGlassToolBarFocus" , d . get ( "seaGlassFocus" ) ) ; d . put ( "seaGlassToolBarOuterFocus" , d . get ( "seaGlassOuterFocus" ) ) ; d . put ( "seaGlassToolBarDisabledText" , new Color ( 0x80000000 , true ) ) ; } else { d . put ( "seaGlassToolBarFocus" , new Color ( 0x5b7ea4 ) ) ; d . put ( "seaGlassToolBarOuterFocus" , getDerivedColor ( "seaGlassToolBarFocus" , - 0.0028f , 0.01f , 0f , - 0x80 , true ) ) ; d . put ( "seaGlassToolBarDisabledText" , new Color ( 0x80000000 , true ) ) ; } d . put ( "seaGlassTableSelectionActiveBottom" , new Color ( 0x7daaea ) ) ; d . put ( "seaGlassTableSelectionInactiveBottom" , new Color ( 0xe0e0e0 ) ) ; d . put ( "seaGlassSearchPlaceholderText" , new Color ( 0x808080 ) ) ; d . put ( "seaGlassSearchIcon" , new Color ( 0x404040 ) ) ; d . put ( "seaGlassCancelIcon" , new Color ( 0xb3b3b3 ) ) ; d . put ( "seaGlassCancelIconPressed" , new Color ( 0x808080 ) ) ; d . put ( "seaGlassTextEnabledBorder" , new Color ( 0x709ad0 ) ) ; d . put ( "seaGlassTextDisabledBorder" , SeaGlassGraphicsUtils . disable ( new Color ( 0x709ad0 ) ) ) ; d . put ( "seaGlassTextEnabledToolbarBorder" , new Color ( 0x888888 ) ) ; d . put ( "seaGlassMenuIcon" , new Color ( 0x5b7ea4 ) ) ; }
initialize the base colors .
