| <?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. |
| |
| --> |
| <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:s="library://ns.adobe.com/flex/spark" |
| xmlns:mx="library://ns.adobe.com/flex/mx" width="800" height="800"> |
| <s:layout><s:VerticalLayout/></s:layout> |
| <fx:Style> |
| @namespace s "library://ns.adobe.com/flex/spark"; |
| @namespace mx "library://ns.adobe.com/flex/mx"; |
| |
| @font-face{ |
| src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf"); |
| fontFamily: SparkVera; |
| embedAsCFF: true; |
| } |
| |
| |
| @font-face{ |
| src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf"); |
| fontWeight: bold; |
| fontFamily: SparkVera; |
| embedAsCFF: true; |
| } |
| |
| @font-face{ |
| src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf"); |
| fontStyle: italic; |
| fontFamily: SparkVera; |
| embedAsCFF: true; |
| |
| } |
| |
| @font-face{ |
| src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf"); |
| fontFamily: HaloVera; |
| embedAsCFF: false; |
| } |
| |
| |
| @font-face{ |
| src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf"); |
| fontWeight: bold; |
| fontFamily: HaloVera; |
| embedAsCFF: false; |
| } |
| |
| @font-face{ |
| src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf"); |
| fontStyle: italic; |
| fontFamily: HaloVera; |
| embedAsCFF: false; |
| |
| } |
| |
| global { |
| fontAntiAliasType: "normal"; |
| fontFamily: SparkVera; |
| fontLookup: "embeddedCFF"; |
| } |
| |
| mx|TextInput, mx|TextArea{ |
| fontAntiAliasType: "normal"; |
| fontFamily: HaloVera; |
| } |
| |
| .myStyleLeft{ |
| paddingLeft: 10; |
| } |
| .myStyleRight{ |
| paddingRight: 10; |
| } |
| .myStyleTop{ |
| paddingTop: 10; |
| } |
| .myStyleBottom{ |
| paddingBottom: 10; |
| } |
| |
| |
| .changeStyleLeft{ |
| paddingLeft: 30; |
| } |
| .changeStyleRight{ |
| paddingRight: 30; |
| } |
| .changeStyleTop{ |
| paddingTop: 30; |
| } |
| .changeStyleBottom{ |
| paddingBottom: 30; |
| } |
| |
| </fx:Style> |
| |
| <s:states> |
| <s:State name="defaultState" /> |
| <s:State name="state1" /> |
| </s:states> |
| |
| <s:Group id="paddingAllMXML"> |
| <s:TextInput id="allTI" paddingBottom.defaultState="20" paddingTop.defaultState="15" paddingRight.defaultState="10" paddingLeft.defaultState="5" paddingBottom.state1="25" paddingTop.state1="25" paddingRight.state1="20" paddingLeft.state1="15" text="paddingAll" height="40" /> |
| <s:TextArea id="allTA" paddingBottom.defaultState="20" paddingTop.defaultState="15" paddingRight.defaultState="10" paddingLeft.defaultState="5" paddingBottom.state1="25" paddingTop.state1="25" paddingRight.state1="20" paddingLeft.state1="15" x="200" text="paddingAll" height="60"/> |
| </s:Group> |
| |
| <s:HGroup> |
| <s:VGroup id="tiMXML"> |
| <s:Label text="TextInput MXML"/> |
| <s:TextInput text="no padding" height="40"/> |
| <s:TextInput id="tiRight" paddingRight="10" text="paddingRight" textAlign="right" height="40"/> |
| <s:TextInput id="tiLeft" paddingLeft="10" text="paddingLeft" height="40"/> |
| <s:TextInput id="tiBottom" paddingBottom="10" text="paddingBottom" height="40"/> |
| <s:TextInput id="tiTop" paddingTop="10" text="paddingTop" height="40"/> |
| </s:VGroup> |
| <s:VGroup id="taMXML"> |
| <s:Label text="TextArea MXML"/> |
| <s:TextArea text="no padding" height="40"/> |
| <s:TextArea id="taRight" paddingRight="10" text="paddingRight" textAlign="right" height="40"/> |
| <s:TextArea id="taLeft" paddingLeft="10" text="paddingLeft" height="40"/> |
| <s:TextArea id="taBottom" paddingBottom="10" text="paddingBottom" height="40"/> |
| <s:TextArea id="taTop" paddingTop="10" text="paddingTop" height="40"/> |
| </s:VGroup> |
| <s:VGroup id="halotiMXML"> |
| <s:Label text="Halo TextInput MXML"/> |
| <mx:TextInput text="no padding" height="40"/> |
| <mx:TextInput id="halotiRight" paddingRight="10" text="paddingRight" textAlign="right" height="40"/> |
| <mx:TextInput id="halotiLeft" paddingLeft="10" text="paddingLeft" height="40"/> |
| <mx:TextInput id="halotiBottom" paddingBottom="10" text="paddingBottom" height="40"/> |
| <mx:TextInput id="halotiTop" paddingTop="10" text="paddingTop" height="40"/> |
| </s:VGroup> |
| <s:VGroup id="halohalotaMXML"> |
| <s:Label text="Halo TextArea MXML"/> |
| <mx:TextArea text="no padding" height="40"/> |
| <mx:TextArea id="halotaRight" paddingRight="10" text="paddingRight" textAlign="right" height="40"/> |
| <mx:TextArea id="halotaLeft" paddingLeft="10" text="paddingLeft" height="40"/> |
| <mx:TextArea id="halotaBottom" paddingBottom="10" text="paddingBottom" height="40"/> |
| <mx:TextArea id="halotaTop" paddingTop="10" text="paddingTop" height="40"/> |
| </s:VGroup> |
| </s:HGroup> |
| <s:HGroup> |
| <s:VGroup id="tiType"> |
| <s:Label text="TextInput type selector"/> |
| <s:TextInput text="no padding" height="40"/> |
| <s:TextInput id="tiTypeRight" styleName="myStyleRight" text="paddingRight" textAlign="right" height="40"/> |
| <s:TextInput id="tiTypeLeft" styleName="myStyleLeft" text="paddingLeft" height="40"/> |
| <s:TextInput id="tiTypeBottom" styleName="myStyleBottom" text="paddingBottom" height="40"/> |
| <s:TextInput id="tiTypeTop" styleName="myStyleTop" text="paddingTop" height="40"/> |
| </s:VGroup> |
| <s:VGroup id="tiArea"> |
| <s:Label text="TextArea type selector"/> |
| <s:TextArea text="no padding" height="40"/> |
| <s:TextArea id="taTypeRight" styleName="myStyleRight" text="paddingRight" textAlign="right" height="40"/> |
| <s:TextArea id="taTypeLeft" styleName="myStyleLeft" text="paddingLeft" height="40"/> |
| <s:TextArea id="taTypeBottom" styleName="myStyleBottom" text="paddingBottom" height="40"/> |
| <s:TextArea id="taTypeTop" styleName="myStyleTop" text="paddingTop" height="40"/> |
| </s:VGroup> |
| |
| <s:VGroup id="stiType"> |
| <s:Label text="Halo TextInput type selector"/> |
| <mx:TextInput text="no padding" height="40"/> |
| <mx:TextInput id="halotiTypeRight" styleName="myStyleRight" text="paddingRight" textAlign="right" height="40"/> |
| <mx:TextInput id="halotiTypeLeft" styleName="myStyleLeft" text="paddingLeft" height="40"/> |
| <mx:TextInput id="halotiTypeBottom" styleName="myStyleBottom" text="paddingBottom" height="40"/> |
| <mx:TextInput id="halotiTypeTop" styleName="myStyleTop" text="paddingTop" height="40"/> |
| </s:VGroup> |
| <s:VGroup id="halostiArea"> |
| <s:Label text="Halo TextArea type selector"/> |
| <mx:TextArea text="no padding" height="40"/> |
| <mx:TextArea id="halotaTypeRight" styleName="myStyleRight" text="paddingRight" textAlign="right" height="40"/> |
| <mx:TextArea id="halotaTypeLeft" styleName="myStyleLeft" text="paddingLeft" height="40"/> |
| <mx:TextArea id="halotaTypeBottom" styleName="myStyleBottom" text="paddingBottom" height="40"/> |
| <mx:TextArea id="halotaTypeTop" styleName="myStyleTop" text="paddingTop" height="40"/> |
| </s:VGroup> |
| </s:HGroup> |
| </s:Application> |