summaryrefslogtreecommitdiff
path: root/test/dw_ui_test.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-12-11 23:31:03 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-12-11 23:31:03 +0100
commitc320585dddc168f79fe502dfa504fcec188b2329 (patch)
tree13a7c70e8b63d4c9f7e8868ada8048c416486318 /test/dw_ui_test.cc
parent8e34df3e95fb93b1857c9881d49b6aca46e159e9 (diff)
always use shaded colors
This makes things much simpler and improves sharing of colors. If computing two more shades really proves to be a performance issue, we can shade on demand without exposing this optimization to the interface.
Diffstat (limited to 'test/dw_ui_test.cc')
-rw-r--r--test/dw_ui_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dw_ui_test.cc b/test/dw_ui_test.cc
index 5ce949ef..22d541b5 100644
--- a/test/dw_ui_test.cc
+++ b/test/dw_ui_test.cc
@@ -53,8 +53,8 @@ int main(int argc, char **argv)
StyleAttrs styleAttrs;
styleAttrs.initValues ();
styleAttrs.margin.setVal (5);
- styleAttrs.color = Color::createSimple (layout, 0x000000);
- styleAttrs.backgroundColor = Color::createSimple (layout, 0xffffff);
+ styleAttrs.color = Color::create (layout, 0x000000);
+ styleAttrs.backgroundColor = Color::create (layout, 0xffffff);
FontAttrs fontAttrs;
fontAttrs.name = "Helvetica";