flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - Mdl icon arrow down
Date Mon, 02 Jan 2017 00:34:14 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 8253a0dcc -> dc2aef23f


Mdl icon arrow down


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/dc2aef23
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/dc2aef23
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/dc2aef23

Branch: refs/heads/develop
Commit: dc2aef23fd1d2c886c55ecf65a4d1ebdf0953eb7
Parents: 8253a0d
Author: Carlos Rovira <carlosrovira@apache.org>
Authored: Mon Jan 2 01:34:08 2017 +0100
Committer: Carlos Rovira <carlosrovira@apache.org>
Committed: Mon Jan 2 01:34:08 2017 +0100

----------------------------------------------------------------------
 .../MDLExample/src/main/flex/Buttons.mxml       | 14 ++++--
 .../MaterialIconKeyboardArrowDown.as            | 52 ++++++++++++++++++++
 .../flex/mdl/materialIcons/MaterialIconsType.as |  1 +
 .../src/main/resources/mdl-manifest.xml         | 21 ++++----
 4 files changed, 75 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dc2aef23/examples/flexjs/MDLExample/src/main/flex/Buttons.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/Buttons.mxml b/examples/flexjs/MDLExample/src/main/flex/Buttons.mxml
index 0be4e70..a72ad48 100644
--- a/examples/flexjs/MDLExample/src/main/flex/Buttons.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/Buttons.mxml
@@ -24,10 +24,10 @@ limitations under the License.
     <!-- Buttons https://getmdl.io/components/index.html#buttons-section -->
     <mdl:Grid width="100">
         
-        <mdl:Button className="mdlbtn" style="display:block;"/>
+        <mdl:Button className="mdlbtn"/>
         
         <!-- Fab button -->
-        <mdl:Button id="mybtn" fab="true" colored="true" style="display:block;">
+        <mdl:Button id="mybtn" fab="true" colored="true">
             <mdl:beads>
                 <mdl:Tooltip text="A simple tooltip"/>
             </mdl:beads>
@@ -35,16 +35,22 @@ limitations under the License.
                 <mdl:MaterialIconAdd/>
             </mdl:materialIcon>
         </mdl:Button>
+
+        <mdl:Button fab="true" colored="true">
+            <mdl:materialIcon>
+                <mdl:MaterialIconKeyboardArrowDown/>
+            </mdl:materialIcon>
+        </mdl:Button>
         
         <!-- Fab with Ripple -->
-        <mdl:Button fab="true" ripple="true" style="display:block;">
+        <mdl:Button fab="true" ripple="true">
             <mdl:materialIcon>
                 <mdl:MaterialIconFace size="48"/>
             </mdl:materialIcon>
         </mdl:Button>
         
         <!-- Raised button -->
