Files
archpack/qml/buttons/SettingsBtn.qml
2026-11-14 16:29:49 +03:00

49 lines
785 B
QML

import QtQuick
import QtQuick.Controls
import "../components" as Components
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
}
onClicked: menu.opened ? menu.close() : menu.open()
}
Components.SettingsMenu {
id: menu
}
}