mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
7be21b1d41
commit
3d5232a622
1 changed files with 15 additions and 0 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue