| <?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 wireframe skin class for the Spark CheckBox component. |
| Skin classes in the wireframe package are useful for using as a simple base for a custom skin. |
| |
| @see spark.components.CheckBox |
| |
| @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" |
| alpha.disabledStates="0.5"> |
| |
| <fx:Metadata> |
| /** |
| * @copy spark.skins.spark.ApplicationSkin#hostComponent |
| */ |
| [HostComponent("spark.components.CheckBox")] |
| </fx:Metadata> |
| |
| <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" /> |
| <s:State name="overAndSelected" stateGroups="overStates" /> |
| <s:State name="downAndSelected" stateGroups="downStates" /> |
| <s:State name="disabledAndSelected" stateGroups="disabledStates" /> |
| </s:states> |
| |
| <s:Group verticalCenter="0" layoutDirection="ltr"> |
| <!-- background --> |
| <s:Rect left="0" right="0" minWidth="12" top="0" bottom="0" minHeight="12"> |
| <s:stroke> |
| <s:SolidColorStroke color="#5C5C5C" /> |
| </s:stroke> |
| <s:fill> |
| <s:SolidColor color="#EEEEEE" color.overStates="#FFFFFF" |
| color.downStates="#FFFFFF" /> |
| </s:fill> |
| </s:Rect> |
| |
| <!-- shadow (down states only) --> |
| <s:Rect left="1" top="1" right="1" bottom="1" includeIn="downStates"> |
| <s:stroke> |
| <s:LinearGradientStroke rotation="90"> |
| <s:GradientEntry color="#5C5C5C" alpha="0.25" /> |
| <s:GradientEntry color="#5C5C5C" alpha="0" /> |
| </s:LinearGradientStroke> |
| </s:stroke> |
| </s:Rect> |
| |
| <!-- checkmark --> |
| <s:Path data="M 3.5 6.5 l 2 2 l 6 -7" |
| includeIn="upAndSelected, overAndSelected, downAndSelected, disabledAndSelected"> |
| <s:stroke> |
| <s:SolidColorStroke weight="2" caps="square" color="#464646" /> |
| </s:stroke> |
| </s:Path> |
| </s:Group> |
| |
| <!-- Label --> |
| <!--- @copy spark.components.supportClasses.ButtonBase#labelDisplay --> |
| <s:Label id="labelDisplay" |
| textAlign="start" |
| verticalAlign="middle" |
| maxDisplayedLines="1" |
| left="18" right="0" top="2" bottom="0" verticalCenter="1" /> |
| |
| </s:Skin> |