flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject svn commit: r1351936 [15/22] - in /incubator/flex/trunk: ./ frameworks/javascript/ frameworks/projects/flash-integration/ samples/themes/arcade/ samples/themes/arcade/src/ samples/themes/arcade/src/assets/ samples/themes/cobalt/ samples/themes/graphite...
Date Wed, 20 Jun 2012 05:01:26 GMT
Added: incubator/flex/trunk/samples/themes/graphite/src/assets/Tree_folderOpenIcon.fxg
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/samples/themes/graphite/src/assets/Tree_folderOpenIcon.fxg?rev=1351936&view=auto
==============================================================================
--- incubator/flex/trunk/samples/themes/graphite/src/assets/Tree_folderOpenIcon.fxg (added)
+++ incubator/flex/trunk/samples/themes/graphite/src/assets/Tree_folderOpenIcon.fxg Wed Jun
20 05:01:10 2012
@@ -0,0 +1,169 @@
+<?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.
+
+-->
+<Graphic flm:originalName="Glyphs/Tree/Tree_folderOpenIcon" version="2.0" afx:className="Tree_folderOpenIcon"
afx:baseClassName="flash.display.Sprite" xmlns:afx="http://ns.apache.org/flex/2012" xmlns:flm="http://ns.adobe.com/flame/2008"
xmlns="http://ns.adobe.com/fxg/2008">
+  <Group>
+    <Group aaa:locked="true" aaa:type="layer" aaa:userLabel="bounds" xmlns:aaa="http://ns.adobe.com/fxg/2008/dt">
+      <Path data="M16 0 16 16 0 16 0 0 16 0">
+        <fill>
+          <SolidColor color="#FF0000" alpha="0"/>
+        </fill>
+      </Path>
+    </Group>
+    <Group aaa:type="layer" aaa:userLabel="icon" xmlns:aaa="http://ns.adobe.com/fxg/2008/dt">
+      <Group>
+        <Path data="M8 2 8 4 15 4 1 13 1 4 2 4 2 2 8 2">
+          <fill>
+            <SolidColor color="#FFFFFF" alpha="0.35294119"/>
+          </fill>
+        </Path>
+        <Group>
+          <Path data="M3 5.05 3 3.05 9 3.05 9 5.05 15 5.05 14 14.05 2 14.05 2 5.05 3 5.05">
+            <fill>
+              <SolidColor alpha="0.2"/>
+            </fill>
+          </Path>
+        </Group>
+        <Group>
+          <Path data="M2 4 2 2 8 2 8 4 14 4 14 13 1 13 1 4 2 4">
+            <fill>
+              <LinearGradient x="8" y="2" scaleX="13" rotation="90">
+                <GradientEntry ratio="0" color="#4D4D4D"/>
+                <GradientEntry ratio="1" color="#333333"/>
+              </LinearGradient>
+            </fill>
+          </Path>
+        </Group>
+        <Group>
+          <Path data="M13 12 2 12 2 5 3 5 3 3 7 3 7 5 13 5 13 12">
+            <fill>
+              <SolidColor color="#999999"/>
+            </fill>
+          </Path>
+        </Group>
+        <Group>
+          <Path data="M14 4.05 1 13 1 4 2 4 2 2 8 2 8 4.05 14 4.05">
+            <fill>
+              <SolidColor color="#FFFFFF" alpha="0.35294119"/>
+            </fill>
+          </Path>
+        </Group>
+      </Group>
+      <Group>
+        <Path data="M10.55 13 10.55 6 11.65 6 11.65 13 10.55 13">
+          <fill>
+            <LinearGradient x="10" y="2" scaleX="13" rotation="90">
+              <GradientEntry ratio="0" color="#4D4D4D"/>
+              <GradientEntry ratio="1" color="#333333"/>
+            </LinearGradient>
+          </fill>
+        </Path>
+        <Path data="M11.65 13 11.65 6 16 6 14 13 11.65 13">
+          <fill>
+            <LinearGradient x="8" y="2" scaleX="13" rotation="90">
+              <GradientEntry ratio="0" color="#4D4D4D"/>
+              <GradientEntry ratio="1" color="#333333"/>
+            </LinearGradient>
+          </fill>
+        </Path>
+        <Path data="M8.85 6 8.85 13 1 13 3 6 8.85 6">
+          <fill>
+            <LinearGradient x="9" y="2" scaleX="13" rotation="90">
+              <GradientEntry ratio="0" color="#4D4D4D"/>
+              <GradientEntry ratio="1" color="#333333"/>
+            </LinearGradient>
+          </fill>
+        </Path>
+        <Path data="M8.85 13 8.85 6 10.55 6 10.55 13 8.85 13">
+          <fill>
+            <LinearGradient x="11" y="2" scaleX="13" rotation="90">
+              <GradientEntry ratio="0" color="#4D4D4D"/>
+              <GradientEntry ratio="1" color="#333333"/>
+            </LinearGradient>
+          </fill>
+        </Path>
+      </Group>
+      <Group>
+        <Path data="M10.4 12 10.4 7 14.5 7 13.05 12 10.4 12">
+          <fill>
+            <LinearGradient x="7.85" y="3" scaleX="11" rotation="90">
+              <GradientEntry ratio="0" color="#808080"/>
+              <GradientEntry ratio="1" color="#BFBFBF"/>
+            </LinearGradient>
+          </fill>
+        </Path>
+        <Path data="M10.4 12 9.3 12 9.3 7 10.4 7 10.4 12">
+          <fill>
+            <LinearGradient x="8.5" y="3" scaleX="11" rotation="90">
+              <GradientEntry ratio="0" color="#808080"/>
+              <GradientEntry ratio="1" color="#BFBFBF"/>
+            </LinearGradient>
+          </fill>
+        </Path>
+        <Path data="M5.6 7 5.6 12 2.475 12 3.925 7 5.6 7">
+          <fill>
+            <LinearGradient x="8.2" y="3" scaleX="11" rotation="90">
+              <GradientEntry ratio="0" color="#808080"/>
+              <GradientEntry ratio="1" color="#BFBFBF"/>
+            </LinearGradient>
+          </fill>
+        </Path>
+        <Path data="M9.3 7 9.3 12 7.6 12 7.6 7 9.3 7">
+          <fill>
+            <LinearGradient x="7.5" y="3" scaleX="11" rotation="90">
+              <GradientEntry ratio="0" color="#808080"/>
+              <GradientEntry ratio="1" color="#BFBFBF"/>
+            </LinearGradient>
+          </fill>
+        </Path>
+        <Path data="M5.6 12 5.6 7 7.4 7 7.4 12 5.6 12">
+          <fill>
+            <LinearGradient x="5.5" y="3" scaleX="11" rotation="90">
+              <GradientEntry ratio="0" color="#808080"/>
+              <GradientEntry ratio="1" color="#BFBFBF"/>
+            </LinearGradient>
+          </fill>
+        </Path>
+        <Path data="M7.6 7 7.6 12 7.4 12 7.4 7 7.6 7">
+          <fill>
+            <LinearGradient x="6.5" y="3" scaleX="11" rotation="90">
+              <GradientEntry ratio="0" color="#808080"/>
+              <GradientEntry ratio="1" color="#BFBFBF"/>
+            </LinearGradient>
+          </fill>
+        </Path>
+      </Group>
+      <Group>
+        <Path data="M3 6.05 15 6.05 1 13 3 6.05">
+          <fill>
+            <SolidColor color="#FFFFFF" alpha="0.35294119"/>
+          </fill>
+        </Path>
+      </Group>
+      <Group>
+        <Path data="M3.975 7 14.475 7 14.175 8 3.675 8 3.975 7">
+          <fill>
+            <SolidColor color="#CCCCCC"/>
+          </fill>
+        </Path>
+      </Group>
+    </Group>
+    <Group aaa:type="layer" aaa:userLabel="Layer 5" xmlns:aaa="http://ns.adobe.com/fxg/2008/dt"/>
+  </Group>
+</Graphic>
\ No newline at end of file

