Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A1FE217D0D for ; Sat, 22 Nov 2014 01:00:45 +0000 (UTC) Received: (qmail 22472 invoked by uid 500); 22 Nov 2014 01:00:45 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 22329 invoked by uid 500); 22 Nov 2014 01:00:45 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 22085 invoked by uid 99); 22 Nov 2014 01:00:45 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Nov 2014 01:00:45 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id DF09BA0B2CE; Sat, 22 Nov 2014 01:00:44 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bigosmallm@apache.org To: commits@flex.apache.org Date: Sat, 22 Nov 2014 01:00:47 -0000 Message-Id: <9a0241052c5041bf9711e6e076892294@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [04/48] git commit: [flex-sdk] [refs/heads/iso7skins] - Added FlatSpark project Added FlatSpark project Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/e72f72e3 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/e72f72e3 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/e72f72e3 Branch: refs/heads/iso7skins Commit: e72f72e3ab217d5b877884be13573bbf1e3bd051 Parents: 105ae47 Author: Mahmoud Ali Authored: Mon Oct 6 22:17:36 2014 -0400 Committer: Mahmoud Ali Committed: Mon Oct 6 22:17:36 2014 -0400 ---------------------------------------------------------------------- frameworks/projects/flatspark/defaults.css | 97 +++++ .../src/assets/fonts/awesome/FontAwesome.otf | Bin 0 -> 62856 bytes .../src/assets/fonts/lato/Lato_Black.otf | Bin 0 -> 47436 bytes .../src/assets/fonts/lato/Lato_Black_Italic.otf | Bin 0 -> 46100 bytes .../src/assets/fonts/lato/Lato_Bold.otf | Bin 0 -> 48800 bytes .../src/assets/fonts/lato/Lato_Bold_Italic.otf | Bin 0 -> 47364 bytes .../src/assets/fonts/lato/Lato_Hairline.otf | Bin 0 -> 46852 bytes .../assets/fonts/lato/Lato_Hairline_Italic.otf | Bin 0 -> 46568 bytes .../src/assets/fonts/lato/Lato_Light.otf | Bin 0 -> 47040 bytes .../src/assets/fonts/lato/Lato_Light_Italic.otf | Bin 0 -> 47060 bytes .../src/assets/fonts/lato/Lato_Regular.otf | Bin 0 -> 47088 bytes .../assets/fonts/lato/Lato_Regular_Italic.otf | Bin 0 -> 47356 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 ++ .../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 ++ 47 files changed, 4473 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/frameworks/projects/flatspark/defaults.css ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/defaults.css b/frameworks/projects/flatspark/defaults.css new file mode 100644 index 0000000..5c4783b --- /dev/null +++ b/frameworks/projects/flatspark/defaults.css @@ -0,0 +1,97 @@ +/* CSS file */ +@namespace s "library://ns.adobe.com/flex/spark"; +@namespace components "flatSpark.components.*"; +@namespace ns "http://flex.apache.org/experimental/ns"; + + +@font-face { + src: url("flatSpark/assets/fonts/awesome/FontAwesome.otf"); + fontFamily: FontAwesome; + embedAsCFF: true; +} + +@font-face { + 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"); + fontFamily: Lato; + fontStyle: italic; + embedAsCFF: true; +} + +@font-face { + 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"); + fontFamily: Lato; + fontStyle: italic; + fontWeight: bold; + embedAsCFF: true; +} + +@font-face { + 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"); + fontFamily: LatoLight; + fontStyle: italic; + embedAsCFF: true; +} + +@font-face { + 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"); + fontFamily: LatoHairline; + fontStyle: italic; + embedAsCFF: true; +} + +@font-face { + 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"); + fontFamily: LatoBlack; + fontStyle: italic; + embedAsCFF: true; +} + +global +{ + modal-transparency: 0.98; + modal-transparency-blur: 0; + modal-transparency-color: #2c3e50; +} + +s|Application { + fontFamily: Lato, Helvetica, Arial, sans-serif; +} + +components|ButtonIcon { + skinClass: ClassReference("flatSpark.skins.ButtonIconSkin"); +} + +components|TextInputIcon { + skinClass: ClassReference("flatSpark.skins.TextInputIconSkin"); +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/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 new file mode 100644 index 0000000..8b0f54e Binary files /dev/null and b/frameworks/projects/flatspark/src/assets/fonts/awesome/FontAwesome.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/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 new file mode 100644 index 0000000..237ffb7 Binary files /dev/null and b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Black.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/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 new file mode 100644 index 0000000..97f1b93 Binary files /dev/null and b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Black_Italic.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/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 new file mode 100644 index 0000000..7f0a3d3 Binary files /dev/null and b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Bold.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/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 new file mode 100644 index 0000000..4eb4518 Binary files /dev/null and b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Bold_Italic.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/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 new file mode 100644 index 0000000..4edb976 Binary files /dev/null and b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Hairline.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/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 new file mode 100644 index 0000000..50b82a2 Binary files /dev/null and b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Hairline_Italic.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/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 new file mode 100644 index 0000000..3226cb9 Binary files /dev/null and b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Light.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/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 new file mode 100644 index 0000000..d7557b0 Binary files /dev/null and b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Light_Italic.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/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 new file mode 100644 index 0000000..1f94789 Binary files /dev/null and b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Regular.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/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 new file mode 100644 index 0000000..6341374 Binary files /dev/null and b/frameworks/projects/flatspark/src/assets/fonts/lato/Lato_Regular_Italic.otf differ http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/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 new file mode 100644 index 0000000..96e1221 --- /dev/null +++ b/frameworks/projects/flatspark/src/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/e72f72e3/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 new file mode 100644 index 0000000..73caada --- /dev/null +++ b/frameworks/projects/flatspark/src/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/e72f72e3/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 new file mode 100644 index 0000000..9be14b2 --- /dev/null +++ b/frameworks/projects/flatspark/src/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/e72f72e3/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 new file mode 100644 index 0000000..48d1a55 --- /dev/null +++ b/frameworks/projects/flatspark/src/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/e72f72e3/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 new file mode 100644 index 0000000..bb210fc --- /dev/null +++ b/frameworks/projects/flatspark/src/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/e72f72e3/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 new file mode 100644 index 0000000..a1a2769 --- /dev/null +++ b/frameworks/projects/flatspark/src/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/e72f72e3/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 new file mode 100644 index 0000000..83600fa --- /dev/null +++ b/frameworks/projects/flatspark/src/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/e72f72e3/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 new file mode 100644 index 0000000..e7c38be --- /dev/null +++ b/frameworks/projects/flatspark/src/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/e72f72e3/frameworks/projects/flatspark/src/itemRenderers/DefaultItemRenderer.mxml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/itemRenderers/DefaultItemRenderer.mxml b/frameworks/projects/flatspark/src/itemRenderers/DefaultItemRenderer.mxml new file mode 100644 index 0000000..ddada4e --- /dev/null +++ b/frameworks/projects/flatspark/src/itemRenderers/DefaultItemRenderer.mxml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/frameworks/projects/flatspark/src/skins/AlertSkin.mxml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/skins/AlertSkin.mxml b/frameworks/projects/flatspark/src/skins/AlertSkin.mxml new file mode 100644 index 0000000..b42abdf --- /dev/null +++ b/frameworks/projects/flatspark/src/skins/AlertSkin.mxml @@ -0,0 +1,230 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/frameworks/projects/flatspark/src/skins/ButtonIconSkin.mxml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/skins/ButtonIconSkin.mxml b/frameworks/projects/flatspark/src/skins/ButtonIconSkin.mxml new file mode 100644 index 0000000..f009956 --- /dev/null +++ b/frameworks/projects/flatspark/src/skins/ButtonIconSkin.mxml @@ -0,0 +1,191 @@ + + + + + + + [HostComponent("flatSpark.components.ButtonIcon")] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/frameworks/projects/flatspark/src/skins/ButtonSkin.mxml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/skins/ButtonSkin.mxml b/frameworks/projects/flatspark/src/skins/ButtonSkin.mxml new file mode 100644 index 0000000..aa0f9c5 --- /dev/null +++ b/frameworks/projects/flatspark/src/skins/ButtonSkin.mxml @@ -0,0 +1,184 @@ + + + + + + + [HostComponent("spark.components.Button")] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/frameworks/projects/flatspark/src/skins/CheckBoxSkin.mxml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/skins/CheckBoxSkin.mxml b/frameworks/projects/flatspark/src/skins/CheckBoxSkin.mxml new file mode 100644 index 0000000..6b8f68c --- /dev/null +++ b/frameworks/projects/flatspark/src/skins/CheckBoxSkin.mxml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + /* Define the skin elements that should not be colorized. + For button, the graphics are colorized but the label is not. */ + static private const exclusions:Array = ["labelDisplay", "check"]; + + /** + * @private + */ + override public function get colorizeExclusions():Array {return exclusions;} + + /* Define the symbol fill items that should be colored by the "symbolColor" style. */ + static private const symbols:Array = []; + + /** + * @private + */ + override public function get symbolItems():Array {return symbols}; + + /** + * @private + */ + override protected function initializationComplete():void + { + useChromeColor = true; + super.initializationComplete(); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/frameworks/projects/flatspark/src/skins/ComboBoxButtonSkin.mxml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/skins/ComboBoxButtonSkin.mxml b/frameworks/projects/flatspark/src/skins/ComboBoxButtonSkin.mxml new file mode 100644 index 0000000..3d15498 --- /dev/null +++ b/frameworks/projects/flatspark/src/skins/ComboBoxButtonSkin.mxml @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/frameworks/projects/flatspark/src/skins/ComboBoxSkin.mxml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/skins/ComboBoxSkin.mxml b/frameworks/projects/flatspark/src/skins/ComboBoxSkin.mxml new file mode 100644 index 0000000..f98f46e --- /dev/null +++ b/frameworks/projects/flatspark/src/skins/ComboBoxSkin.mxml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/frameworks/projects/flatspark/src/skins/ComboBoxTextInputSkin.mxml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/skins/ComboBoxTextInputSkin.mxml b/frameworks/projects/flatspark/src/skins/ComboBoxTextInputSkin.mxml new file mode 100644 index 0000000..d4b1ce9 --- /dev/null +++ b/frameworks/projects/flatspark/src/skins/ComboBoxTextInputSkin.mxml @@ -0,0 +1,218 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/frameworks/projects/flatspark/src/skins/DropDownListButtonSkin.mxml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/skins/DropDownListButtonSkin.mxml b/frameworks/projects/flatspark/src/skins/DropDownListButtonSkin.mxml new file mode 100644 index 0000000..3215dfb --- /dev/null +++ b/frameworks/projects/flatspark/src/skins/DropDownListButtonSkin.mxml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/frameworks/projects/flatspark/src/skins/DropDownListSkin.mxml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/skins/DropDownListSkin.mxml b/frameworks/projects/flatspark/src/skins/DropDownListSkin.mxml new file mode 100644 index 0000000..ced72c7 --- /dev/null +++ b/frameworks/projects/flatspark/src/skins/DropDownListSkin.mxml @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/frameworks/projects/flatspark/src/skins/HScrollBarSkin.mxml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/skins/HScrollBarSkin.mxml b/frameworks/projects/flatspark/src/skins/HScrollBarSkin.mxml new file mode 100644 index 0000000..82099b7 --- /dev/null +++ b/frameworks/projects/flatspark/src/skins/HScrollBarSkin.mxml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + /* Define the skin elements that should not be colorized. + For scroll bar, the skin itself is colorized but the individual parts are not. */ + static private const exclusions:Array = ["track", "thumb"]; + + /** + * @private + */ + override public function get colorizeExclusions():Array {return exclusions;} + + /** + * @private + */ + override protected function initializationComplete():void + { + useChromeColor = true; + super.initializationComplete(); + } + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/frameworks/projects/flatspark/src/skins/HScrollBarThumbSkin.mxml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/skins/HScrollBarThumbSkin.mxml b/frameworks/projects/flatspark/src/skins/HScrollBarThumbSkin.mxml new file mode 100644 index 0000000..df5adf4 --- /dev/null +++ b/frameworks/projects/flatspark/src/skins/HScrollBarThumbSkin.mxml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e72f72e3/frameworks/projects/flatspark/src/skins/HScrollBarTrackSkin.mxml ---------------------------------------------------------------------- diff --git a/frameworks/projects/flatspark/src/skins/HScrollBarTrackSkin.mxml b/frameworks/projects/flatspark/src/skins/HScrollBarTrackSkin.mxml new file mode 100644 index 0000000..a9b8340 --- /dev/null +++ b/frameworks/projects/flatspark/src/skins/HScrollBarTrackSkin.mxml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +