added connectionController and ConnectionButton.qml

This commit is contained in:
vladimir.kuznetsov 2023-05-12 23:54:31 +08:00
parent dd0de7e8be
commit 35d4222c7a
17 changed files with 233 additions and 60 deletions

View file

@ -0,0 +1,40 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
Button {
id: root
implicitHeight: 190
implicitWidth: 190
background: Rectangle {
id: background
radius: parent.width * 0.5
color: "transparent"
border.width: 2
border.color: "white"
}
contentItem: Text {
height: 24
font.family: "PT Root UI VF"
font.weight: 700
font.pixelSize: 20
color: "#D7D8DB"
text: root.text
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
onClicked: {
background.color = "red"
ConnectionController.onConnectionButtonClicked()
}
}