From 3d5232a622c50818029b950afb0f63f2beead6ee Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Sun, 26 Jul 2015 13:52:46 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-mobile/main.qml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'qt-mobile') 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() } -- cgit v1.2.3-70-g09d2