blob: 258cb843aa3ac04335d71978051785d9c7017c37 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--- The default skin class for a Spark Panel container.
@langversion 3.0
@playerversion Flash 10
@playerversion AIR 1.5
@productversion Flex 4
-->
<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:fb="http://ns.adobe.com/flashbuilder/2009" blendMode="normal" mouseEnabled="false"
minWidth="131" minHeight="127" alpha.disabled="0.5" alpha.disabledWithControlBar="0.5">
<fx:Metadata>
<![CDATA[
/**
* @copy spark.skins.spark.ApplicationSkin#hostComponent
*/
[HostComponent("spark.components.Panel")]
]]>
</fx:Metadata>
<s:states>
<s:State name="normal" />
<s:State name="disabled" />
<s:State name="normalWithControlBar" stateGroups="withControls" />
<s:State name="disabledWithControlBar" stateGroups="withControls" />
</s:states>
<!-- drop shadow can't be hittable so it stays sibling of other graphics -->
<s:RectangularDropShadow id="dropShadow" blurX="20" blurY="20" alpha="0.32" distance="11"
angle="90" color="#000000" left="0" top="0" right="0" bottom="0"/>
<s:Group left="0" right="0" top="0" bottom="0">
<!-- drop shadow -->
<s:Rect left="0" top="0" right="0" bottom="0" radiusX="4">
<s:filters>
<s:DropShadowFilter blurX="20" blurY="20" alpha="0.32" distance="11" angle="90" knockout="true" />
</s:filters>
<s:fill>
<s:SolidColor color="0" />
</s:fill>
</s:Rect>
<!-- top group mask -->
<s:Group left="1" top="1" right="1" bottom="1" id="topGroupMask" >
<s:Rect id="topMaskRect" left="0" top="0" right="0" bottom="0">
<s:fill>
<s:SolidColor alpha="0"/>
</s:fill>
</s:Rect>
</s:Group>
<!-- bottom group mask -->
<s:Group left="1" top="1" right="1" bottom="1" id="bottomGroupMask"
includeIn="normalWithControlBar, disabledWithControlBar">
<s:Rect id="bottomMaskRect" left="0" top="0" right="0" bottom="0">
<s:fill>
<s:SolidColor alpha="0"/>
</s:fill>
</s:Rect>
</s:Group>
<!-- Layer 1: border -->
<s:Rect id="border" left="0" right="0" top="0" bottom="0"
topLeftRadiusX="4" topRightRadiusX="4" bottomRightRadiusX="0" bottomLeftRadiusX="0">
<s:fill>
<s:LinearGradient rotation="90">
<s:GradientEntry color="0x426089"
alpha="1.0" />
<s:GradientEntry color="0x304663"
alpha="1.0" />
</s:LinearGradient>
</s:fill>
</s:Rect>
<!-- Layer 2: innerBorder -->
<s:Rect id="innerBorder" left="1" right="1" top="1" bottom="1"
topLeftRadiusX="3" topRightRadiusX="3" bottomRightRadiusX="0" bottomLeftRadiusX="0">
<s:fill>
<s:LinearGradient rotation="90">
<s:GradientEntry color="0x557FB5"
alpha="1.0" />
<s:GradientEntry color="0x42628A"
alpha="1.0" />
</s:LinearGradient>
</s:fill>
</s:Rect>
<!-- Layer 3: insetBorder -->
<s:Rect id="insetBorder" left="2" right="2" top="2" bottom="2"
topLeftRadiusX="2" topRightRadiusX="2" bottomRightRadiusX="0" bottomLeftRadiusX="0">
<s:fill>
<s:LinearGradient rotation="90">
<s:GradientEntry color="0x426089"
alpha="1.0" />
<s:GradientEntry color="0x304663"
alpha="1.0" />
</s:LinearGradient>
</s:fill>
</s:Rect>
<!-- Layer 4: fill -->
<s:Rect id="fill" left="3" right="3" top="3" bottom="3"
topLeftRadiusX="1" topRightRadiusX="1" bottomRightRadiusX="0" bottomLeftRadiusX="0">
<s:fill>
<s:LinearGradient rotation="90">
<s:GradientEntry color="0x446690"
alpha="1.0"
ratio="0"/>
<s:GradientEntry color="0x496C9A"
alpha="1.0"
ratio="0.2"/>
<s:GradientEntry color="0x3D5A80"
alpha="1.0"
ratio="0.8"/>
<s:GradientEntry color="0x385275"
alpha="1.0"
ratio="1.0"/>
</s:LinearGradient>
</s:fill>
<!-- inner Glow -->
<s:filters>
<s:GlowFilter color="0x000000"
alpha="0.85"
blurX="2" blurY="2"
inner="true"
/>
</s:filters>
</s:Rect>
<!-- layer 5: text -->
<!--- Defines the appearance of the PanelSkin class's title bar. -->
<s:Label id="titleDisplay" maxDisplayedLines="1"
left="9" right="3" top="1" minHeight="30"
verticalAlign="middle" fontWeight="bold"
color="0xFFFFFF">
</s:Label>
<!-- layer 6: Content Area -->
<s:Rect id="contentArea" left="1" right="1" top="34" bottom="1"
topLeftRadiusX="0" topRightRadiusX="0" bottomRightRadiusX="0" bottomLeftRadiusX="0">
<s:fill>
<s:LinearGradient rotation="90">
<s:GradientEntry color="0xFFFFFF"
alpha="1.0"
ratio="0"
/>
<s:GradientEntry color="0xFFFFFF"
alpha="1.0"
ratio=".75"
/>
<s:GradientEntry color="0xFAFAFA"
alpha="1.0"
ratio="1.0"
/>
</s:LinearGradient>
</s:fill>
</s:Rect>
<!-- layer 7: HRule-->
<s:Group top="31" left="4" right="4" minHeight="3">
<s:Rect width="100%" height="3" >
<s:fill>
<s:SolidColor
color="0x5680B6"
/>
</s:fill>
</s:Rect>
<!-- innerLine -->
<s:Rect width="100%" height="1" top="1">
<s:fill>
<s:SolidColor
color="0x3A577B"
/>
</s:fill>
</s:Rect>
</s:Group>
</s:Group>
<s:Group left="0" right="0" top="34" bottom="0" id="contents">
<s:layout>
<s:VerticalLayout gap="0" horizontalAlign="justify" />
</s:layout>
<!--
Note: setting the minimum size to 0 here so that changes to the host component's
size will not be thwarted by this skin part's minimum size. This is a compromise,
more about it here: http://bugs.adobe.com/jira/browse/SDK-21143
--> <s:Group id="contentGroup" width="100%" height="100%" minWidth="0" minHeight="0">
</s:Group>
<s:Group id="bottomGroup" minWidth="0" minHeight="0"
includeIn="normalWithControlBar, disabledWithControlBar" >
<s:Group left="0" right="0" top="0" bottom="0" mask="{bottomGroupMask}">
<!-- Layer 1: controlBar -->
<s:Rect id="controlBar" left="0" right="0" top="0" bottom="0"
topLeftRadiusX="0" topRightRadiusX="0" bottomRightRadiusX="0" bottomLeftRadiusX="0">
<s:fill>
<s:SolidColor color="0xE8E8E8"/>
</s:fill>
<s:stroke>
<s:SolidColorStroke color="0x666666"/>
</s:stroke>
</s:Rect>
</s:Group>
<!-- layer 3: control bar -->
<s:Group id="controlBarGroup" left="0" right="0" top="1" bottom="1" minWidth="0" minHeight="0">
<s:layout>
<s:HorizontalLayout paddingLeft="10" paddingRight="10" paddingTop="7" paddingBottom="7" gap="10" />
</s:layout>
</s:Group>
</s:Group>
</s:Group>
</s:Skin>