/* ************************************************************************

   qooxdoo - the new era of web development

   http://qooxdoo.org

   Copyright:
     2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
     2006 STZ-IDA, Germany, http://www.stz-ida.de

   License:
     LGPL: http://www.gnu.org/licenses/lgpl.html
     EPL: http://www.eclipse.org/org/documents/epl-v10.php
     See the LICENSE file in the project's top-level directory for details.

   Authors:
   * Jonathan Weiß (jonathan_rass)

************************************************************************* */

/**
 * Extends the default qooxdoo appearance theme.
 */
qx.Theme.define("apiviewer.Appearance",
{
  title: "Theme for API Viewer",
  extend : qx.theme.indigo.Appearance,

  appearances :
  {
    "toggleview" :
    {
      style : function(states)
      {
        return {
          width : 240,
          decorator : "main"
        };
      }
    },

    "detailviewer" :
    {
      style : function(states)
      {
        return {
          backgroundColor : "white",
          decorator : "main",
          padding : [10, 0, 10, 0]
        }
      }
    },

    "legend" :
    {
      include : "scrollarea",
      alias : "scrollarea",

      style : function(states)
      {
        return {
          contentPadding : [ 10, 10, 10, 10 ],
          backgroundColor: "white"
        };
      }
    },

    "legendview-label-important" :
    {
      style : function(states)
      {
        return {
          textColor: "#134275",
          font : "bold"
        };
      }
    },

    "legendview-label" :
    {
      style : function(states)
      {
        return {
          textColor: "#134275"
        };
      }
    },

    "tabview" :
    {
      style : function(states)
      {
        return {
          contentPadding : 0
        }
      }
    },

    "tabview/pane" :
    {
      style : function(states)
      {
        return {
          minHeight : 100,

          marginBottom : states.barBottom ? -1 : 0,
          marginTop : states.barTop ? -1 : 0,
          marginLeft : states.barLeft ? -1 : 0,
          marginRight : states.barRight ? -1 : 0
        };
      }
    }
  }
});