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 3bd77ef Royale Themes Starter project - Setup initial project and only one button in place with some basic styles 3bd77ef is described below commit 3bd77ef243561e6c125535641bcb2571520d2524 Author: Carlos Rovira <carlosrov...@apache.org> AuthorDate: Wed Nov 1 23:35:42 2017 +0100 Royale Themes Starter project - Setup initial project and only one button in place with some basic styles --- examples/royale/RoyaleThemes/.vscode/launch.json | 21 +++++++ examples/royale/RoyaleThemes/.vscode/settings.json | 3 + examples/royale/RoyaleThemes/.vscode/tasks.json | 9 +++ examples/royale/RoyaleThemes/README.txt | 24 ++++++++ examples/royale/RoyaleThemes/build.xml | 66 ++++++++++++++++++++++ examples/royale/RoyaleThemes/pom.xml | 64 +++++++++++++++++++++ .../src/main/resources/wirefarme-styles.css | 63 +++++++++++++++++++++ .../royale/RoyaleThemes/src/main/royale/App.mxml | 35 ++++++++++++ .../src/main/royale/ButtonPlayGround.mxml | 27 +++++++++ 9 files changed, 312 insertions(+) diff --git a/examples/royale/RoyaleThemes/.vscode/launch.json b/examples/royale/RoyaleThemes/.vscode/launch.json new file mode 100644 index 0000000..5dfb672 --- /dev/null +++ b/examples/royale/RoyaleThemes/.vscode/launch.json @@ -0,0 +1,21 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Launch Chrome against debug.html, with sourcemaps", + "type": "chrome", + "request": "launch", + "file": "${workspaceRoot}/target/javascript/bin/js-debug/index.html", + "sourceMaps": true, + "preLaunchTask": "mvn" + }, + { + "name": "Launch Firefox against debug.html, with sourcemaps", + "type": "firefox", + "request": "launch", + "file": "${workspaceRoot}/target/javascript/bin/js-debug/index.html", + "sourceMaps": true, + "preLaunchTask": "mvn" + } + ] +} diff --git a/examples/royale/RoyaleThemes/.vscode/settings.json b/examples/royale/RoyaleThemes/.vscode/settings.json new file mode 100644 index 0000000..7d711b1 --- /dev/null +++ b/examples/royale/RoyaleThemes/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "nextgenas.sdk.framework": "/Users/carlosrovira/Dev/Royale/sdks/apache-royale-0.9.0" +} \ No newline at end of file diff --git a/examples/royale/RoyaleThemes/.vscode/tasks.json b/examples/royale/RoyaleThemes/.vscode/tasks.json new file mode 100644 index 0000000..ba97ffc --- /dev/null +++ b/examples/royale/RoyaleThemes/.vscode/tasks.json @@ -0,0 +1,9 @@ +{ + // for the documentation about the tasks.json format + //"--royaleHome=/Users/carlosrovira/Dev/Royale/sdks/royale-0.8.0" + "version": "0.1.0", + "command": "mvn", + "args": ["clean", "install", "-DskipTests"], + "isShellCommand": true, + "showOutput": "always" +} \ No newline at end of file diff --git a/examples/royale/RoyaleThemes/README.txt b/examples/royale/RoyaleThemes/README.txt new file mode 100644 index 0000000..84e5aba --- /dev/null +++ b/examples/royale/RoyaleThemes/README.txt @@ -0,0 +1,24 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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. +// +//////////////////////////////////////////////////////////////////////////////// + +DESCRIPTION + +The RoyaleThemes is demo app to customize styles on Royale components + +Right now this is a starter project with only a button to start developing styles diff --git a/examples/royale/RoyaleThemes/build.xml b/examples/royale/RoyaleThemes/build.xml new file mode 100644 index 0000000..f4e70b8 --- /dev/null +++ b/examples/royale/RoyaleThemes/build.xml @@ -0,0 +1,66 @@ +<?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. + +--> + +<!-- This file is not setup, people using ANT should take care of this and remove this line--> +<project name="royalethemes" default="main" basedir="."> + <property name="ROYALE_HOME" location="../../.."/> + <property name="example" value="RoyaleThemes" /> + + <property file="${ROYALE_HOME}/env.properties"/> + <property environment="env"/> + <property file="${ROYALE_HOME}/build.properties"/> + <property name="FLEX_HOME" value="${ROYALE_HOME}"/> + + <include file="${basedir}/../../build_example.xml" /> + + <target name="main" depends="clean,build_example.compile" description="Clean build of ${example}"> + <!--<mkdir dir="${basedir}/bin/js-debug/assets" /> + <copy todir="${basedir}/bin/js-debug/assets" > + <fileset dir="${basedir}/src/main/resources/assets"> + <include name="**" /> + </fileset> + </copy> + <mkdir dir="${basedir}/bin/js-release/assets" /> + <copy todir="${basedir}/bin/js-release/assets" > + <fileset dir="${basedir}/src/main/resources/assets"> + <include name="**" /> + </fileset> + </copy>--> + </target> + + <target name="clean"> + <delete dir="${basedir}/bin" failonerror="false" /> + <delete dir="${basedir}/bin-debug" failonerror="false" /> + <delete dir="${basedir}/bin-release" failonerror="false" /> + <delete dir="${basedir}/target" failonerror="false" /> + </target> + + <target name="examine" depends="build_example.get.browser"> + <property name="which" value="debug" /> + <echo message="Verify basic table support."/> + <exec executable="${browser}" dir="${basedir}/bin-${which}" failonerror="true"> + <arg value="${basedir}/bin-${which}/${example}.html"/> + </exec> + <exec executable="${browser}" dir="${basedir}/bin/js-${which}" failonerror="true"> + <arg value="${basedir}/bin/js-${which}/index.html"/> + </exec> + </target> + +</project> diff --git a/examples/royale/RoyaleThemes/pom.xml b/examples/royale/RoyaleThemes/pom.xml new file mode 100644 index 0000000..c67171a --- /dev/null +++ b/examples/royale/RoyaleThemes/pom.xml @@ -0,0 +1,64 @@ +<?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. + +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <!-- + Flash Version: CSS problems + --> + + <parent> + <groupId>org.apache.royale.examples</groupId> + <artifactId>examples-royale</artifactId> + <version>0.9.0-SNAPSHOT</version> + </parent> + + <artifactId>RoyaleThemes</artifactId> + <version>0.9.0-SNAPSHOT</version> + <packaging>swf</packaging> + + <name>Apache Royale: Examples: Royale: RoyaleThemes</name> + + <build> + <plugins> + <plugin> + <groupId>org.apache.royale.compiler</groupId> + <artifactId>royale-maven-plugin</artifactId> + <extensions>true</extensions> + <configuration> + <mainClass>App.mxml</mainClass> + </configuration> + </plugin> + </plugins> + </build> + + <dependencies> + <dependency> + <groupId>com.adobe.flash.framework</groupId> + <artifactId>playerglobal</artifactId> + <version>${flash.version}</version> + <type>swc</type> + <scope>provided</scope> + </dependency> + </dependencies> + +</project> diff --git a/examples/royale/RoyaleThemes/src/main/resources/wirefarme-styles.css b/examples/royale/RoyaleThemes/src/main/resources/wirefarme-styles.css new file mode 100644 index 0000000..e29dda5 --- /dev/null +++ b/examples/royale/RoyaleThemes/src/main/resources/wirefarme-styles.css @@ -0,0 +1,63 @@ +/* +//////////////////////////////////////////////////////////////////////////////// +// +// 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. +// +//////////////////////////////////////////////////////////////////////////////// +*/ + +@namespace "http://www.w3.org/1999/xhtml"; +@namespace js "library://ns.apache.org/royale/basic"; + +.royale *, . royale *:before, . royale *:after { + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +.page-content +{ + padding: 10px; + margin: 10px; +} + +/* +* TextButton +*/ + +js|TextButton { + /* Background: */ +background: #D8D8D8; +border: 1px solid #979797; +border-radius: 3px; + +/* TextField: */ +font-family: HelveticaNeue; +font-size: 12px; +color: #646D7A; +} + +/*js|TextButton:hover { + background-color: #CFCFCF; + vertical-align: middle; + border: none; + border-radius: 6px; +} + +js|TextButton:active { + background-color: #77CEFF; + color: #FFFFFF; +}*/ \ No newline at end of file diff --git a/examples/royale/RoyaleThemes/src/main/royale/App.mxml b/examples/royale/RoyaleThemes/src/main/royale/App.mxml new file mode 100644 index 0000000..c043933 --- /dev/null +++ b/examples/royale/RoyaleThemes/src/main/royale/App.mxml @@ -0,0 +1,35 @@ +<?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. +// +//////////////////////////////////////////////////////////////////////////////// +--> +<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:js="library://ns.apache.org/royale/basic" + xmlns:local="*"> + + <fx:Style source="../../main/resources/wirefarme-styles.css"/> + + <js:valuesImpl> + <js:SimpleCSSValuesImpl /> + </js:valuesImpl> + <js:initialView> + <js:View width="100%" height="100%" className="page-content"> + <local:ButtonPlayGround/> + </js:View> + </js:initialView> +</js:Application> diff --git a/examples/royale/RoyaleThemes/src/main/royale/ButtonPlayGround.mxml b/examples/royale/RoyaleThemes/src/main/royale/ButtonPlayGround.mxml new file mode 100644 index 0000000..e22288a --- /dev/null +++ b/examples/royale/RoyaleThemes/src/main/royale/ButtonPlayGround.mxml @@ -0,0 +1,27 @@ +<?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. + +--> +<js:View xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:js="library://ns.apache.org/royale/basic" > + + + + <js:TextButton text="Button" width="120" height="40"/> + +</js:View> -- To stop receiving notification emails like this one, please contact ['"commits@royale.apache.org" <commits@royale.apache.org>'].