mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-19 04:18:08 +00:00
43 lines
898 B
QML
43 lines
898 B
QML
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
|
|
}
|