--- a/javauis/lcdui_qt/src/javax/microedition/lcdui/CanvasKeypad.java Fri Sep 17 16:44:34 2010 +0300
+++ b/javauis/lcdui_qt/src/javax/microedition/lcdui/CanvasKeypad.java Mon Oct 04 11:29:25 2010 +0300
@@ -343,27 +343,28 @@
cssEngine.applyCSS(gameA, "QPushButton" + "{" + "background-color:white;"
+ "border-style: outset;" + "border-width: 1px; " + "border-color: black;"
+ "border-radius: 2px;" + "font: bold 14px;" + "min-height: 2em;" + "min-width: 5.1em;"
- + "image: url(" + RESOURCE_PATH + "qtg_mono_game_a.svg);" + "}"
- + "QPushButton:pressed { image: url(" + RESOURCE_PATH + "qtg_mono_game_a.svg);"
- + " border-style: inset;" + "}");
+ + "}"
+ + "QPushButton:pressed { border-style: inset;" + "}");
cssEngine.applyCSS(gameB, "QPushButton" + "{" + "background-color:white;"
+ "border-style: outset;" + "border-width: 1px; " + "border-color: black;"
+ "border-radius: 2px;" + "font: bold 14px;" + "min-height: 2em;" + "min-width: 5.1em;"
- + "image: url(" + RESOURCE_PATH + "qtg_mono_game_b.svg);" + "}"
- + "QPushButton:pressed { image: url(" + RESOURCE_PATH + "qtg_mono_game_b.svg);"
- + " border-style: inset;" + "}");
+ + "}"
+ + "QPushButton:pressed { border-style: inset;" + "}");
cssEngine.applyCSS(gameC, "QPushButton" + "{" + "background-color:white;"
+ "border-style: outset;" + "border-width: 1px; " + "border-color: black;"
+ "border-radius: 2px;" + "font: bold 14px;" + "min-height: 2em;" + "min-width: 5.1em;"
- + "image: url(" + RESOURCE_PATH + "qtg_mono_game_c.svg);" + "}"
- + "QPushButton:pressed { image: url(" + RESOURCE_PATH + "qtg_mono_game_c.svg);"
- + " border-style: inset;" + "}");
+ + "}"
+ + "QPushButton:pressed { border-style: inset;" + "}");
cssEngine.applyCSS(gameD, "QPushButton" + "{" + "background-color:white;"
+ "border-style: outset;" + "border-width: 1px; " + "border-color: black;"
+ "border-radius: 2px;" + "font: bold 14px;" + "min-height: 2em;" + "min-width: 5.1em;"
- + "image: url(" + RESOURCE_PATH + "qtg_mono_game_d.svg);" + "}"
- + "QPushButton:pressed { image: url(" + RESOURCE_PATH + "qtg_mono_game_d.svg);"
- + " border-style: inset;" + "}");
+ + "}"
+ + "QPushButton:pressed { border-style: inset;" + "}");
+
+ gameA.setText("A");
+ gameB.setText("B");
+ gameC.setText("C");
+ gameD.setText("D");
// layout the game Keys
FormData gameAFormData = new FormData();
@@ -441,18 +442,17 @@
cssEngine.applyCSS(skright, "QPushButton" + "{" + "background-color:white;"
+ "border-style: outset;" + "border-width: 1px; "
+ "border-bottom-left-radius: 22px;" + "border-color: black;"
- + "font: bold 14px;" + "min-width: 3em;" + "min-height: 2em;" + "image: url("
- + RESOURCE_PATH + "qtg_mono_rsk_horizontal.svg);" + "}"
- + "QPushButton:pressed { image: url(" + RESOURCE_PATH
- + "qtg_mono_rsk_horizontal.svg);" + " border-style: inset;" + "}");
+ + "font: bold 14px;" + "min-width: 3em;" + "min-height: 2em;" + "}"
+ + "QPushButton:pressed { border-style: inset;" + "}");
cssEngine.applyCSS(skleft, "QPushButton" + "{" + "background-color:white;"
+ "border-style: outset;" + "border-width: 1px; "
+ "border-bottom-right-radius: 22px;" + "border-color: black;"
- + "font: bold 14px;" + "min-width: 3em;" + "min-height: 2em;" + "image: url("
- + RESOURCE_PATH + "qtg_mono_lsk_horizontal.svg);" + "}"
- + "QPushButton:pressed { image: url(" + RESOURCE_PATH
- + "qtg_mono_lsk_horizontal.svg);" + " border-style: inset;" + "}");
+ + "font: bold 14px;" + "min-width: 3em;" + "min-height: 2em;" + "}"
+ + "QPushButton:pressed { border-style: inset;" + "}");
+
+ skleft.setText("LSK");
+ skright.setText("RSK");
FormData sklFormData = new FormData();
sklFormData.top = new FormAttachment(0, 0);