Propchange: incubator/flex/trunk/samples/themes/graphite/src/assets/Tree_folderOpenIcon.fxg
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/flex/trunk/samples/themes/graphite/src/assets/flex_skins.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/samples/themes/graphite/src/assets/flex_skins.as?rev=1351936&view=auto
==============================================================================
--- incubator/flex/trunk/samples/themes/graphite/src/assets/flex_skins.as (added)
+++ incubator/flex/trunk/samples/themes/graphite/src/assets/flex_skins.as Wed Jun 20 05:01:10
2012
@@ -0,0 +1,213 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package {
+import flash.display.Sprite;
+public class flex_skins extends Sprite
+{
+	public function flex_skins(){}
+
+private var assets:Array = [
+Button_selectedDisabledSkin,
+AccordionHeader_selectedOverSkin,
+AccordionHeader_selectedDownSkin,
+AccordionHeader_selectedDisabledSkin,
+ScrollTrack_Skin,
+ProgressTrackSkin,
+BackgroundImage,
+Tree_disclosureClosedIcon,
+Tree_disclosureOpenIcon,
+Tree_folderClosedIcon,
+Tree_folderOpenIcon,
+Tree_defaultLeafIcon,
+Menu_branchDisabledIcon,
+Menu_branchIcon,
+Menu_checkDisabledIcon,
+Menu_checkIcon,
+Menu_radioDisabledIcon,
+Menu_radioIcon,
+Menu_separatorSkin,
+DataGrid_headerSeparatorSkin,
+DataGrid_sortArrowSkin,
+DataGrid_columnResizeSkin,
+DataGrid_stretchCursor,
+DateChooser_prevMonthDownSkin,
+DateChooser_prevMonthOverSkin,
+DateChooser_nextMonthDownSkin,
+DateChooser_nextMonthOverSkin,
+DateChooser_todayIndicatorSkin,
+DateChooser_prevMonthUpSkin,
+DateChooser_nextMonthUpSkin,
+DateField_disabledSkin,
+DateField_downSkin,
+DateField_overSkin,
+DateField_upSkin,
+BusyCursor,
+DividedBox_dividerSkin,
+DividedBox_horizontalCursor,
+DividedBox_verticalCursor,
+DragManager_linkCursor,
+DragManager_moveCursor,
+DragManager_rejectCursor,
+DragManager_copyCursor,
+FormItem_indicatorSkin,
+ProgressTrackSkin,
+ProgressBarSkin,
+ProgressIndeterminateSkin,
+ScrollTrack_disabledSkin,
+ScrollTrack_Skin,
+ScrollArrowUp_downSkin,
+ScrollArrowDown_downSkin,
+ScrollThumb_downSkin,
+ScrollArrowDown_overSkin,
+ScrollThumb_overSkin,
+ScrollArrowUp_overSkin,
+Panel_borderSkin,
+Panel_closeButtonUpSkin,
+Panel_closeButtonOverSkin,
+Panel_closeButtonDownSkin,
+Panel_closeButtonDisabledSkin,
+ComboBoxArrow_editableUpSkin,
+ComboBoxArrow_editableOverSkin,
+ComboBoxArrow_editableDownSkin,
+ComboBoxArrow_editableDisabledSkin,
+ButtonBar_firstUpSkin,
+ButtonBar_buttonUpSkin,
+ButtonBar_lastUpSkin,
+ButtonBar_firstOverSkin,
+ButtonBar_buttonOverSkin,
+ButtonBar_lastOverSkin,
+ButtonBar_firstDownSkin,
+ButtonBar_buttonDownSkin,
+ButtonBar_lastDownSkin,
+ButtonBar_firstSelectedUpSkin,
+ButtonBar_buttonSelectedUpSkin,
+ButtonBar_lastSelectedUpSkin,
+SliderThumb_upSkin,
+SliderThumb_overSkin,
+SliderThumb_downSkin,
+SliderThumb_disabledSkin,
+SliderTrack_Skin,
+SliderHighlight_Skin,
+Button_upSkin,
+Button_overSkin,
+Button_downSkin,
+Button_disabledSkin,
+Tab_upSkin,
+Tab_overSkin,
+Tab_downSkin,
+TabSelected_upSkin,
+AccordionHeader_upSkin,
+AccordionHeader_overSkin,
+AccordionHeader_downSkin,
+PopUpButton_upSkin,
+RadioButton_upIcon,
+RadioButton_overIcon,
+RadioButton_downIcon,
+RadioButton_disabledIcon,
+RadioButtonSelected_upIcon,
+RadioButtonSelected_overIcon,
+RadioButtonSelected_downIcon,
+RadioButtonSelected_disabledIcon,
+CheckBox_upIcon,
+CheckBox_overIcon,
+CheckBox_downIcon,
+CheckBox_disabledIcon,
+CheckBox_selectedUpIcon,
+CheckBox_selectedOverIcon,
+CheckBox_selectedDownIcon,
+CheckBox_selectedDisabledIcon,
+AccordionHeader_disabledSkin,
+ButtonBar_firstDisabledSkin,
+ButtonBar_buttonDisabledSkin,
+ButtonBar_lastDisabledSkin,
+ButtonBar_firstSelectedDisabledSkin,
+ButtonBar_buttonSelectedDisabledSkin,
+ButtonBar_lastSelectedDisabledSkin,
+NumericStepperDownArrow_upSkin,
+NumericStepperUpArrow_overSkin,
+NumericStepperDownArrow_overSkin,
+NumericStepperUpArrow_downSkin,
+NumericStepperDownArrow_downSkin,
+NumericStepperUpArrow_disabledSkin,
+NumericStepperDownArrow_disabledSkin,
+ScrollArrowDown_disabledSkin,
+ScrollArrowUp_disabledSkin,
+Tab_disabledSkin,
+TabSelected_disabledSkin,
+ScrollBar_thumbIcon,
+DataGrid_columnDropIndicatorSkin,
+DateChooser_prevMonthDisabledSkin,
+DateChooser_nextMonthDisabledSkin,
+DateChooser_nextYearUpSkin,
+DateChooser_prevYearUpSkin,
+DateChooser_prevYearOverSkin,
+DateChooser_nextYearOverSkin,
+DateChooser_nextYearDownSkin,
+DateChooser_prevYearDownSkin,
+DateChooser_prevYearDisabledSkin,
+DateChooser_nextYearDisabledSkin,
+DateChooser_rollOverIndicatorSkin,
+DateChooser_selectionIndicatorSkin,
+Loader_brokenImageSkin,
+PopUpButton_disabledSkin,
+PopUpButton_overSkin,
+PopUpButton_popUpDownSkin,
+ScrollBar_thumbIcon,
+MenuBar_backgroundSkin,
+MenuBar_itemUpSkin,
+MenuBar_itemOverSkin,
+MenuBar_itemDownSkin,
+ToolTip_borderSkin,
+NumericStepperUpArrow_upSkin,
+PopUpButton_popUpOverSkin,
+PopUpButton_downSkin,
+ComboBoxArrow_upSkin,
+ComboBoxArrow_overSkin,
+ComboBoxArrow_downSkin,
+ComboBoxArrow_disabledSkin,
+ScrollTrack_Skin,
+ScrollArrowUp_upSkin,
+ScrollThumb_upSkin,
+ScrollArrowDown_upSkin,
+ScrollBar_thumbIcon,
+AccordionHeader_selectedUpSkin,
+LinkButton_overSkin,
+LinkButton_downSkin,
+LinkButton_upSkin,
+LinkButton_disabledSkin,
+ColorPicker_upSkin,
+ColorPicker_overSkin,
+ColorPicker_downSkin,
+ColorPicker_disabledSkin,
+DragManager_defaultDragImageSkin,
+Panel_controlBarBackgroundSkin,
+TextInput_borderSkin,
+TextInput_focusSkin,
+TextArea_borderSkin,
+TextArea_focusSkin,
+Title_backgroundSkin,
+Button_selectedUpSkin,
+Button_selectedOverSkin,
+Button_selectedDownSkin,
+Panel_controlBarBackgroundSkin,
+DateChooser_backgroundSkin,
+RichTextEditor_barBackgroundSkin
+];
+}
+}

Propchange: incubator/flex/trunk/samples/themes/graphite/src/assets/flex_skins.as
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/flex/trunk/samples/themes/zen/build.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/samples/themes/zen/build.xml?rev=1351936&r1=1351935&r2=1351936&view=diff
==============================================================================
--- incubator/flex/trunk/samples/themes/zen/build.xml (original)
+++ incubator/flex/trunk/samples/themes/zen/build.xml Wed Jun 20 05:01:10 2012
@@ -23,6 +23,9 @@
 
 	<property name="FLEX_HOME" location="${basedir}/../../.."/>
 	
+    <property file="${FLEX_HOME}/env.properties"/>
+    <property environment="env"/>
+
 	<property name="THEME_NAME" value="zen" />
 
 	<property file="${FLEX_HOME}/build.properties"/>
@@ -38,6 +41,9 @@
 				<include name="${THEME_NAME}.swc"/>
 				<include name="${THEME_NAME}.swc.incr"/>
 			</fileset>
+			<fileset dir="${basedir}/src/assets">
+				<include name="flex_skins.swf"/>
+			</fileset>
 		</delete>
 	</target>
 
@@ -51,6 +57,20 @@
 				<pathelement path="${FLEX_HOME}/lib/flexTasks.jar"/>
 			</classpath>
 		</taskdef>
