Hi Greg,
> They are easy enough to create, especially if you are using the Pivot plugin
> for Eclipse, so I don't think it is worth putting them in SVN. We'd also need
> to remove or update them if the corresponding test app is removed or modified
> - probably not worth it.
my launch files (with all startup parameters to test custom colors,
etc) are not-so trivial, but no problem ... if someone need them can
ask to me.
> Maybe change WHITE to index 4 from the color palette?
yes, this is the patch.
### Eclipse Workspace Patch 1.0
#P demos
Index: src/org/apache/pivot/demos/styles/ColorSchemeBuilderWindow.java
===================================================================
--- src/org/apache/pivot/demos/styles/ColorSchemeBuilderWindow.java
(revision
1041163)
+++ src/org/apache/pivot/demos/styles/ColorSchemeBuilderWindow.java (working
copy)
@@ -198,10 +198,12 @@
Border border = new Border();
border.getStyles().put("backgroundColor", index);
+ TerraTheme terraTheme = (TerraTheme)Theme.getTheme();
+
Label label = new Label();
label.setText(Integer.toString(index));
label.getStyles().put("font", "{size:'80%'}");
- label.getStyles().put("backgroundColor", Color.WHITE);
+ label.getStyles().put("backgroundColor", terraTheme.getColor(4));
label.getStyles().put("padding", 1);
BoxPane boxPane = new BoxPane();
I can apply tomorrow, tell me ...
Bye