Skip to content

Commit f0b4615

Browse files
author
Carol Frampton
committed
Commit donation of samples directory from Adobe. There are a few fla/swf asset files which need to be replaced.
git-svn-id: https://svn.apache.org/repos/asf/incubator/flex/trunk@1350373 13f79535-47bb-0310-9956-ffa450edef68
1 parent 9400cc7 commit f0b4615

File tree

520 files changed

+39489
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

520 files changed

+39489
-0
lines changed

samples/themes/README.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
The themes contained in this folder are to be considered samples only
2+
and are not certified as being ready for production applications. It is
3+
recommended that you test your UI thoroughly when using these themes to
4+
make sure that everything appears correctly, and you are encouraged to
5+
make changes directly to the theme as necessary. If you find your
6+
changes would be useful to other users, please contribute them back as
7+
discussed at http://opensource.adobe.com/flex.

samples/themes/arcade/build.xml

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
4+
Licensed to the Apache Software Foundation (ASF) under one or more
5+
contributor license agreements. See the NOTICE file distributed with
6+
this work for additional information regarding copyright ownership.
7+
The ASF licenses this file to You under the Apache License, Version 2.0
8+
(the "License"); you may not use this file except in compliance with
9+
the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
19+
-->
20+
21+
22+
<project name="arcade" default="main" basedir=".">
23+
24+
<property name="FLEX_HOME" location="${basedir}/../../.."/>
25+
26+
<property name="THEME_NAME" value="arcade" />
27+
28+
<property file="${FLEX_HOME}/build.properties"/>
29+
30+
<!-- If you change this, update <target-player/> in the <compc/> tasks. -->
31+
<property name="local.playerglobal.version" value="11.1"/>
32+
33+
<target name="main" depends="clean,compile" description="Clean build of ${THEME_NAME}.swc"/>
34+
35+
<target name="clean">
36+
<delete failonerror="false">
37+
<fileset dir="${basedir}">
38+
<include name="${THEME_NAME}.swc"/>
39+
<include name="${THEME_NAME}.swc.incr"/>
40+
</fileset>
41+
</delete>
42+
</target>
43+
44+
<target name="compile" description="Compiles ${THEME_NAME}.swc">
45+
<echo message="Compiling samples/themes/${THEME_NAME}/${THEME_NAME}.swc"/>
46+
<!-- Load the <compc> task. We can't do this at the <project> level -->
47+
<!-- because targets that run before flexTasks.jar gets built would fail. Classpath is set up to work in dev and released environments -->
48+
<taskdef resource="flexTasks.tasks">
49+
<classpath>
50+
<pathelement path="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
51+
<pathelement path="${FLEX_HOME}/lib/flexTasks.jar"/>
52+
</classpath>
53+
</taskdef>
54+
<!--
55+
This project builds a theme SWC containing skin classes.
56+
It has no MXML tags and therefore no manifest.
57+
Link in all classes.
58+
Compile against all of the SDK libs externally.
59+
Link in accessibility support.
60+
Include various CSS and asset files in the SWC.
61+
Don't put any resources into the SWC. (The classes don't require any.)
62+
-->
63+
<compc fork="true"
64+
output="${basedir}/${THEME_NAME}.swc">
65+
<!-- If you change this, update ${local.playerglobal.version} above. -->
66+
<target-player>10</target-player>
67+
<jvmarg line="${compc.jvm.args}"/>
68+
<include-classes>ArcadeClasses</include-classes>
69+
<source-path path-element="${basedir}/src"/>
70+
<library-path />
71+
<external-library-path dir="${FLEX_HOME}/frameworks/libs">
72+
<include name="player/${local.playerglobal.version}/playerglobal.swc"/>
73+
<include name="framework.swc"/>
74+
<include name="spark.swc"/>
75+
<include name="textLayout.swc"/>
76+
<include name="osmf.swc"/>
77+
<include name="mx/mx.swc"/>
78+
</external-library-path>
79+
<include-file name="defaults.css" path="${basedir}/src/defaults.css"/>
80+
<include-file name="assets/flex_skins.swf" path="${basedir}/src/assets/flex_skins.swf"/>
81+
<include-file name="preview.jpg" path="${basedir}/src/preview.jpg"/>
82+
<include-file name="metadata.xml" path="${basedir}/src/metadata.xml"/>
83+
<locale/>
84+
<accessible>true</accessible>
85+
</compc>
86+
</target>
87+
88+
</project>
+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
////////////////////////////////////////////////////////////////////////////////
2+
//
3+
// Licensed to the Apache Software Foundation (ASF) under one or more
4+
// contributor license agreements. See the NOTICE file distributed with
5+
// this work for additional information regarding copyright ownership.
6+
// The ASF licenses this file to You under the Apache License, Version 2.0
7+
// (the "License"); you may not use this file except in compliance with
8+
// the License. You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
////////////////////////////////////////////////////////////////////////////////
19+
20+
package
21+
{
22+
23+
/**
24+
* @private
25+
* In some projects, this class is used to link additional classes
26+
* into the SWC beyond those that are found by dependency analysis
27+
* starting from the classes specified in manifest.xml.
28+
* This project has no manifest file (because there are no MXML tags
29+
* corresponding to any classes in it) so all the classes linked into
30+
* the SWC are found by a dependency analysis starting from the classes
31+
* listed here.
32+
*/
33+
internal class ArcadeClasses
34+
{
35+
36+
import arcade.skins.ApplicationSkin; ApplicationSkin;
37+
import arcade.skins.BorderSkin; BorderSkin;
38+
import arcade.skins.ButtonBarFirstButtonSkin; ButtonBarFirstButtonSkin;
39+
import arcade.skins.ButtonBarLastButtonSkin; ButtonBarLastButtonSkin;
40+
import arcade.skins.ButtonBarMiddleButtonSkin; ButtonBarMiddleButtonSkin;
41+
import arcade.skins.ButtonBarSkin; ButtonBarSkin;
42+
import arcade.skins.ButtonSkin; ButtonSkin;
43+
import arcade.skins.CheckBoxSkin; CheckBoxSkin;
44+
import arcade.skins.ComboBoxButtonSkin; ComboBoxButtonSkin;
45+
import arcade.skins.ComboBoxSkin; ComboBoxSkin;
46+
import arcade.skins.ComboBoxTextInputSkin; ComboBoxTextInputSkin;
47+
import arcade.skins.DefaultButtonSkin; DefaultButtonSkin;
48+
import arcade.skins.DefaultComplexItemRenderer; DefaultComplexItemRenderer;
49+
import arcade.skins.DefaultItemRenderer; DefaultItemRenderer;
50+
import arcade.skins.DropDownListButtonSkin; DropDownListButtonSkin;
51+
import arcade.skins.DropDownListSkin; DropDownListSkin;
52+
import arcade.skins.ErrorSkin; ErrorSkin;
53+
import arcade.skins.FocusSkin; FocusSkin;
54+
import arcade.skins.HScrollBarSkin; HScrollBarSkin;
55+
import arcade.skins.HScrollBarThumbSkin; HScrollBarThumbSkin;
56+
import arcade.skins.HScrollBarTrackSkin; HScrollBarTrackSkin;
57+
import arcade.skins.HSliderSkin; HSliderSkin;
58+
import arcade.skins.HSliderThumbSkin; HSliderThumbSkin;
59+
import arcade.skins.HSliderTrackSkin; HSliderTrackSkin;
60+
import arcade.skins.ListSkin; ListSkin;
61+
import arcade.skins.NumericStepperSkin; NumericStepperSkin;
62+
import arcade.skins.NumericStepperTextInputSkin; NumericStepperTextInputSkin;
63+
import arcade.skins.PanelSkin; PanelSkin;
64+
import arcade.skins.RadioButtonSkin; RadioButtonSkin;
65+
import arcade.skins.ScrollBarDownButtonSkin; ScrollBarDownButtonSkin;
66+
import arcade.skins.ScrollBarLeftButtonSkin; ScrollBarLeftButtonSkin;
67+
import arcade.skins.ScrollBarRightButtonSkin; ScrollBarRightButtonSkin;
68+
import arcade.skins.ScrollBarUpButtonSkin; ScrollBarUpButtonSkin;
69+
import arcade.skins.ScrollerSkin; ScrollerSkin;
70+
import arcade.skins.SkinnableContainerSkin; SkinnableContainerSkin;
71+
import arcade.skins.SkinnableDataContainerSkin; SkinnableDataContainerSkin;
72+
import arcade.skins.SpinnerDecrButtonSkin; SpinnerDecrButtonSkin;
73+
import arcade.skins.SpinnerIncrButtonSkin; SpinnerIncrButtonSkin;
74+
import arcade.skins.SpinnerSkin; SpinnerSkin;
75+
import arcade.skins.TabBarButtonSkin; TabBarButtonSkin;
76+
import arcade.skins.TabBarSkin; TabBarSkin;
77+
import arcade.skins.TextAreaBorderSkin; TextAreaBorderSkin;
78+
import arcade.skins.TextAreaSkin; TextAreaSkin;
79+
import arcade.skins.TextInputBorderSkin; TextInputBorderSkin;
80+
import arcade.skins.TextInputSkin; TextInputSkin;
81+
import arcade.skins.TitleWindowCloseButtonSkin; TitleWindowCloseButtonSkin;
82+
import arcade.skins.TitleWindowSkin; TitleWindowSkin;
83+
import arcade.skins.ToggleButtonSkin; ToggleButtonSkin;
84+
import arcade.skins.VScrollBarSkin; VScrollBarSkin;
85+
import arcade.skins.VScrollBarThumbSkin; VScrollBarThumbSkin;
86+
import arcade.skins.VScrollBarTrackSkin; VScrollBarTrackSkin;
87+
import arcade.skins.VSliderSkin; VSliderSkin;
88+
import arcade.skins.VSliderThumbSkin; VSliderThumbSkin;
89+
import arcade.skins.VSliderTrackSkin; VSliderTrackSkin;
90+
import arcade.skins.VideoPlayerSkin; VideoPlayerSkin;
91+
92+
}
93+
94+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
4+
Licensed to the Apache Software Foundation (ASF) under one or more
5+
contributor license agreements. See the NOTICE file distributed with
6+
this work for additional information regarding copyright ownership.
7+
The ASF licenses this file to You under the Apache License, Version 2.0
8+
(the "License"); you may not use this file except in compliance with
9+
the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
19+
-->
20+
21+
22+
<!--- The default skin class for the Spark Application component. -->
23+
<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
24+
alpha.disabled="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+
<s:states>
36+
<s:State name="normal" />
37+
<s:State name="disabled" />
38+
<s:State name="normalWithControlBar" />
39+
<s:State name="disabledWithControlBar" />
40+
</s:states>
41+
42+
<!-- fill -->
43+
<!---
44+
A rectangle with a solid color fill that forms the background of the application.
45+
The color of the fill is set to the Application's backgroundColor property.
46+
-->
47+
<s:Rect id="backgroundRect" left="0" right="0" top="0" bottom="0" >
48+
<s:fill>
49+
<s:LinearGradient rotation="90">
50+
<s:GradientEntry color="0x333333"
51+
/>
52+
<s:GradientEntry color="0x000000"
53+
/>
54+
</s:LinearGradient>
55+
</s:fill>
56+
</s:Rect>
57+
58+
<s:Group left="0" right="0" top="0" bottom="0">
59+
<s:layout>
60+
<s:VerticalLayout gap="0" horizontalAlign="justify" />
61+
</s:layout>
62+
63+
<!---
64+
Application Control Bar
65+
-->
66+
<s:Group id="topGroup" minWidth="0" minHeight="0"
67+
includeIn="normalWithControlBar, disabledWithControlBar" >
68+
69+
<!-- layer 0: control bar highlight -->
70+
<s:Rect left="0" right="0" top="0" bottom="1" >
71+
<s:stroke>
72+
<s:LinearGradientStroke rotation="90" weight="1">
73+
<s:GradientEntry color="0x444444" />
74+
<s:GradientEntry color="0x282828" />
75+
</s:LinearGradientStroke>
76+
</s:stroke>
77+
</s:Rect>
78+
79+
<!-- layer 1: control bar fill -->
80+
<s:Rect left="1" right="1" top="1" bottom="2" >
81+
<s:fill>
82+
<s:SolidColor color="0x111111"/>
83+
</s:fill>
84+
</s:Rect>
85+
86+
<!-- layer 2: control bar divider line -->
87+
<s:Rect left="0" right="0" bottom="0" height="1" alpha="0.55">
88+
<s:fill>
89+
<s:SolidColor color="0xCCCCCC" />
90+
</s:fill>
91+
</s:Rect>
92+
93+
<!-- layer 3: control bar -->
94+
<!--- @copy spark.components.Application#controlBarGroup -->
95+
<s:Group id="controlBarGroup" left="0" right="0" top="1" bottom="1" minWidth="0" minHeight="0">
96+
<s:layout>
97+
<s:HorizontalLayout paddingLeft="10" paddingRight="10" paddingTop="7" paddingBottom="7" gap="10" />
98+
</s:layout>
99+
</s:Group>
100+
</s:Group>
101+
102+
<!--- @copy spark.components.SkinnableContainer#contentGroup -->
103+
<s:Group id="contentGroup" width="100%" height="100%" minWidth="0" minHeight="0" />
104+
105+
</s:Group>
106+
107+
</s:Skin>

0 commit comments

Comments
 (0)