-        <mdl:Button text="COLORED" raised="true" colored="true" style="display:block;"/>
+        <mdl:Button text="COLORED" raised="true" colored="true"/>
         
         <!-- Raised button with ripple -->
         <mdl:Button text="ACCENT" raised="true" ripple="true" accent="true"/>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dc2aef23/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/materialIcons/MaterialIconKeyboardArrowDown.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/materialIcons/MaterialIconKeyboardArrowDown.as
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/materialIcons/MaterialIconKeyboardArrowDown.as
new file mode 100644
index 0000000..234e0db
--- /dev/null
+++ b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/materialIcons/MaterialIconKeyboardArrowDown.as
@@ -0,0 +1,52 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 org.apache.flex.mdl.materialIcons
+{
+    import org.apache.flex.mdl.supportClasses.MaterialIconBase;
+
+    /**
+     *  The MaterialIconKeyboardArrowDown bead class is a specialty bead that add "keyboard_arrow_down"
icon
+     *  to component taken from "material-icons"
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+    public class MaterialIconKeyboardArrowDown extends MaterialIconBase
+    {
+        /**
+         *  constructor.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+        public function MaterialIconKeyboardArrowDown()
+        {
+            super();
+        }
+        
+        override protected function get iconText():String
+        {
+            return MaterialIconsType.KEYBOARD_ARROW_DOWN;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dc2aef23/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/materialIcons/MaterialIconsType.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/materialIcons/MaterialIconsType.as
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/materialIcons/MaterialIconsType.as
index 1174287..3eea71d 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/materialIcons/MaterialIconsType.as
+++ b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/materialIcons/MaterialIconsType.as
@@ -29,5 +29,6 @@ package org.apache.flex.mdl.materialIcons
         public static const FACE:String = "face";
         public static const MORE_VERT:String = "more_vert";
         public static const SEARCH:String = "search";
+        public static const KEYBOARD_ARROW_DOWN:String = "keyboard_arrow_down";
     }
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/dc2aef23/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml b/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
index eb85ca0..b3d00cf 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
+++ b/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
@@ -75,15 +75,6 @@
     <component id="ButtonChip" class="org.apache.flex.mdl.ButtonChip"/>
     <component id="DeletableChip" class="org.apache.flex.mdl.beads.DeletableChip"/>
     <component id="DeletableLinkChip" class="org.apache.flex.mdl.beads.DeletableLinkChip"/>
-    <component id="MaterialIconCancel" class="org.apache.flex.mdl.materialIcons.MaterialIconCancel"/>
-    <component id="MaterialIconAdd" class="org.apache.flex.mdl.materialIcons.MaterialIconAdd"/>
-    <component id="MaterialIconPerson" class="org.apache.flex.mdl.materialIcons.MaterialIconPerson"/>
-    <component id="MaterialIconStar" class="org.apache.flex.mdl.materialIcons.MaterialIconStar"/>
-    <component id="MaterialIconShare" class="org.apache.flex.mdl.materialIcons.MaterialIconShare"/>
-    <component id="MaterialIconEvent" class="org.apache.flex.mdl.materialIcons.MaterialIconEvent"/>
-    <component id="MaterialIconFace" class="org.apache.flex.mdl.materialIcons.MaterialIconFace"/>
-    <component id="MaterialIconMoreVert" class="org.apache.flex.mdl.materialIcons.MaterialIconMoreVert"/>
-    <component id="MaterialIconSearch" class="org.apache.flex.mdl.materialIcons.MaterialIconSearch"/>
     <component id="ContactChip" class="org.apache.flex.mdl.beads.ContactChip"/>
     <component id="ContactImageChip" class="org.apache.flex.mdl.beads.ContactImageChip"/>
     <component id="Tooltip" class="org.apache.flex.mdl.beads.Tooltip"/>
@@ -95,4 +86,16 @@
     <component id="Toast" class="org.apache.flex.mdl.Toast"/>
     <component id="SnackbarModel" class="org.apache.flex.mdl.beads.models.SnackbarModel"/>
     <component id="Snackbar" class="org.apache.flex.mdl.Snackbar"/>
+
+    <component id="MaterialIconCancel" class="org.apache.flex.mdl.materialIcons.MaterialIconCancel"/>
+    <component id="MaterialIconAdd" class="org.apache.flex.mdl.materialIcons.MaterialIconAdd"/>
+    <component id="MaterialIconPerson" class="org.apache.flex.mdl.materialIcons.MaterialIconPerson"/>
+    <component id="MaterialIconStar" class="org.apache.flex.mdl.materialIcons.MaterialIconStar"/>
+    <component id="MaterialIconShare" class="org.apache.flex.mdl.materialIcons.MaterialIconShare"/>
+    <component id="MaterialIconEvent" class="org.apache.flex.mdl.materialIcons.MaterialIconEvent"/>
+    <component id="MaterialIconFace" class="org.apache.flex.mdl.materialIcons.MaterialIconFace"/>
+    <component id="MaterialIconMoreVert" class="org.apache.flex.mdl.materialIcons.MaterialIconMoreVert"/>
+    <component id="MaterialIconSearch" class="org.apache.flex.mdl.materialIcons.MaterialIconSearch"/>
+    <component id="MaterialIconKeyboardArrowDown" class="org.apache.flex.mdl.materialIcons.MaterialIconKeyboardArrowDown"/>
+
 </componentPackage>


Mime
View raw message