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>
This commit is contained in:
Joakim Bygdell 2015-07-26 13:52:46 +02:00 committed by Dirk Hohndel
parent 7be21b1d41
commit 3d5232a622

View file

@ -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()
}