forked from github_mirror/framelesshelper
24 lines
540 B
QML
24 lines
540 B
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
|
|
Button {
|
|
id: control
|
|
|
|
implicitWidth: 45
|
|
implicitHeight: 30
|
|
|
|
ToolTip.visible: hovered && !down
|
|
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
|
|
ToolTip.text: qsTr("Close")
|
|
|
|
contentItem: Image {
|
|
anchors.fill: control
|
|
source: "qrc:/images/button_close_white.svg"
|
|
}
|
|
|
|
background: Rectangle {
|
|
visible: control.down || control.hovered
|
|
color: control.down ? "#8c0a15" : (control.hovered ? "#e81123" : "transparent")
|
|
}
|
|
}
|