| <?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 ToggleButton component. |
| |
| @see spark.components.ToggleButton |
| |
| @langversion 3.0 |
| @playerversion Flash 10 |
| @playerversion AIR 1.5 |
| @productversion Flex 4 |
| --> |
| <s:SparkButtonSkin xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:s="library://ns.adobe.com/flex/spark" |
| xmlns:fb="http://ns.adobe.com/flashbuilder/2009" |
| minWidth="120" minHeight="30" |
| alpha.disabledStates="0.5"> |
| |
| <!-- host component --> |
| <fx:Metadata> |
| <![CDATA[ |
| /** |
| * @copy spark.skins.spark.ApplicationSkin#hostComponent |
| */ |
| [HostComponent("spark.components.ToggleButton")] |
| ]]> |
| </fx:Metadata> |
| |
| <!-- states --> |
| <s:states> |
| <s:State name="up" /> |
| <s:State name="over" stateGroups="overStates" /> |
| <s:State name="down" stateGroups="downStates" /> |
| <s:State name="disabled" stateGroups="disabledStates" /> |
| <s:State name="upAndSelected" stateGroups="selectedStates, selectedUpStates" /> |
| <s:State name="overAndSelected" stateGroups="overStates, selectedStates" /> |
| <s:State name="downAndSelected" stateGroups="downStates, selectedStates" /> |
| <s:State name="disabledAndSelected" stateGroups="selectedUpStates, disabledStates, selectedStates" /> |
| </s:states> |
| |
| <!-- layer 2: fill --> |
| <s:Rect id="fill" left="0" right="0" top="0" bottom="0" radiusX="3"> |
| <s:fill> |
| <s:LinearGradient rotation="90"> |
| <s:GradientEntry color.up="0x666666" color="0x999999"/> |
| <s:GradientEntry color.up="0x333333" color="0x4D4D4D"/> |
| </s:LinearGradient> |
| </s:fill> |
| <s:stroke> |
| <s:SolidColorStroke color="#1A1A1A"/> |
| </s:stroke> |
| <s:filters> |
| <s:DropShadowFilter includeIn="down" inner="true" blurX="10" |
| blurY="10" alpha="1" distance="4" angle="90"/> |
| <s:DropShadowFilter includeIn="disabled" inner="true" blurX="8" |
| blurY="8" alpha="1" distance="2" angle="90"/> |
| </s:filters> |
| </s:Rect> |
| |
| <!-- layer 8: text --> |
| <!--- @copy spark.components.supportClasses.ButtonBase#labelDisplay --> |
| <s:Label id="labelDisplay" |
| textAlign="center" |
| verticalAlign="middle" |
| maxDisplayedLines="1" |
| horizontalCenter="0" verticalCenter="1" |
| left="10" right="10" top="2" bottom="2" |
| color="0xFFFFFF" color.disabled="0xDDDDDD"> |
| </s:Label> |
| |
| </s:SparkButtonSkin> |