blob: 690693a00fe203de6e0dc8e3d3c29f2cfd95775f [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 ViewMenu in a mobile application.
@see spark.components.ViewMenu
@langversion 3.0
@playerversion Flash 10
@playerversion AIR 1.5
@productversion Flex 4
-->
<s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:fb="http://ns.adobe.com/flashbuilder/2009" alpha.disabled="0.5">
<fx:Metadata>
<![CDATA[
/**
* @copy spark.skins.spark.ApplicationSkin#hostComponent
*/
[HostComponent("spark.components.ViewMenu")]
]]>
</fx:Metadata>
<fx:Script>
<![CDATA[
import spark.effects.easing.Power;
]]>
</fx:Script>
<s:states>
<s:State name="normal" stateGroups="openedGroup"/>
<s:State name="closed" stateGroups="closedGroup"/>
<s:State name="disabled" stateGroups="openedGroup"/>
<s:State name="normalAndLandscape" stateGroups="openedGroup, landscapeGroup"/>
<s:State name="closedAndLandscape" stateGroups="closedGroup, landscapeGroup"/>
<s:State name="disabledAndLandscape" stateGroups="openedGroup, landscapeGroup" />
</s:states>
<s:transitions>
<s:Transition fromState="closed" toState="normal" autoReverse="true">
<s:Parallel>
<s:Fade target="{chromeGroup}" duration="150" easer="{new Power(0.5, 3)}"/>
<s:Move target="{chromeGroup}" duration="150" disableLayout="true" />
</s:Parallel>
</s:Transition>
<s:Transition fromState="closedAndLandscape" toState="normalAndLandscape" autoReverse="true">
<s:Parallel>
<s:Fade target="{chromeGroup}" duration="150" easer="{new Power(0.5, 3)}" />
<s:Move target="{chromeGroup}" duration="150" disableLayout="true" />
</s:Parallel>
</s:Transition>
<s:Transition fromState="normal" toState="closed" autoReverse="true">
<s:Parallel>
<s:Fade target="{chromeGroup}" duration="100" easer="{new Power(0.5, 3)}"/>
<s:Move target="{chromeGroup}" duration="100" disableLayout="true"/>
</s:Parallel>
</s:Transition>
<s:Transition fromState="normalAndLandscape" toState="closedAndLandscape" autoReverse="true">
<s:Parallel>
<s:Fade target="{chromeGroup}" duration="100" easer="{new Power(0.5, 3)}"/>
<s:Move target="{chromeGroup}" duration="100" disableLayout="true"/>
</s:Parallel>
</s:Transition>
</s:transitions>
<s:Group id="chromeGroup" left="100" top="100">
<!-- Background and border - sets one corner rounded and adds a drop shadow filter-->
<s:Rect left="0" right="0" top="1" bottom="0" id="background" topRightRadiusX="15">
<s:filters>
<s:DropShadowFilter color="0x000000" blurX="20" />
</s:filters>
<s:fill>
<s:SolidColor color="0xF9F1D3"/>
</s:fill>
<s:stroke>
<s:SolidColorStroke weight="2" color="#323232" joints="bevel" alpha=".5"/>
</s:stroke>
</s:Rect>
<!--- @copy spark.components.SkinnableContainer#contentGroup -->
<s:Group id="contentGroup" left="0" right="0" top="3" bottom="2" minWidth="0" minHeight="0">
<s:layout>
<s:ViewMenuLayout horizontalGap="2" verticalGap="2" id="contentGroupLayout"
requestedMaxColumnCount="3" requestedMaxColumnCount.landscapeGroup="6"/>
</s:layout>
</s:Group>
</s:Group>
</s:SparkSkin>