You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/06/19 10:56:58 UTC

[royale-asjs] branch develop updated: tour-de-jewel: add simpleloader example

This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 896ae12  tour-de-jewel: add simpleloader example
896ae12 is described below

commit 896ae129d3f2be0930a4ea7a12291df59c10a322
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Fri Jun 19 12:56:48 2020 +0200

    tour-de-jewel: add simpleloader example
---
 .../TourDeJewel/src/main/royale/MainContent.mxml   |  1 +
 .../src/main/royale/MiscelaneaPlayGound.mxml       |  4 +-
 .../src/main/royale/ProgressLoaderPlayGround.mxml  | 61 ++++++++++++++++++++++
 .../src/main/royale/models/MainNavigationModel.as  |  1 +
 4 files changed, 65 insertions(+), 2 deletions(-)

diff --git a/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml b/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml
index 4b791a9..64a4cd8 100644
--- a/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml
+++ b/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml
@@ -343,6 +343,7 @@ limitations under the License.
         <local:PopUpPlayGround name="popup_panel"/>
         <local:AdvancedListPlayGround name="advanced_list_panel"/>
         <local:VirtualListsPlayGround name="virtual_lists_panel"/>
+        <local:ProgressLoaderPlayGround name="progressloader_panel"/>
     </j:ApplicationMainContent>
 
     <!-- <j:ResponsiveSizeMonitor/> -->
diff --git a/examples/jewel/TourDeJewel/src/main/royale/MiscelaneaPlayGound.mxml b/examples/jewel/TourDeJewel/src/main/royale/MiscelaneaPlayGound.mxml
index 964291c..076c51b 100644
--- a/examples/jewel/TourDeJewel/src/main/royale/MiscelaneaPlayGound.mxml
+++ b/examples/jewel/TourDeJewel/src/main/royale/MiscelaneaPlayGound.mxml
@@ -37,8 +37,8 @@ limitations under the License.
 				<![CDATA[<strong>Jewel Icons</strong> examples.]]>
 			</c:description>
 		</c:ExampleHeader>
-
-		<j:GridCell desktopNumerator="1" desktopDenominator="2" tabletNumerator="1" tabletDenominator="2" phoneNumerator="1" phoneDenominator="1">
+        
+        <j:GridCell desktopNumerator="1" desktopDenominator="2" tabletNumerator="1" tabletDenominator="2" phoneNumerator="1" phoneDenominator="1">
             <j:Card>
                 <j:CardHeader>
                     <html:H3 text="Material Icon Sizes" className="primary-normal"/>
diff --git a/examples/jewel/TourDeJewel/src/main/royale/ProgressLoaderPlayGround.mxml b/examples/jewel/TourDeJewel/src/main/royale/ProgressLoaderPlayGround.mxml
new file mode 100644
index 0000000..6374b63
--- /dev/null
+++ b/examples/jewel/TourDeJewel/src/main/royale/ProgressLoaderPlayGround.mxml
@@ -0,0 +1,61 @@
+<?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.
+
+-->
+<c:ExampleAndSourceCodeTabbedSectionContent xmlns:fx="http://ns.adobe.com/mxml/2009" 
+	xmlns:j="library://ns.apache.org/royale/jewel" 
+	xmlns:html="library://ns.apache.org/royale/html" 
+	xmlns:js="library://ns.apache.org/royale/basic" 
+	xmlns:c="components.*" sourceCodeUrl="HeadingsAndText.mxml">
+	
+	<j:Grid gap="true" itemsVerticalAlign="itemsSameHeight">
+		<j:beads>
+			<j:Paddings paddingTop="0" paddingLeft="50" paddingRight="50" paddingBottom="50"/>
+		</j:beads>
+		
+		<c:ExampleHeader title="Jewel Progress Bar &amp; Loader">
+			<c:description>
+				<![CDATA[<strong>Jewel Progress Bar &amp; Loader</strong> examples.]]>
+			</c:description>
+		</c:ExampleHeader>
+
+		<j:GridCell desktopNumerator="1" desktopDenominator="2" tabletNumerator="1" tabletDenominator="2" phoneNumerator="1" phoneDenominator="1">
+            <j:Card>
+                <j:CardHeader>
+                    <html:H3 text="Simple Loader" className="primary-normal"/>
+                </j:CardHeader>
+                <j:CardPrimaryContent>
+                    <j:SimpleLoader emphasis="primary" width="80" height="80" 
+                        indeterminate="true"/>
+                    <j:Label text="primary color and indeterminate is true"/>
+                    <j:SimpleLoader emphasis="secondary" width="80" height="80" 
+                        indeterminate="false"/>
+                    <j:Label text="secondary color and indeterminate is false"/>
+                    <j:SimpleLoader emphasis="emphasized" width="80" height="80" 
+                        indeterminate="true"/>
+                    <j:Label text="emphasized color"/>
+                    <j:SimpleLoader width="80" height="80" 
+                        indeterminate="true"/>
+                    <j:Label text="default color"/>
+                </j:CardPrimaryContent>
+            </j:Card>
+        </j:GridCell>
+		
+	</j:Grid>
+
+</c:ExampleAndSourceCodeTabbedSectionContent>
diff --git a/examples/jewel/TourDeJewel/src/main/royale/models/MainNavigationModel.as b/examples/jewel/TourDeJewel/src/main/royale/models/MainNavigationModel.as
index d6711d9..6b3af86 100644
--- a/examples/jewel/TourDeJewel/src/main/royale/models/MainNavigationModel.as
+++ b/examples/jewel/TourDeJewel/src/main/royale/models/MainNavigationModel.as
@@ -39,6 +39,7 @@ package models
             new NavigationLinkVO("Virtual Lists", "virtual_lists_panel", MaterialIconType.LINE_WEIGHT),
             new NavigationLinkVO("NumericStepper", "numericstepper_panel", MaterialIconType.UNFOLD_MORE),
             new NavigationLinkVO("PopUp", "popup_panel", MaterialIconType.FLIP_TO_FRONT),
+            new NavigationLinkVO("ProgressBar", "progressloader_panel", MaterialIconType.AUTORENEW),
             new NavigationLinkVO("RadioButton", "radiobutton_panel", MaterialIconType.RADIO_BUTTON_CHECKED),
             new NavigationLinkVO("Slider", "slider_panel", MaterialIconType.STORAGE),
             new NavigationLinkVO("Snackbar", "snackbar_panel", MaterialIconType.VIDEO_LABEL),