import QtQuick 2.7 import QtQuick.Controls 2.2 import Common.Styles 1.0 // ============================================================================= MenuItem { id: button background: Rectangle { color: button.down ? MenuItemStyle.background.color.pressed : ( button.hovered ? MenuItemStyle.background.color.hovered : MenuItemStyle.background.color.normal ) implicitHeight: MenuItemStyle.background.height } contentItem: Text { color: button.enabled ? MenuItemStyle.text.color.enabled : MenuItemStyle.text.color.disabled elide: Text.ElideRight font { bold: true pointSize: MenuItemStyle.text.pointSize } text: button.text leftPadding: MenuItemStyle.leftPadding rightPadding: MenuItemStyle.rightPadding verticalAlignment: Text.AlignVCenter } hoverEnabled: true }