summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2015-07-26 13:52:46 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-26 06:19:53 -0700
commit3d5232a622c50818029b950afb0f63f2beead6ee (patch)
treecc95710fd3766cc66f0286cd5cd37c0a85e7f23f /qt-mobile
parent7be21b1d41ce14088123ca57315abb62de9613a7 (diff)
downloadsubsurface-3d5232a622c50818029b950afb0f63f2beead6ee.tar.gz
QML UI: add style to the menu button
Add some style to the menu button so that it fits the theme. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/main.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/qt-mobile/main.qml b/qt-mobile/main.qml
index c2d0f7779..c782f1f3d 100644
--- a/qt-mobile/main.qml
+++ b/qt-mobile/main.qml
@@ -1,5 +1,6 @@
import QtQuick 2.3
import QtQuick.Controls 1.2
+import QtQuick.Controls.Styles 1.2
import QtQuick.Window 2.2
import QtQuick.Dialogs 1.2
import QtQuick.Layouts 1.1
@@ -84,6 +85,20 @@ ApplicationWindow {
id: prefsButton
text: "\u22ee"
anchors.right: parent.right
+ style: ButtonStyle {
+ background: Rectangle {
+ implicitWidth: 72
+ color: "#2C4882"
+ }
+ label: Text {
+ id: txt
+ color: "white"
+ font.pointSize: 18
+ font.bold: true
+ text: control.text
+ horizontalAlignment: Text.AlignHCenter
+ }
+ }
onClicked: {
prefsMenu.popup()
}