Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Resolve PIVOT-601; add initial pass at WinXP and OS X color schemes.

git-svn-id: https://svn.apache.org/repos/asf/pivot/trunk@987676 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 7c05f79c098c5a0d48812c1b7e05553135cf1c0a 1 parent 42bef23
Gregory K. Brown authored
View
27 build.xml
@@ -648,33 +648,46 @@ limitations under the License.
<!-- Installs JARs to local Maven repository -->
<target name="maven-install" depends="clean, package, package-sources">
- <artifact:install file="pom.xml">
+ <mkdir dir="maven-install"/>
+
+ <copy todir="maven-install">
+ <fileset dir=".">
+ <include name="**/pom.xml"/>
+ </fileset>
+ <filterset>
+ <filter token="VERSION" value="${version}"/>
+ </filterset>
+ </copy>
+
+ <artifact:install file="maven-install/pom.xml">
<artifact:pom file="pom.xml"/>
</artifact:install>
<artifact:install file="lib/${jar.core}">
- <artifact:pom file="core/pom.xml"/>
+ <artifact:pom file="maven-install/core/pom.xml"/>
<attach file="lib/${jar.core.sources}" classifier="sources" />
</artifact:install>
<artifact:install file="lib/${jar.web}">
- <artifact:pom file="web/pom.xml"/>
+ <artifact:pom file="maven-install/web/pom.xml"/>
<attach file="lib/${jar.web.sources}" classifier="sources" />
</artifact:install>
<artifact:install file="lib/${jar.web-server}">
- <artifact:pom file="web/pom.xml"/>
+ <artifact:pom file="maven-install/web-server/pom.xml"/>
<attach file="lib/${jar.web-server.sources}" classifier="sources" />
</artifact:install>
<artifact:install file="lib/${jar.wtk}">
- <artifact:pom file="wtk/pom.xml"/>
+ <artifact:pom file="maven-install/wtk/pom.xml"/>
<attach file="lib/${jar.wtk.sources}" classifier="sources" />
</artifact:install>
<artifact:install file="lib/${jar.wtk-terra}">
- <artifact:pom file="wtk-terra/pom.xml"/>
+ <artifact:pom file="maven-install/wtk-terra/pom.xml"/>
<attach file="lib/${jar.wtk-terra.sources}" classifier="sources" />
</artifact:install>
<artifact:install file="lib/${jar.charts}">
- <artifact:pom file="charts/pom.xml"/>
+ <artifact:pom file="maven-install/charts/pom.xml"/>
<attach file="lib/${jar.charts.sources}" classifier="sources" />
</artifact:install>
+
+ <delete dir="maven-install"/>
</target>
<!-- Remove trailing white space in all source files -->
View
6 charts/pom.xml
@@ -23,10 +23,10 @@ limitations under the License.
<parent>
<groupId>org.apache.pivot</groupId>
<artifactId>pivot</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
</parent>
<artifactId>pivot-charts</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
<packaging>jar</packaging>
<name>Apache Pivot Charts</name>
<description>Apache Pivot Charts</description>
@@ -34,7 +34,7 @@ limitations under the License.
<dependency>
<groupId>org.apache.pivot</groupId>
<artifactId>pivot-wtk</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
</dependency>
</dependencies>
</project>
View
4 core/pom.xml
@@ -23,10 +23,10 @@ limitations under the License.
<parent>
<groupId>org.apache.pivot</groupId>
<artifactId>pivot</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
</parent>
<artifactId>pivot-core</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
<packaging>jar</packaging>
<name>Apache Pivot Core</name>
<description>Apache Pivot Core Library</description>
View
5 deployment-example.xml
@@ -160,7 +160,9 @@ JarBundler requires Mac OS X. See the project home page for installation instruc
outfile="${example.exe}">
<classPath mainClass="org.apache.pivot.wtk.DesktopApplicationContext"
cp="${folder.lib}/pivot-core-${version}.jar;${folder.lib}/pivot-wtk-${version}.jar;${folder.lib}/pivot-wtk-terra-${version}.jar"/>
- <jre minVersion="1.6.0"/>
+ <jre minVersion="1.6.0">
+ <opt>-Dorg.apache.pivot.wtk.skin.terra.location=TerraTheme_winxp.json</opt>
+ </jre>
</config>
</launch4j>
@@ -184,6 +186,7 @@ JarBundler requires Mac OS X. See the project home page for installation instruc
name="${example.name}"
mainclass="org.apache.pivot.wtk.DesktopApplicationContext"
arguments="org.apache.pivot.examples.deployment.DeploymentExample"
+ vmoptions="-Dorg.apache.pivot.wtk.skin.terra.location=TerraTheme_osx.json"
icon="${ant.project.name}/${folder.src}/${example.path}/logo-notext-256x256.icns">
<jarfileset dir="${folder.lib}">
<include name="${example.jar}"/>
View
2  pom.xml
@@ -23,7 +23,7 @@ limitations under the License.
<groupId>org.apache.pivot</groupId>
<artifactId>pivot</artifactId>
<packaging>pom</packaging>
- <version>${version}</version>
+ <version>@VERSION@</version>
<organization>
<name>Apache Software Foundation</name>
<url>http://www.apache.org</url>
View
8 web-server/pom.xml
@@ -23,10 +23,10 @@ limitations under the License.
<parent>
<groupId>org.apache.pivot</groupId>
<artifactId>pivot</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
</parent>
<artifactId>pivot-web-server</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
<packaging>jar</packaging>
<name>Apache Pivot Web Server</name>
<description>Apache Pivot Web Server Library</description>
@@ -34,12 +34,12 @@ limitations under the License.
<dependency>
<groupId>org.apache.pivot</groupId>
<artifactId>pivot-core</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
</dependency>
<dependency>
<groupId>org.apache.pivot</groupId>
<artifactId>pivot-web</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
</dependency>
</dependencies>
</project>
View
6 web/pom.xml
@@ -23,10 +23,10 @@ limitations under the License.
<parent>
<groupId>org.apache.pivot</groupId>
<artifactId>pivot</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
</parent>
<artifactId>pivot-web</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
<packaging>jar</packaging>
<name>Apache Pivot Web</name>
<description>Apache Pivot Web Library</description>
@@ -34,7 +34,7 @@ limitations under the License.
<dependency>
<groupId>org.apache.pivot</groupId>
<artifactId>pivot-core</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
</dependency>
</dependencies>
</project>
View
6 wtk-terra/pom.xml
@@ -23,10 +23,10 @@ limitations under the License.
<parent>
<groupId>org.apache.pivot</groupId>
<artifactId>pivot</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
</parent>
<artifactId>pivot-wtk-terra</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
<packaging>jar</packaging>
<name>Apache Pivot WTK Terra Theme</name>
<description>Apache Pivot WTK Terra Theme Library</description>
@@ -34,7 +34,7 @@ limitations under the License.
<dependency>
<groupId>org.apache.pivot</groupId>
<artifactId>pivot-wtk</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
</dependency>
</dependencies>
</project>
View
43 wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTheme_osx.json
@@ -0,0 +1,43 @@
+/*
+ * 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.
+ */
+{ font: "Verdana 11",
+
+ colors: [
+ "#000000",
+ "#ffffff",
+ "#919191",
+ "#dadada",
+ "#2f5aa5",
+ "#616161",
+ "#ffe480",
+ "#eb0000"
+ ],
+
+ messageIcons: {
+ error: "message_type-error-32x32.png",
+ warning: "message_type-warning-32x32.png",
+ question: "message_type-question-32x32.png",
+ info: "message_type-info-32x32.png"
+ },
+
+ smallMessageIcons: {
+ error: "message_type-error-16x16.png",
+ warning: "message_type-warning-16x16.png",
+ question: "message_type-question-16x16.png",
+ info: "message_type-info-16x16.png"
+ }
+}
View
43 wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTheme_winxp.json
@@ -0,0 +1,43 @@
+/*
+ * 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.
+ */
+{ font: "Verdana 11",
+
+ colors: [
+ "#000000",
+ "#ffffff",
+ "#999999",
+ "#f0f0ea",
+ "#2f64b9",
+ "#1a961a",
+ "#ffe480",
+ "#eb0000"
+ ],
+
+ messageIcons: {
+ error: "message_type-error-32x32.png",
+ warning: "message_type-warning-32x32.png",
+ question: "message_type-question-32x32.png",
+ info: "message_type-info-32x32.png"
+ },
+
+ smallMessageIcons: {
+ error: "message_type-error-16x16.png",
+ warning: "message_type-warning-16x16.png",
+ question: "message_type-question-16x16.png",
+ info: "message_type-info-16x16.png"
+ }
+}
View
6 wtk/pom.xml
@@ -23,10 +23,10 @@ limitations under the License.
<parent>
<groupId>org.apache.pivot</groupId>
<artifactId>pivot</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
</parent>
<artifactId>pivot-wtk</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
<packaging>jar</packaging>
<name>Apache Pivot WTK</name>
<description>Apache Pivot WTK Library</description>
@@ -34,7 +34,7 @@ limitations under the License.
<dependency>
<groupId>org.apache.pivot</groupId>
<artifactId>pivot-core</artifactId>
- <version>${version}</version>
+ <version>@VERSION@</version>
</dependency>
</dependencies>
</project>
Please sign in to comment.
Something went wrong with that request. Please try again.