44 lines
678 B
QML
44 lines
678 B
QML
pragma ComponentBehavior: Bound
|
|
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
|
|
Item {
|
|
id: root
|
|
|
|
implicitWidth: 32
|
|
implicitHeight: 32
|
|
|
|
Button {
|
|
id: button
|
|
anchors.fill: parent
|
|
|
|
contentItem: Item {
|
|
implicitWidth: 18
|
|
implicitHeight: 14
|
|
|
|
Column {
|
|
anchors.centerIn: parent
|
|
spacing: 4
|
|
|
|
Repeater {
|
|
model: 3
|
|
|
|
Rectangle {
|
|
width: 18
|
|
height: 2
|
|
radius: 1
|
|
color: Theme.color3
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
background: Rectangle {
|
|
radius: 3
|
|
color: button.down ? Theme.color4 : button.hovered ? Theme.color5 : Theme.colorTransparent
|
|
}
|
|
}
|
|
}
|
|
|