Advertisement
Guest User

MyAppSkin.mxml custom skin for dotnet

a guest
Jul 10th, 2011
2,237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <!--
  4.  
  5.     ADOBE SYSTEMS INCORPORATED
  6.     Copyright 2008 Adobe Systems Incorporated
  7.     All Rights Reserved.
  8.  
  9.     NOTICE: Adobe permits you to use, modify, and distribute this file
  10.     in accordance with the terms of the license agreement accompanying it.
  11.  
  12. -->
  13.  
  14. <!--- The default skin class for the Spark Application component.
  15.        
  16.        @see spark.components.Application
  17.        
  18.       @langversion 3.0
  19.       @playerversion Flash 10
  20.       @playerversion AIR 1.5
  21.       @productversion Flex 4
  22. -->
  23. <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
  24.         xmlns:fb="http://ns.adobe.com/flashbuilder/2009" alpha.disabled="0.5" alpha.disabledWithControlBar="0.5">
  25.  
  26.     <fx:Metadata>
  27.     <![CDATA[
  28.         /**
  29.          * A strongly typed property that references the component to which this skin is applied.
  30.          */
  31.         [HostComponent("spark.components.Application")]
  32.     ]]>
  33.     </fx:Metadata>
  34.    
  35.     <fx:Script fb:purpose="styling">
  36.         <![CDATA[
  37.             /**
  38.              *  @private
  39.              */
  40.             override protected function updateDisplayList(unscaledWidth:Number,
  41.                 unscaledHeight:Number) : void
  42.             {
  43.                 super.updateDisplayList(unscaledWidth, unscaledHeight);
  44.             }
  45.         ]]>
  46.     </fx:Script>
  47.    
  48.     <s:states>
  49.         <s:State name="normal" />
  50.         <s:State name="disabled" />
  51.         <s:State name="normalWithControlBar" />
  52.         <s:State name="disabledWithControlBar" />
  53.     </s:states>
  54.    
  55.     <!-- fill -->
  56.     <!---
  57.         A rectangle with a solid color fill that forms the background of the application.
  58.         The color of the fill is set to the Application's backgroundColor property.
  59.    -->
  60.     <s:Group id="backgroundRect">
  61.         <s:BitmapImage source="@Embed('beach.jpg')" left="0" right="0" top="0" bottom="0" scaleMode="stretch"/>
  62.     </s:Group>
  63.        
  64.    <s:Group left="0" right="0" top="0" bottom="0">
  65.        <s:layout>
  66.            <s:VerticalLayout gap="0" horizontalAlign="justify" />
  67.        </s:layout>
  68.  
  69.        <!---
  70.            @private
  71.            Application Control Bar
  72.        -->
  73.        <s:Group id="topGroup" minWidth="0" minHeight="0"
  74.                    includeIn="normalWithControlBar, disabledWithControlBar" >
  75.  
  76.            <!-- layer 0: control bar highlight -->
  77.            <s:Rect left="0" right="0" top="0" bottom="1" >
  78.               <s:stroke>
  79.                    <s:LinearGradientStroke rotation="90" weight="1">
  80.                        <s:GradientEntry color="0xFFFFFF" />
  81.                        <s:GradientEntry color="0xD8D8D8" />
  82.                    </s:LinearGradientStroke>
  83.               </s:stroke>
  84.            </s:Rect>
  85.  
  86.            <!-- layer 1: control bar fill -->
  87.            <s:Rect left="1" right="1" top="1" bottom="2" >
  88.               <s:fill>
  89.                    <s:LinearGradient rotation="90">
  90.                        <s:GradientEntry color="0xEDEDED" />
  91.                        <s:GradientEntry color="0xCDCDCD" />
  92.                    </s:LinearGradient>
  93.               </s:fill>
  94.            </s:Rect>
  95.  
  96.            <!-- layer 2: control bar divider line -->
  97.            <s:Rect left="0" right="0" bottom="0" height="1" alpha="0.55">
  98.                <s:fill>
  99.                    <s:SolidColor color="0x000000" />
  100.                </s:fill>
  101.            </s:Rect>
  102.  
  103.            <!-- layer 3: control bar -->
  104.            <!--- @copy spark.components.Application#controlBarGroup -->
  105.            <s:Group id="controlBarGroup" left="0" right="0" top="1" bottom="1" minWidth="0" minHeight="0">
  106.                <s:layout>
  107.                    <s:HorizontalLayout paddingLeft="10" paddingRight="10" paddingTop="7" paddingBottom="7" gap="10" />
  108.                </s:layout>
  109.            </s:Group>
  110.        </s:Group>
  111.  
  112.        <!--- @copy spark.components.SkinnableContainer#contentGroup -->
  113.        <s:Group id="contentGroup" width="100%" height="100%" minWidth="0" minHeight="0" />
  114.  
  115.    </s:Group>
  116.  
  117. </s:Skin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement