blob: 884dd95ab95dc461b7e5ea07b1814e33db731c98 [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 TitleWindow 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:fb="http://ns.adobe.com/flashbuilder/2009" blendMode="normal" mouseEnabled="false"
minWidth="76" minHeight="76" alpha.disabled="0.5" alpha.disabledWithControlBar="0.5">
<fx:Metadata>
<![CDATA[
/**
* @copy spark.skins.spark.ApplicationSkin#hostComponent
*/
[HostComponent("spark.components.TitleWindow")]
]]>
</fx:Metadata>
<s:states>
<s:State name="normal" stateGroups="normalGroup"/>
<s:State name="active" />
<s:State name="inactive" />
<s:State name="disabled" />
<s:State name="normalWithControlBar" stateGroups="withControls, normalGroup"/>
<s:State name="activeWithControlBar" stateGroups="withControls" />
<s:State name="inactiveWithControlBar" />
<s:State name="disabledWithControlBar" stateGroups="withControls" />
</s:states>
<!-- drop shadow can't be hittable so it stays sibling of other graphics -->
<s:Rect top="0" right="0" bottom="0" left="0"
topLeftRadiusX="5" topRightRadiusX="5" bottomRightRadiusX="0" bottomLeftRadiusX="0">
<s:filters>
<s:DropShadowFilter blurX="20" blurY="20" alpha="0.32"
alpha.normalGroup="0.22" distance="11"
distance.normalGroup="7"
angle="90"
color="0x000000"
knockout="true"/>
</s:filters>
</s:Rect>
<!-- drop shadow can't be hittable so all other graphics go in this group -->
<s:Group left="0" right="0" top="0" bottom="0">
<!-- 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"
topLeftRadiusX="4" topRightRadiusX="4" bottomRightRadiusX="0" bottomLeftRadiusX="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="withControls">
<s:Rect id="bottomMaskRect" left="0" top="0" right="0" bottom="0"
topLeftRadiusX="0" topRightRadiusX="0" bottomRightRadiusX="0" bottomLeftRadiusX="0">
<s:fill>
<s:SolidColor alpha="0"/>
</s:fill>
</s:Rect>
</s:Group>
<!-- layer 1: border -->
<s:Rect id="border" left="1" right="1" top="0" bottom="1"
topLeftRadiusX="4" topRightRadiusX="4" bottomRightRadiusX="0" bottomLeftRadiusX="0">
<s:stroke>
<s:SolidColorStroke
color="0x304663"
weight="1"
/>
</s:stroke>
</s:Rect>
<!-- layer 2: background fill -->
<s:Rect id="background" left="2" top="1" right="2" bottom="2"
topLeftRadiusX="3" topRightRadiusX="3" bottomRightRadiusX="0" bottomLeftRadiusX="0">
<s:fill>
<s:SolidColor color="0xFFFFFF" />
</s:fill>
</s:Rect>
<!-- layer 3: contents -->
<!--- contains the vertical stack of titlebar content and controlbar -->
<s:Group left="1" right="1" top="0" bottom="1">
<s:layout>
<s:VerticalLayout gap="0" horizontalAlign="justify" />
</s:layout>
<s:Group id="topGroup" mask="{topGroupMask}" top="0">
<!-- layer 0: title bar fill -->
<s:Rect left="1" right="0" top="0" bottom="1"
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="1" blurY="1"
inner="true"
/>
</s:filters>
</s:Rect>
<!-- layer 2: title bar divider -->
<s:Group top="31" left="1" right="1" 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>
<!-- layer 3: text -->
<!--- Defines the appearance of the TitleWindowSkin class's title bar. -->
<s:Label id="titleDisplay" maxDisplayedLines="1"
left="9" right="16" top="1" bottom="0" minHeight="23"
verticalAlign="middle" fontWeight="bold"
color="0xFFFFFF">
</s:Label>
<!-- layer 4: moveArea -->
<!--- Defines the area where the user can drag the TitleWindow. -->
<s:Group id="moveArea" left="0" right="0" top="0" bottom="0" />
<!-- close button -->
<s:Button id="closeButton" skinClass="cobalt.skins.TitleWindowCloseButtonSkin"
width="15" height="15" right="8" verticalCenter="-2"/>
</s:Group>
<!--
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%" top="34" minWidth="0" minHeight="0">
</s:Group>
<s:Group id="bottomGroup" minWidth="0" minHeight="0"
includeIn="withControls">
<s:Group left="0" right="0" top="0" bottom="0" mask="{bottomGroupMask}">
<!-- layer 0: control bar divider line -->
<s:Rect left="0" right="0" top="0" height="1" alpha="0.22">
<s:fill>
<s:SolidColor color="0x666666" />
</s:fill>
</s:Rect>
<!-- layer 1: control bar fill -->
<s:Rect left="1" right="1" top="2" bottom="1">
<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:Group>
</s:Skin>