Added build scripts and font licenses for FlatSpark
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/2fc9a8d5 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/2fc9a8d5 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/2fc9a8d5 Branch: refs/heads/iso7skins Commit: 2fc9a8d5b95c407763383e8e069109cb87922f4e Parents: 201d563 Author: Mahmoud Ali <aka...@apache.org> Authored: Wed Oct 15 21:32:35 2014 -0400 Committer: Mahmoud Ali <aka...@apache.org> Committed: Wed Oct 15 21:34:11 2014 -0400 ---------------------------------------------------------------------- frameworks/projects/flatspark/build.xml | 114 ++++++ .../projects/flatspark/compile-config.xml | 108 +++++ frameworks/projects/flatspark/defaults.css | 28 +- .../flatspark/src/FlatSparkSkinsClasses.as | 49 +++ .../src/assets/fonts/awesome/FontAwesome.otf | Bin 62856 -> 0 bytes .../src/assets/fonts/lato/Lato_Black.otf | Bin 47436 -> 0 bytes .../src/assets/fonts/lato/Lato_Black_Italic.otf | Bin 46100 -> 0 bytes .../src/assets/fonts/lato/Lato_Bold.otf | Bin 48800 -> 0 bytes .../src/assets/fonts/lato/Lato_Bold_Italic.otf | Bin 47364 -> 0 bytes .../src/assets/fonts/lato/Lato_Hairline.otf | Bin 46852 -> 0 bytes .../assets/fonts/lato/Lato_Hairline_Italic.otf | Bin 46568 -> 0 bytes .../src/assets/fonts/lato/Lato_Light.otf | Bin 47040 -> 0 bytes .../src/assets/fonts/lato/Lato_Light_Italic.otf | Bin 47060 -> 0 bytes .../src/assets/fonts/lato/Lato_Regular.otf | Bin 47088 -> 0 bytes .../assets/fonts/lato/Lato_Regular_Italic.otf | Bin 47356 -> 0 bytes .../flatspark/src/components/ButtonIcon.as | 41 -- .../flatspark/src/components/TextInputIcon.as | 35 -- .../flatspark/src/enums/BrandColorEnum.as | 30 -- .../flatspark/src/enums/ButtonColorEnum.as | 59 --- .../flatspark/src/enums/ButtonSizeEnum.as | 31 -- .../flatspark/src/enums/ColorSwatchEnum.as | 40 -- .../projects/flatspark/src/enums/SizeEnum.as | 32 -- .../flatspark/src/enums/TextInputSizeEnum.as | 30 -- .../assets/fonts/awesome/FontAwesome.otf | Bin 0 -> 62856 bytes .../src/flatspark/assets/fonts/awesome/OFL.txt | 94 +++++ .../flatspark/assets/fonts/lato/Lato_Black.otf | Bin 0 -> 47436 bytes .../assets/fonts/lato/Lato_Black_Italic.otf | Bin 0 -> 46100 bytes .../flatspark/assets/fonts/lato/Lato_Bold.otf | Bin 0 -> 48800 bytes .../assets/fonts/lato/Lato_Bold_Italic.otf | Bin 0 -> 47364 bytes .../assets/fonts/lato/Lato_Hairline.otf | Bin 0 -> 46852 bytes .../assets/fonts/lato/Lato_Hairline_Italic.otf | Bin 0 -> 46568 bytes .../flatspark/assets/fonts/lato/Lato_Light.otf | Bin 0 -> 47040 bytes .../assets/fonts/lato/Lato_Light_Italic.otf | Bin 0 -> 47060 bytes .../assets/fonts/lato/Lato_Regular.otf | Bin 0 -> 47088 bytes .../assets/fonts/lato/Lato_Regular_Italic.otf | Bin 0 -> 47356 bytes .../src/flatspark/assets/fonts/lato/OFL.txt | 94 +++++ .../src/flatspark/components/ButtonIcon.as | 41 ++ .../src/flatspark/components/TextInputIcon.as | 35 ++ .../src/flatspark/enums/BrandColorEnum.as | 30 ++ .../src/flatspark/enums/ButtonColorEnum.as | 59 +++ .../src/flatspark/enums/ButtonSizeEnum.as | 31 ++ .../src/flatspark/enums/ColorSwatchEnum.as | 40 ++ .../flatspark/src/flatspark/enums/SizeEnum.as | 32 ++ .../src/flatspark/enums/TextInputSizeEnum.as | 30 ++ .../itemRenderers/DefaultItemRenderer.mxml | 51 +++ .../src/flatspark/skins/AlertSkin.mxml | 230 +++++++++++ .../src/flatspark/skins/ButtonIconSkin.mxml | 191 +++++++++ .../src/flatspark/skins/ButtonSkin.mxml | 184 +++++++++ .../src/flatspark/skins/CheckBoxSkin.mxml | 136 +++++++ .../src/flatspark/skins/ComboBoxButtonSkin.mxml | 108 +++++ .../src/flatspark/skins/ComboBoxSkin.mxml | 127 ++++++ .../flatspark/skins/ComboBoxTextInputSkin.mxml | 218 ++++++++++ .../flatspark/skins/DropDownListButtonSkin.mxml | 109 +++++ .../src/flatspark/skins/DropDownListSkin.mxml | 143 +++++++ .../src/flatspark/skins/HScrollBarSkin.mxml | 87 ++++ .../flatspark/skins/HScrollBarThumbSkin.mxml | 74 ++++ .../flatspark/skins/HScrollBarTrackSkin.mxml | 71 ++++ .../src/flatspark/skins/PanelSkin.mxml | 253 ++++++++++++ .../src/flatspark/skins/ProgressBarSkin.mxml | 54 +++ .../src/flatspark/skins/RadioButtonSkin.mxml | 129 ++++++ .../src/flatspark/skins/ScrollerSkin.mxml | 106 +++++ .../src/flatspark/skins/TextInputIconSkin.mxml | 338 ++++++++++++++++ .../src/flatspark/skins/TextInputSkin.mxml | 330 +++++++++++++++ .../skins/TitleWindowCloseButtonSkin.mxml | 118 ++++++ .../src/flatspark/skins/TitleWindowSkin.mxml | 256 ++++++++++++ .../src/flatspark/skins/VScrollBarSkin.mxml | 87 ++++ .../flatspark/skins/VScrollBarThumbSkin.mxml | 74 ++++ .../flatspark/skins/VScrollBarTrackSkin.mxml | 71 ++++ .../src/flatspark/utils/AwesomeUtils.as | 399 +++++++++++++++++++ .../flatspark/src/flatspark/utils/ColorUtils.as | 90 +++++ .../flatspark/src/flatspark/utils/ConfigSkin.as | 44 ++ .../src/itemRenderers/DefaultItemRenderer.mxml | 51 --- .../projects/flatspark/src/skins/AlertSkin.mxml | 230 ----------- .../flatspark/src/skins/ButtonIconSkin.mxml | 191 --------- .../flatspark/src/skins/ButtonSkin.mxml | 184 --------- .../flatspark/src/skins/CheckBoxSkin.mxml | 136 ------- .../flatspark/src/skins/ComboBoxButtonSkin.mxml | 108 ----- .../flatspark/src/skins/ComboBoxSkin.mxml | 127 ------ .../src/skins/ComboBoxTextInputSkin.mxml | 218 ---------- .../src/skins/DropDownListButtonSkin.mxml | 109 ----- .../flatspark/src/skins/DropDownListSkin.mxml | 143 ------- .../flatspark/src/skins/HScrollBarSkin.mxml | 87 ---- .../src/skins/HScrollBarThumbSkin.mxml | 74 ---- .../src/skins/HScrollBarTrackSkin.mxml | 71 ---- .../projects/flatspark/src/skins/PanelSkin.mxml | 253 ------------ .../flatspark/src/skins/ProgressBarSkin.mxml | 54 --- .../flatspark/src/skins/RadioButtonSkin.mxml | 129 ------ .../flatspark/src/skins/ScrollerSkin.mxml | 106 ----- .../flatspark/src/skins/TextInputIconSkin.mxml | 338 ---------------- .../flatspark/src/skins/TextInputSkin.mxml | 330 --------------- .../src/skins/TitleWindowCloseButtonSkin.mxml | 118 ------ .../flatspark/src/skins/TitleWindowSkin.mxml | 256 ------------ .../flatspark/src/skins/VScrollBarSkin.mxml | 87 ---- .../src/skins/VScrollBarThumbSkin.mxml | 74 ---- .../src/skins/VScrollBarTrackSkin.mxml | 71 ---- .../flatspark/src/utils/AwesomeUtils.as | 399 ------------------- .../projects/flatspark/src/utils/ColorUtils.as | 90 ----- .../projects/flatspark/src/utils/ConfigSkin.as | 44 -- 98 files changed, 4849 insertions(+), 4390 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/build.xml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/build.xml b/frameworks/projects/flatspark/build.xml new file mode 100644 index 0000000..38f9c46 --- /dev/null +++ b/frameworks/projects/flatspark/build.xml @@ -0,0 +1,114 @@ +<?xml version="1.0"?> +<!-- + + 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. + +--> + + +<project name="flatspark" default="main" basedir="."> + + <property name="FLEX_HOME" location="${basedir}/../../.."/> + + <property file="${FLEX_HOME}/env.properties"/> + <property environment="env"/> + <property file="${FLEX_HOME}/build.properties"/> + + <target name="main" depends="clean,compile" description="Clean build of flatspark.swc"/> + + <target name="clean"> + <delete failonerror="false"> + <fileset file="${basedir}/bundles.properties"/> + <fileset dir="${FLEX_HOME}/frameworks/libs"> + <include name="flatspark.swc"/> + <include name="flatspark.swc.incr"/> + </fileset> + </delete> + </target> + + <target name="compile" description="Compiles flatspark.swc"> + <echo message="Compiling frameworks/libs/flatspark.swc"/> + + <!-- Load the <compc> task. We can't do this at the <project> level --> + <!-- because targets that run before flexTasks.jar gets built would fail. --> + <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/lib/flexTasks.jar"/> + <!-- + This project builds a theme SWC containing skin classes. + It has no MXML tags and therefore no manifest. + Link in the classes (and their dependencies) + listed in SparkSkinsClasses.as. + Compile against framework.swc, but don't link it into flatspark.swc. + Link in accessibility support. + Include various CSS and asset files in the SWC. + Don't put any resources into the SWC. (The classes don't require any.) + Write a bundle list of referenced resource bundles + into the file bundles.properties in this directory. + (This should be an empty list.) + --> + <compc fork="true" + output="${FLEX_HOME}/frameworks/libs/flatspark.swc"> + <jvmarg line="${compc.jvm.args}"/> + <load-config filename="compile-config.xml" /> + <arg value="+playerglobal.version=${playerglobal.version}" /> + <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" /> + </compc> + </target> + + <target name="doc" depends="clean-temp-docs" description="updates flatspark.swc with asdoc xml"> + <!-- Load the <asdoc> task. We can't do this at the <project> level --> + <!-- because targets that run before flexTasks.jar gets built would fail. --> + <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/lib/flexTasks.jar"/> + + <condition property="asdoc.jvm.args" value="-Xmx384m"> + <os family="windows"/> + </condition> + + <condition property="asdoc.jvm.args" value="-Xmx512m"> + <os family="mac"/> + </condition> + + <condition property="asdoc.jvm.args" value="-Xmx512m"> + <os family="unix"/> + </condition> + + <!-- Call asdoc to generate dita xml files --> + <asdoc output="${FLEX_HOME}/tempDoc" lenient="true" failonerror="true" keep-xml="true" skip-xsl="true" > + <compiler.source-path path-element="${basedir}/src"/> + <external-library-path dir="${env.PLAYERGLOBAL_HOME}"> + <include name="${playerglobal.version}/playerglobal.swc"/> + </external-library-path> + <external-library-path dir="${FLEX_HOME}/frameworks/libs"> + <include name="framework.swc" /> + <include name="spark.swc" /> + </external-library-path> + <jvmarg line="${asdoc.jvm.args}"/> + </asdoc> + + <!-- updates flatspark.swc with asdoc xml --> + <zip destfile="${FLEX_HOME}/frameworks/libs/flatspark.swc" update="true"> + <zipfileset dir="${FLEX_HOME}/tempDoc/tempdita" prefix="docs"> + <include name="*.*"/> + <exclude name="ASDoc_Config.xml"/> + <exclude name="overviews.xml"/> + </zipfileset> + </zip> + </target> + + <target name="clean-temp-docs"> + <delete dir="${FLEX_HOME}/tempDoc" failonerror="false" includeEmptyDirs="true"/> + </target> + +</project> http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/compile-config.xml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/compile-config.xml b/frameworks/projects/flatspark/compile-config.xml new file mode 100644 index 0000000..8e84de4 --- /dev/null +++ b/frameworks/projects/flatspark/compile-config.xml @@ -0,0 +1,108 @@ +<!-- + + 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. + +--> +<flex-config> + + <compiler> + + <accessible>true</accessible> + + <external-library-path> + <path-element>${env.PLAYERGLOBAL_HOME}/${playerglobal.version}/playerglobal.swc</path-element> + <path-element>../../libs/framework.swc</path-element> + <path-element>../../libs/spark.swc</path-element> + <path-element>../../libs/textLayout.swc</path-element> + </external-library-path> + + <locale/> + + <library-path/> + + <namespaces> + <namespace> + <uri>library://ns.adobe.com/flex/spark</uri> + <manifest>../../spark-manifest.xml</manifest> + </namespace> + </namespaces> + + <source-path> + <path-element>src</path-element> + </source-path> + + <warn-no-constructor>false</warn-no-constructor> + + </compiler> + + <include-classes> + <class>FlatSparkSkinsClasses</class> + </include-classes> + + <include-file> + <name>defaults.css</name> + <path>defaults.css</path> + </include-file> + <include-file> + <name>flatspark/assets/fonts/awesome/FontAwesome.otf</name> + <path>src/flatspark/assets/fonts/awesome/FontAwesome.otf</path> + </include-file> + <include-file> + <name>flatspark/assets/fonts/lato/Lato_Black.otf</name> + <path>src/flatspark/assets/fonts/lato/Lato_Black.otf</path> + </include-file> + <include-file> + <name>flatspark/assets/fonts/lato/Lato_Black_Italic.otf</name> + <path>src/flatspark/assets/fonts/lato/Lato_Black_Italic.otf</path> + </include-file> + <include-file> + <name>flatspark/assets/fonts/lato/Lato_Bold.otf</name> + <path>src/flatspark/assets/fonts/lato/Lato_Bold.otf</path> + </include-file> + <include-file> + <name>flatspark/assets/fonts/lato/Lato_Bold_Italic.otf</name> + <path>src/flatspark/assets/fonts/lato/Lato_Bold_Italic.otf</path> + </include-file> + <include-file> + <name>flatspark/assets/fonts/lato/Lato_Hairline.otf</name> + <path>src/flatspark/assets/fonts/lato/Lato_Hairline.otf</path> + </include-file> + <include-file> + <name>flatspark/assets/fonts/lato/Lato_Hairline_Italic.otf</name> + <path>src/flatspark/assets/fonts/lato/Lato_Hairline_Italic.otf</path> + </include-file> + <include-file> + <name>flatspark/assets/fonts/lato/Lato_Light.otf</name> + <path>src/flatspark/assets/fonts/lato/Lato_Light.otf</path> + </include-file> + <include-file> + <name>flatspark/assets/fonts/lato/Lato_Light_Italic.otf</name> + <path>src/flatspark/assets/fonts/lato/Lato_Light_Italic.otf</path> + </include-file> + <include-file> + <name>flatspark/assets/fonts/lato/Lato_Regular.otf</name> + <path>src/flatspark/assets/fonts/lato/Lato_Regular.otf</path> + </include-file> + <include-file> + <name>flatspark/assets/fonts/lato/Lato_Regular_Italic.otf</name> + <path>src/flatspark/assets/fonts/lato/Lato_Regular_Italic.otf</path> + </include-file> + + <resource-bundle-list>bundles.properties</resource-bundle-list> + + <target-player>${playerglobal.version}</target-player> + +</flex-config> http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/defaults.css ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/defaults.css b/frameworks/projects/flatspark/defaults.css index 5c4783b..cefa317 100644 --- a/frameworks/projects/flatspark/defaults.css +++ b/frameworks/projects/flatspark/defaults.css @@ -1,37 +1,37 @@ /* CSS file */ @namespace s "library://ns.adobe.com/flex/spark"; -@namespace components "flatSpark.components.*"; +@namespace components "flatspark.components.*"; @namespace ns "http://flex.apache.org/experimental/ns"; @font-face { - src: url("flatSpark/assets/fonts/awesome/FontAwesome.otf"); + src: url("flatspark/assets/fonts/awesome/FontAwesome.otf"); fontFamily: FontAwesome; embedAsCFF: true; } @font-face { - src:url("flatSpark/assets/fonts/lato/Lato_Regular.otf"); + src:url("flatspark/assets/fonts/lato/Lato_Regular.otf"); fontFamily: Lato; embedAsCFF: true; } @font-face { - src:url("flatSpark/assets/fonts/lato/Lato_Regular_Italic.otf"); + src:url("flatspark/assets/fonts/lato/Lato_Regular_Italic.otf"); fontFamily: Lato; fontStyle: italic; embedAsCFF: true; } @font-face { - src:url("flatSpark/assets/fonts/lato/Lato_Bold.otf"); + src:url("flatspark/assets/fonts/lato/Lato_Bold.otf"); fontFamily: Lato; fontWeight: bold; embedAsCFF: true; } @font-face { - src:url("flatSpark/assets/fonts/lato/Lato_Bold_Italic.otf"); + src:url("flatspark/assets/fonts/lato/Lato_Bold_Italic.otf"); fontFamily: Lato; fontStyle: italic; fontWeight: bold; @@ -39,39 +39,39 @@ } @font-face { - src:url("flatSpark/assets/fonts/lato/Lato_Light.otf"); + src:url("flatspark/assets/fonts/lato/Lato_Light.otf"); fontFamily: LatoLight; embedAsCFF: true; } @font-face { - src:url("flatSpark/assets/fonts/lato/Lato_Light_Italic.otf"); + src:url("flatspark/assets/fonts/lato/Lato_Light_Italic.otf"); fontFamily: LatoLight; fontStyle: italic; embedAsCFF: true; } @font-face { - src:url("flatSpark/assets/fonts/lato/Lato_Hairline.otf"); + src:url("flatspark/assets/fonts/lato/Lato_Hairline.otf"); fontFamily: LatoHairline; embedAsCFF: true; } @font-face { - src:url("flatSpark/assets/fonts/lato/Lato_Hairline_Italic.otf"); + src:url("flatspark/assets/fonts/lato/Lato_Hairline_Italic.otf"); fontFamily: LatoHairline; fontStyle: italic; embedAsCFF: true; } @font-face { - src:url("flatSpark/assets/fonts/lato/Lato_Black.otf"); + src:url("flatspark/assets/fonts/lato/Lato_Black.otf"); fontFamily: LatoBlack; embedAsCFF: true; } @font-face { - src:url("flatSpark/assets/fonts/lato/Lato_Black_Italic.otf"); + src:url("flatspark/assets/fonts/lato/Lato_Black_Italic.otf"); fontFamily: LatoBlack; fontStyle: italic; embedAsCFF: true; @@ -89,9 +89,9 @@ s|Application { } components|ButtonIcon { - skinClass: ClassReference("flatSpark.skins.ButtonIconSkin"); + skinClass: ClassReference("flatspark.skins.ButtonIconSkin"); } components|TextInputIcon { - skinClass: ClassReference("flatSpark.skins.TextInputIconSkin"); + skinClass: ClassReference("flatspark.skins.TextInputIconSkin"); } \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/FlatSparkSkinsClasses.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/FlatSparkSkinsClasses.as b/frameworks/projects/flatspark/src/FlatSparkSkinsClasses.as new file mode 100644 index 0000000..841f803 --- /dev/null +++ b/frameworks/projects/flatspark/src/FlatSparkSkinsClasses.as @@ -0,0 +1,49 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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 +{ + +/** + * @private + * This class is used to link additional classes into framework.swc + * beyond those that are found by dependecy analysis starting + * from the classes specified in manifest.xml. + * For example, Button does not have a reference to ButtonSkin, + * but ButtonSkin needs to be in framework.swc along with Button. + */ +internal class FlatSparkSkinsClasses +{ + // skins + import flatspark.skins.ButtonSkin; ButtonSkin; + import flatspark.skins.ButtonIconSkin; ButtonIconSkin; + import flatspark.skins.CheckBoxSkin; CheckBoxSkin; + import flatspark.skins.ComboBoxSkin; ComboBoxSkin; + import flatspark.skins.ScrollerSkin; ScrollerSkin; + import flatspark.skins.DropDownListSkin; DropDownListSkin; + import flatspark.skins.PanelSkin; PanelSkin; + import flatspark.skins.RadioButtonSkin; RadioButtonSkin; + import flatspark.skins.TextInputSkin; TextInputSkin; + import flatspark.skins.TextInputIconSkin; TextInputIconSkin; + import flatspark.skins.TitleWindowSkin; TitleWindowSkin; + // Maintain alphabetical order +} + +} + http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/assets/fonts/awesome/FontAwesome.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/assets/fonts/awesome/FontAwesome.otf b/frameworks/projects/flatspark/src/assets/fonts/awesome/FontAwesome.otf deleted file mode 100644 index 8b0f54e..0000000 Binary files a/frameworks/projects/flatspark/src/assets/fonts/awesome/FontAwesome.otf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Black.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Black.otf b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Black.otf deleted file mode 100644 index 237ffb7..0000000 Binary files a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Black.otf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Black_Italic.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Black_Italic.otf b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Black_Italic.otf deleted file mode 100644 index 97f1b93..0000000 Binary files a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Black_Italic.otf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Bold.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Bold.otf b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Bold.otf deleted file mode 100644 index 7f0a3d3..0000000 Binary files a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Bold.otf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Bold_Italic.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Bold_Italic.otf b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Bold_Italic.otf deleted file mode 100644 index 4eb4518..0000000 Binary files a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Bold_Italic.otf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Hairline.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Hairline.otf b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Hairline.otf deleted file mode 100644 index 4edb976..0000000 Binary files a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Hairline.otf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Hairline_Italic.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Hairline_Italic.otf b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Hairline_Italic.otf deleted file mode 100644 index 50b82a2..0000000 Binary files a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Hairline_Italic.otf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Light.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Light.otf b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Light.otf deleted file mode 100644 index 3226cb9..0000000 Binary files a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Light.otf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Light_Italic.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Light_Italic.otf b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Light_Italic.otf deleted file mode 100644 index d7557b0..0000000 Binary files a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Light_Italic.otf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Regular.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Regular.otf b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Regular.otf deleted file mode 100644 index 1f94789..0000000 Binary files a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Regular.otf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Regular_Italic.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Regular_Italic.otf b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Regular_Italic.otf deleted file mode 100644 index 6341374..0000000 Binary files a/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Regular_Italic.otf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/components/ButtonIcon.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/components/ButtonIcon.as b/frameworks/projects/flatspark/src/components/ButtonIcon.as deleted file mode 100644 index 96e1221..0000000 --- a/frameworks/projects/flatspark/src/components/ButtonIcon.as +++ /dev/null @@ -1,41 +0,0 @@ -/** - 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 flatSpark.components -{ - - import spark.components.Button; - - import flatSpark.enums.BrandColorEnum; - - public class ButtonIcon extends spark.components.Button - { - - [Bindable] - public var iconFont:String; - - [Bindable] - public var brand:int = BrandColorEnum.Default; - - - public function ButtonIcon() - { - super(); - } - - } -} http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/components/TextInputIcon.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/components/TextInputIcon.as b/frameworks/projects/flatspark/src/components/TextInputIcon.as deleted file mode 100644 index 73caada..0000000 --- a/frameworks/projects/flatspark/src/components/TextInputIcon.as +++ /dev/null @@ -1,35 +0,0 @@ -/** - 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 flatSpark.components -{ - import flash.events.FocusEvent; - - import spark.components.TextInput; - - public class TextInputIcon extends spark.components.TextInput - { - [Bindable] - public var iconFont:String; - - public function TextInputIcon() - { - super(); - } - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/enums/BrandColorEnum.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/enums/BrandColorEnum.as b/frameworks/projects/flatspark/src/enums/BrandColorEnum.as deleted file mode 100644 index 9be14b2..0000000 --- a/frameworks/projects/flatspark/src/enums/BrandColorEnum.as +++ /dev/null @@ -1,30 +0,0 @@ -/** - 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 flatSpark.enums -{ - public class BrandColorEnum - { - public static const Primary:int = 1; - public static const Success:int = 2; - public static const Warning:int = 3; - public static const Inverse:int = 4; - public static const Default:int = 5; - public static const Info:int = 6; - public static const Danger:int = 7; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/enums/ButtonColorEnum.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/enums/ButtonColorEnum.as b/frameworks/projects/flatspark/src/enums/ButtonColorEnum.as deleted file mode 100644 index 48d1a55..0000000 --- a/frameworks/projects/flatspark/src/enums/ButtonColorEnum.as +++ /dev/null @@ -1,59 +0,0 @@ -/** - 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 flatSpark.enums -{ - import flatSpark.utils.ColorUtils; - - public class ButtonColorEnum - { - public static const PrimaryUp:uint = ColorUtils.Turquoise; - public static const PrimaryHover:uint = 0x48C9B0; - public static const PrimaryDown:uint = 0x16A085; - public static const PrimaryDisabled:uint = ColorUtils.Turquoise; - - public static const SuccessUp:uint = ColorUtils.Emerald; - public static const SuccessHover:uint = 0x58D68D; - public static const SuccessDown:uint = 0x27AD60; - public static const SuccessDisabled:uint = ColorUtils.Emerald; - - public static const WarningUp:uint = ColorUtils.SunFlower; - public static const WarningHover:uint = 0xF5D313; - public static const WarningDown:uint = 0xCDA70D; - public static const WarningDisabled:uint = ColorUtils.SunFlower; - - public static const InverseUp:uint = ColorUtils.WetAsphalt; - public static const InverseHover:uint = 0x415B76; - public static const InverseDown:uint = 0x2C3E50; - public static const InverseDisabled:uint = ColorUtils.WetAsphalt; - - public static const DefaultUp:uint = ColorUtils.Silver; - public static const DefaultHover:uint = 0xCACFD2; - public static const DefaultDown:uint = 0xA1A6A9; - public static const DefaultDisabled:uint = ColorUtils.Silver; - - public static const InfoUp:uint = ColorUtils.PeterRiver; - public static const InfoHover:uint = 0x5DADE2; - public static const InfoDown:uint = 0x2C81BA; - public static const InfoDisabled:uint = ColorUtils.PeterRiver; - - public static const DangerUp:uint = ColorUtils.Alizarin; - public static const DangerHover:uint = 0xEC7063; - public static const DangerDown:uint = 0xC44133; - public static const DangerDisabled:uint = ColorUtils.Alizarin; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/enums/ButtonSizeEnum.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/enums/ButtonSizeEnum.as b/frameworks/projects/flatspark/src/enums/ButtonSizeEnum.as deleted file mode 100644 index bb210fc..0000000 --- a/frameworks/projects/flatspark/src/enums/ButtonSizeEnum.as +++ /dev/null @@ -1,31 +0,0 @@ -/** - 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 flatSpark.enums -{ - public class ButtonSizeEnum - { - public static const Large:int = 43; - public static const Normal:int = 32; - public static const Small:int = 28; - public static const ExtraSmall:int = 20; - - public function ButtonSizeEnum() - { - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/enums/ColorSwatchEnum.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/enums/ColorSwatchEnum.as b/frameworks/projects/flatspark/src/enums/ColorSwatchEnum.as deleted file mode 100644 index a1a2769..0000000 --- a/frameworks/projects/flatspark/src/enums/ColorSwatchEnum.as +++ /dev/null @@ -1,40 +0,0 @@ -/** - 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 flatSpark.enums -{ - public class ColorSwatchEnum - { - public static const Turquoise_GreenSea:int = 1; - public static const Emerald_Nephritis:int = 2; - public static const PeterRiver_BelizeHole:int = 3; - public static const Amethyst_Wisteria:int = 4; - public static const WetAsphalt_MidnightBlue:int = 5; - public static const SunFlower_Orange:int = 6; - public static const Carrot_Pumpkin:int = 7; - public static const Alizarin_Pomegranate:int = 8; - public static const Clouds_Silver:int = 9; - public static const Concrete_Asbestos:int = 10; - - - private var _colorSwatch:int; - - public function ColorSwatchEnum(colorSwatch:int = 3) { - _colorSwatch = colorSwatch; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/enums/SizeEnum.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/enums/SizeEnum.as b/frameworks/projects/flatspark/src/enums/SizeEnum.as deleted file mode 100644 index 83600fa..0000000 --- a/frameworks/projects/flatspark/src/enums/SizeEnum.as +++ /dev/null @@ -1,32 +0,0 @@ -/** - 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 flatSpark.enums -{ - public class SizeEnum - { - public static const Small:int = 10; - public static const Medium:int = 12; - public static const Large:int = 14; - - private var _size:int; - - public function SizeEnum(size:int = 12) { - _size = size; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/enums/TextInputSizeEnum.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/enums/TextInputSizeEnum.as b/frameworks/projects/flatspark/src/enums/TextInputSizeEnum.as deleted file mode 100644 index e7c38be..0000000 --- a/frameworks/projects/flatspark/src/enums/TextInputSizeEnum.as +++ /dev/null @@ -1,30 +0,0 @@ -/** - 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 flatSpark.enums -{ - public class TextInputSizeEnum - { - public static const Large:int = 41; - public static const Normal:int = 38; - public static const Small:int = 31; - - public function TextInputSizeEnum() - { - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/assets/fonts/awesome/FontAwesome.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/assets/fonts/awesome/FontAwesome.otf b/frameworks/projects/flatspark/src/flatspark/assets/fonts/awesome/FontAwesome.otf new file mode 100644 index 0000000..8b0f54e Binary files /dev/null and b/frameworks/projects/flatspark/src/flatspark/assets/fonts/awesome/FontAwesome.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/assets/fonts/awesome/OFL.txt ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/assets/fonts/awesome/OFL.txt b/frameworks/projects/flatspark/src/flatspark/assets/fonts/awesome/OFL.txt new file mode 100644 index 0000000..d68a2c8 --- /dev/null +++ b/frameworks/projects/flatspark/src/flatspark/assets/fonts/awesome/OFL.txt @@ -0,0 +1,94 @@ +Copyright (c) 2014, Dave Gandy (http://fontawesome.io), +with Reserved Font Name "Font Awesome". + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Black.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Black.otf b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Black.otf new file mode 100644 index 0000000..237ffb7 Binary files /dev/null and b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Black.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Black_Italic.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Black_Italic.otf b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Black_Italic.otf new file mode 100644 index 0000000..97f1b93 Binary files /dev/null and b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Black_Italic.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Bold.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Bold.otf b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Bold.otf new file mode 100644 index 0000000..7f0a3d3 Binary files /dev/null and b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Bold.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Bold_Italic.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Bold_Italic.otf b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Bold_Italic.otf new file mode 100644 index 0000000..4eb4518 Binary files /dev/null and b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Bold_Italic.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Hairline.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Hairline.otf b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Hairline.otf new file mode 100644 index 0000000..4edb976 Binary files /dev/null and b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Hairline.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Hairline_Italic.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Hairline_Italic.otf b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Hairline_Italic.otf new file mode 100644 index 0000000..50b82a2 Binary files /dev/null and b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Hairline_Italic.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Light.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Light.otf b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Light.otf new file mode 100644 index 0000000..3226cb9 Binary files /dev/null and b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Light.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Light_Italic.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Light_Italic.otf b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Light_Italic.otf new file mode 100644 index 0000000..d7557b0 Binary files /dev/null and b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Light_Italic.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Regular.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Regular.otf b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Regular.otf new file mode 100644 index 0000000..1f94789 Binary files /dev/null and b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Regular.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Regular_Italic.otf ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Regular_Italic.otf b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Regular_Italic.otf new file mode 100644 index 0000000..6341374 Binary files /dev/null and b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/Lato_Regular_Italic.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/OFL.txt ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/OFL.txt b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/OFL.txt new file mode 100644 index 0000000..303088c --- /dev/null +++ b/frameworks/projects/flatspark/src/flatspark/assets/fonts/lato/OFL.txt @@ -0,0 +1,94 @@ +Copyright (c) 2014, Åukasz Dziedzic (https://www.google.com/fonts/specimen/Lato), +with Reserved Font Name "Lato". + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/components/ButtonIcon.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/components/ButtonIcon.as b/frameworks/projects/flatspark/src/flatspark/components/ButtonIcon.as new file mode 100644 index 0000000..d14c53f --- /dev/null +++ b/frameworks/projects/flatspark/src/flatspark/components/ButtonIcon.as @@ -0,0 +1,41 @@ +/** + 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 flatspark.components +{ + + import spark.components.Button; + + import flatspark.enums.BrandColorEnum; + + public class ButtonIcon extends spark.components.Button + { + + [Bindable] + public var iconFont:String; + + [Bindable] + public var brand:int = BrandColorEnum.Default; + + + public function ButtonIcon() + { + super(); + } + + } +} http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/components/TextInputIcon.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/components/TextInputIcon.as b/frameworks/projects/flatspark/src/flatspark/components/TextInputIcon.as new file mode 100644 index 0000000..98b6a9c --- /dev/null +++ b/frameworks/projects/flatspark/src/flatspark/components/TextInputIcon.as @@ -0,0 +1,35 @@ +/** + 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 flatspark.components +{ + import flash.events.FocusEvent; + + import spark.components.TextInput; + + public class TextInputIcon extends spark.components.TextInput + { + [Bindable] + public var iconFont:String; + + public function TextInputIcon() + { + super(); + } + + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/enums/BrandColorEnum.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/enums/BrandColorEnum.as b/frameworks/projects/flatspark/src/flatspark/enums/BrandColorEnum.as new file mode 100644 index 0000000..93742ee --- /dev/null +++ b/frameworks/projects/flatspark/src/flatspark/enums/BrandColorEnum.as @@ -0,0 +1,30 @@ +/** + 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 flatspark.enums +{ + public class BrandColorEnum + { + public static const Primary:int = 1; + public static const Success:int = 2; + public static const Warning:int = 3; + public static const Inverse:int = 4; + public static const Default:int = 5; + public static const Info:int = 6; + public static const Danger:int = 7; + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/enums/ButtonColorEnum.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/enums/ButtonColorEnum.as b/frameworks/projects/flatspark/src/flatspark/enums/ButtonColorEnum.as new file mode 100644 index 0000000..5eae405 --- /dev/null +++ b/frameworks/projects/flatspark/src/flatspark/enums/ButtonColorEnum.as @@ -0,0 +1,59 @@ +/** + 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 flatspark.enums +{ + import flatspark.utils.ColorUtils; + + public class ButtonColorEnum + { + public static const PrimaryUp:uint = ColorUtils.Turquoise; + public static const PrimaryHover:uint = 0x48C9B0; + public static const PrimaryDown:uint = 0x16A085; + public static const PrimaryDisabled:uint = ColorUtils.Turquoise; + + public static const SuccessUp:uint = ColorUtils.Emerald; + public static const SuccessHover:uint = 0x58D68D; + public static const SuccessDown:uint = 0x27AD60; + public static const SuccessDisabled:uint = ColorUtils.Emerald; + + public static const WarningUp:uint = ColorUtils.SunFlower; + public static const WarningHover:uint = 0xF5D313; + public static const WarningDown:uint = 0xCDA70D; + public static const WarningDisabled:uint = ColorUtils.SunFlower; + + public static const InverseUp:uint = ColorUtils.WetAsphalt; + public static const InverseHover:uint = 0x415B76; + public static const InverseDown:uint = 0x2C3E50; + public static const InverseDisabled:uint = ColorUtils.WetAsphalt; + + public static const DefaultUp:uint = ColorUtils.Silver; + public static const DefaultHover:uint = 0xCACFD2; + public static const DefaultDown:uint = 0xA1A6A9; + public static const DefaultDisabled:uint = ColorUtils.Silver; + + public static const InfoUp:uint = ColorUtils.PeterRiver; + public static const InfoHover:uint = 0x5DADE2; + public static const InfoDown:uint = 0x2C81BA; + public static const InfoDisabled:uint = ColorUtils.PeterRiver; + + public static const DangerUp:uint = ColorUtils.Alizarin; + public static const DangerHover:uint = 0xEC7063; + public static const DangerDown:uint = 0xC44133; + public static const DangerDisabled:uint = ColorUtils.Alizarin; + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/enums/ButtonSizeEnum.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/enums/ButtonSizeEnum.as b/frameworks/projects/flatspark/src/flatspark/enums/ButtonSizeEnum.as new file mode 100644 index 0000000..63b6f2c --- /dev/null +++ b/frameworks/projects/flatspark/src/flatspark/enums/ButtonSizeEnum.as @@ -0,0 +1,31 @@ +/** + 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 flatspark.enums +{ + public class ButtonSizeEnum + { + public static const Large:int = 43; + public static const Normal:int = 32; + public static const Small:int = 28; + public static const ExtraSmall:int = 20; + + public function ButtonSizeEnum() + { + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/enums/ColorSwatchEnum.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/enums/ColorSwatchEnum.as b/frameworks/projects/flatspark/src/flatspark/enums/ColorSwatchEnum.as new file mode 100644 index 0000000..f497f62 --- /dev/null +++ b/frameworks/projects/flatspark/src/flatspark/enums/ColorSwatchEnum.as @@ -0,0 +1,40 @@ +/** + 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 flatspark.enums +{ + public class ColorSwatchEnum + { + public static const Turquoise_GreenSea:int = 1; + public static const Emerald_Nephritis:int = 2; + public static const PeterRiver_BelizeHole:int = 3; + public static const Amethyst_Wisteria:int = 4; + public static const WetAsphalt_MidnightBlue:int = 5; + public static const SunFlower_Orange:int = 6; + public static const Carrot_Pumpkin:int = 7; + public static const Alizarin_Pomegranate:int = 8; + public static const Clouds_Silver:int = 9; + public static const Concrete_Asbestos:int = 10; + + + private var _colorSwatch:int; + + public function ColorSwatchEnum(colorSwatch:int = 3) { + _colorSwatch = colorSwatch; + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/enums/SizeEnum.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/enums/SizeEnum.as b/frameworks/projects/flatspark/src/flatspark/enums/SizeEnum.as new file mode 100644 index 0000000..fd68aee --- /dev/null +++ b/frameworks/projects/flatspark/src/flatspark/enums/SizeEnum.as @@ -0,0 +1,32 @@ +/** + 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 flatspark.enums +{ + public class SizeEnum + { + public static const Small:int = 10; + public static const Medium:int = 12; + public static const Large:int = 14; + + private var _size:int; + + public function SizeEnum(size:int = 12) { + _size = size; + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/enums/TextInputSizeEnum.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/enums/TextInputSizeEnum.as b/frameworks/projects/flatspark/src/flatspark/enums/TextInputSizeEnum.as new file mode 100644 index 0000000..2b2568e --- /dev/null +++ b/frameworks/projects/flatspark/src/flatspark/enums/TextInputSizeEnum.as @@ -0,0 +1,30 @@ +/** + 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 flatspark.enums +{ + public class TextInputSizeEnum + { + public static const Large:int = 41; + public static const Normal:int = 38; + public static const Small:int = 31; + + public function TextInputSizeEnum() + { + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/itemRenderers/DefaultItemRenderer.mxml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/itemRenderers/DefaultItemRenderer.mxml b/frameworks/projects/flatspark/src/flatspark/itemRenderers/DefaultItemRenderer.mxml new file mode 100644 index 0000000..7b2a914 --- /dev/null +++ b/frameworks/projects/flatspark/src/flatspark/itemRenderers/DefaultItemRenderer.mxml @@ -0,0 +1,51 @@ +<?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:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark" + autoDrawBackground="false" height="32"> + <s:states> + <s:State name="normal" /> + <s:State name="hovered" /> + <s:State name="selected" /> + </s:states> + <fx:Script> + <![CDATA[ + + import flatspark.utils.ColorUtils; + + ]]> + </fx:Script> + + <s:Rect id="bgFill" + radiusX="4" + includeIn="hovered,selected" + left="0" right="0" top="0" bottom="0"> + <s:fill> + <s:SolidColor color="{ColorUtils.MidnightBlue}" + color.selected="{ColorUtils.Turquoise}"/> + </s:fill> + </s:Rect> + + <s:Label id="labelDisplay" paddingRight="4" paddingTop="1" paddingBottom="1" paddingLeft="4" + verticalAlign="middle" height="100%" fontFamily="Lato" fontSize="15" fontWeight="normal" + fontStyle="normal" color="{ColorUtils.Clouds}" color.hovered="{ColorUtils.Silver}"/> + +</s:ItemRenderer> http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2fc9a8d5/frameworks/projects/flatspark/src/flatspark/skins/AlertSkin.mxml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/flatspark/skins/AlertSkin.mxml b/frameworks/projects/flatspark/src/flatspark/skins/AlertSkin.mxml new file mode 100644 index 0000000..0e9a104 --- /dev/null +++ b/frameworks/projects/flatspark/src/flatspark/skins/AlertSkin.mxml @@ -0,0 +1,230 @@ +<?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:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" + xmlns:fb="http://ns.adobe.com/flashbuilder/2009" blendMode="normal" mouseEnabled="false" + minWidth="131" minHeight="30" alpha.disabled="0.5" alpha.disabledWithControlBar="0.5"> + <fx:Metadata> + <![CDATA[ + [HostComponent("spark.components.Alert")] + ]]> + </fx:Metadata> + + <fx:Script fb:purpose="styling"> + <![CDATA[ + import flatspark.utils.ColorUtils; + + /* Define the skin elements that should not be colorized. + For panel, border and title background are skinned, but the content area and title text are not. */ + static private const exclusions:Array = ["background", "titleDisplay", "contentGroup", "controlBarGroup"]; + + /** + * @private + */ + override public function get colorizeExclusions():Array {return exclusions;} + + /** + * @private + */ + override protected function initializationComplete():void + { + useChromeColor = true; + super.initializationComplete(); + } + + /** + * @private + */ + override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void + { + setPartCornerRadii(topMaskRect); + setPartCornerRadii(background); + + if (bottomMaskRect) setPartCornerRadii(bottomMaskRect); + + super.updateDisplayList(unscaledWidth, unscaledHeight); + } + + /** + * @private + */ + private function setPartCornerRadii(target:Rect):void + { + target.topLeftRadiusX = cornerRadius; + target.topRightRadiusX = cornerRadius; + target.bottomLeftRadiusX = cornerRadius; + target.bottomRightRadiusX = cornerRadius; + } + + private var cornerRadius:Number=4; + + ]]> + </fx:Script> + + <fx:Declarations> + <s:Group id="contentGroup" /> + </fx:Declarations> + + <s:states> + <s:State name="normal" /> + <s:State name="disabled" /> + <s:State name="normalWithControlBar" stateGroups="withControls" /> + <s:State name="disabledWithControlBar" stateGroups="withControls" /> + </s:states> + + <!-- drop shadow can't be hittable so all other graphics go in this group --> + <s:Group left="0" right="0" top="0" bottom="0"> + + <!-- top group mask --> + <!--- @private --> + <s:Group left="0" top="0" right="0" bottom="0" id="topGroupMask" > + <!--- @private --> + <s:Rect id="topMaskRect" left="0" top="0" right="0" bottom="0"> + <s:fill> + <s:SolidColor alpha="0"/> + </s:fill> + </s:Rect> + </s:Group> + + <!-- bottom group mask --> + <!--- @private --> + <s:Group left="0" top="0" right="0" bottom="0" id="bottomGroupMask" + includeIn="normalWithControlBar, disabledWithControlBar"> + <!--- @private --> + <s:Rect id="bottomMaskRect" left="0" top="0" right="0" bottom="0"> + <s:fill> + <s:SolidColor alpha="0"/> + </s:fill> + </s:Rect> + </s:Group> + + <!-- layer 2: background fill --> + <!--- Defines the appearance of the PanelSkin class's background. --> + <s:Rect id="background" left="0" top="0" right="0" bottom="0"> + <s:fill> + <s:SolidColor id="backgroundFill" color="#FFFFFF"/> + </s:fill> + </s:Rect> + + <!-- layer 3: contents --> + <!--- Contains the vertical stack of titlebar content and controlbar. --> + <s:Group left="0" top="0" right="0" bottom="0" id="contents"> + <s:layout> + <s:VerticalLayout gap="0" horizontalAlign="justify" /> + </s:layout> + + <!--- @private --> + <s:Group id="topGroup" mask="{topGroupMask}"> + + <!-- layer 0: title bar fill --> + <!--- @private --> + <s:Rect id="tbFill" left="0" right="0" top="0" bottom="1"> + <s:fill> + <s:SolidColor color="{ColorUtils.Concrete}"/> + </s:fill> + </s:Rect> + + <!-- layer 1: title bar highlight --> + <!--- @private --> + <s:Rect id="tbHilite" left="0" right="0" top="0" bottom="1"> + <s:fill> + <s:SolidColor color="{ColorUtils.Concrete}"/> + </s:fill> + </s:Rect> + + <!-- layer 2: title bar divider --> + <!--- @private --> + <s:Rect id="tbDiv" left="0" right="0" height="1" bottom="0"> + <s:fill> + <s:SolidColor color="{ColorUtils.Asbestos}"/> + </s:fill> + </s:Rect> + + <!-- layer 3: text --> + <!--- @copy spark.components.Panel#titleDisplay --> + <s:Label id="titleDisplay" maxDisplayedLines="1" fontFamily="Lato" fontSize="15" fontStyle="normal" color="#FFFFFF" + left="15" right="5" top="2" bottom="0" minHeight="36" height="36" + verticalAlign="middle" fontWeight="bold" /> + </s:Group> + + <!-- + Note: setting the minimum size to 0 here so that changes to the host component's + size will not be thwarted by this skin part's minimum size. This is a compromise, + more about it here: http://bugs.adobe.com/jira/browse/SDK-21143 + --> + <!--- @copy spark.components.SkinnableContainer#contentGroup --> + <!--<s:Group id="contentGroup" width="100%" height="100%" minWidth="0" minHeight="0"> + </s:Group>--> + <s:HGroup width="100%" height="100%" verticalAlign="middle" horizontalAlign="center" paddingBottom="20" paddingLeft="20" paddingRight="20" paddingTop="20"> + <s:Group id="iconGroup" height="100%"> + + </s:Group> + <s:VGroup width="100%" height="100%" paddingLeft="5" paddingRight="5" paddingBottom="5" gap="20" + verticalAlign="middle" horizontalAlign="center"> + <s:RichText id="messageDisplay" fontFamily="Lato" fontSize="14" fontStyle="normal" color="0x000000" lineHeight="160%" + left="9" right="3" top="1" bottom="0" minHeight="30" maxWidth="400" + verticalAlign="middle"/> + + <!-- + To-do: Need to adjust the styles for buttons + --> + <s:HGroup id="buttonGroup" width="100%" minWidth="0" minHeight="0" gap="8" + horizontalAlign="center"/> + </s:VGroup> + </s:HGroup> + + + <!--- @private --> + <s:Group id="bottomGroup" minWidth="0" minHeight="0" + includeIn="normalWithControlBar, disabledWithControlBar" > + + <s:Group left="0" right="0" top="0" bottom="0" mask="{bottomGroupMask}"> + + <!-- layer 0: control bar divider line --> + <s:Rect left="0" right="0" top="0" height="1" alpha="0.22"> + <s:fill> + <s:SolidColor color="#FFFFFF"/> + </s:fill> + </s:Rect> + + <!-- layer 1: control bar highlight --> + <s:Rect left="0" right="0" top="1" bottom="0"> + <s:fill> + <s:SolidColor color="#FFFFFF"/> + </s:fill> + </s:Rect> + + <!-- layer 2: control bar fill --> + <s:Rect left="1" right="1" top="2" bottom="1"> + <s:fill> + <s:SolidColor color="#FFFFFF"/> + </s:fill> + </s:Rect> + </s:Group> + <!-- layer 3: control bar --> + <!--- @copy spark.components.Panel#controlBarGroup --> + <s:Group id="controlBarGroup" left="0" right="0" top="1" bottom="1" minWidth="0" minHeight="0"> + <s:layout> + <s:HorizontalLayout paddingLeft="10" paddingRight="10" paddingTop="7" paddingBottom="7" gap="10" /> + </s:layout> + </s:Group> + </s:Group> + </s:Group> + </s:Group> +</s:SparkSkin> \ No newline at end of file