import QtQuick 2.12 import QtQuick.Layouts 1.12 import QtQuick.Controls 2.5 import org.ukui.menu.core 1.0 MouseArea { id: control hoverEnabled: true StyleBackground { anchors.fill: parent radius: 4 useStyleTransparent: false alpha: control.containsPress ? 0.82 : control.containsMouse ? 0.55 : 0.00 ToolTip.visible: content.textTruncated && control.containsMouse ToolTip.text: name IconLabel { id: content anchors.fill: parent iconHeight: 32; iconWidth: iconHeight appName: name; appIcon: icon display: Display.TextBesideIcon spacing: 12 } } }