* Improved QML/JS.
[lichviet] / qml / LichViet / ToolBarSingle.qml
index 0225060..c1593da 100644 (file)
@@ -18,16 +18,30 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>
 import QtQuick 1.0
 
 Item {
-    id: toolbarsingle
+    id: toolbar
 
     property alias button1Label: button1.text
+
+    opacity: 0.8
+
     signal button1Clicked
-    focus:true
-    BorderImage { source:  theme_manager.theme.titlebar.sci; width: parent.width; height: parent.height + 14; y: -7 }
+
+    Rectangle {
+        color:"#7373b1"
+        width: parent.width
+        height: parent.height + 14
+
+        radius: 4
+    }
+
     Button {
-        id: button1
-       anchors.right: parent.right; anchors.rightMargin: 5; y: 3; width: 140; height: 40
-        onClicked: toolbarsingle.button1Clicked()
-        focus:true
+        id:button1
+        anchors.right: parent.right
+        anchors.rightMargin: 5
+        y: 5
+        width: 140
+        height: 42
+        onClicked: toolbar.button1Clicked();
     }
+
 }