You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

38 lines
948 B

import QtQuick 2.1
import QtQuick.Controls 1.1
import QtQuick.Controls.Private 1.0
import "ColorUtils.js" as ColorUtils
/*!
\qmltype MenuBarStyle
\internal
\ingroup applicationwindowstyling
\inqmlmodule QtQuick.Controls.Styles
*/
Style {
SystemPalette { id: syspal }
readonly property color __backgroundColor: syspal.window
property Component frame: Rectangle {
width: control.__contentItem.width
height: contentHeight
color: __backgroundColor
}
property Component menuItem: Rectangle {
width: text.width + 12
height: text.height + 8
color: sunken ? syspal.highlight :__backgroundColor
Text {
id: text
text: StyleHelpers.stylizeMnemonics(menuItem.title)
anchors.centerIn: parent
renderType: Text.NativeRendering
color: sunken ? syspal.highlightedText : syspal.windowText
}
}
}