+		<!-- Compile flex_skins.swf from fxg files -->		
+		<mxmlc fork="true"
+               file="${basedir}/src/assets/flex_skins.as"
+			   output="${basedir}/src/assets/flex_skins.swf">
+            <!-- If you change this, update ${local.playerglobal.version} above. -->
+            <target-player>10</target-player>
+			<jvmarg line="${compc.jvm.args}"/>
+			<source-path path-element="${basedir}/src/assets"/>
+			<library-path/>
+            <external-library-path dir="${env.PLAYERGLOBAL_HOME}">
+                <include name="${playerglobal.version}/playerglobal.swc"/>
+            </external-library-path>
+			<locale/>
+		</mxmlc>
 		<!--
 			This project builds a theme SWC containing skin classes.
 			It has no MXML tags and therefore no manifest.
@@ -69,13 +89,15 @@
 			<source-path path-element="${basedir}/src"/>
 			<library-path/>
             <external-library-path dir="${FLEX_HOME}/frameworks/libs">
-                <include name="player/${local.playerglobal.version}/playerglobal.swc"/>
 				<include name="framework.swc"/>
 				<include name="spark.swc"/>
                 <include name="textLayout.swc"/>
                 <include name="osmf.swc"/>
 				<include name="mx/mx.swc"/>
 			</external-library-path>
+            <external-library-path dir="${env.PLAYERGLOBAL_HOME}">
+                <include name="${playerglobal.version}/playerglobal.swc"/>
+            </external-library-path>
 			<include-file name="defaults.css" path="${basedir}/src/defaults.css"/>
 			<include-file name="assets/flex_skins.swf" path="${basedir}/src/assets/flex_skins.swf"/>
 			<include-file name="preview.jpg" path="${basedir}/src/preview.jpg"/>

Added: incubator/flex/trunk/samples/themes/zen/src/assets/AccordionHeader_skin.fxg
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/samples/themes/zen/src/assets/AccordionHeader_skin.fxg?rev=1351936&view=auto
==============================================================================
--- incubator/flex/trunk/samples/themes/zen/src/assets/AccordionHeader_skin.fxg (added)
+++ incubator/flex/trunk/samples/themes/zen/src/assets/AccordionHeader_skin.fxg Wed Jun 20
05:01:10 2012
@@ -0,0 +1,46 @@
+<?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.
+
+-->
+<Graphic flm:originalName="AccordionHeader/AccordionHeader_skin" version="2.0" afx:className="AccordionHeader_skin"
afx:baseClassName="flash.display.Sprite" xmlns:afx="http://ns.apache.org/flex/2012" xmlns:flm="http://ns.adobe.com/flame/2008"
xmlns="http://ns.adobe.com/fxg/2008">
+  <Group>
+    <Group aaa:type="layer" aaa:userLabel="bg" xmlns:aaa="http://ns.adobe.com/fxg/2008/dt">
+      <Path data="M152 22 0 22 0 0 152 0 152 22">
+        <fill>
+          <LinearGradient x="115" y="21" scaleX="20" rotation="270">
+            <GradientEntry ratio="0" color="#82826B"/>
+            <GradientEntry ratio="1" color="#82826B"/>
+          </LinearGradient>
+        </fill>
+      </Path>
+    </Group>
+    <Group aaa:type="layer" aaa:userLabel="fill" xmlns:aaa="http://ns.adobe.com/fxg/2008/dt">
+      <Path data="M151 21 1 21 1 1 151 1 151 21">
+        <fill>
+          <LinearGradient x="137.5" y="1" scaleX="19" rotation="90">
+            <GradientEntry ratio="0" color="#E5E5CD"/>
+            <GradientEntry ratio="0.074509804" color="#C2BC97"/>
+            <GradientEntry ratio="1" color="#9E997B"/>
+          </LinearGradient>
+        </fill>
+      </Path>
+    </Group>
+    <Group aaa:type="layer" aaa:userLabel="transitions" xmlns:aaa="http://ns.adobe.com/fxg/2008/dt"/>
+    <Group aaa:type="layer" aaa:userLabel="states" xmlns:aaa="http://ns.adobe.com/fxg/2008/dt"/>
+  </Group>
+</Graphic>
\ No newline at end of file

Propchange: incubator/flex/trunk/samples/themes/zen/src/assets/AccordionHeader_skin.fxg
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message