added connectionController and ConnectionButton.qml
This commit is contained in:
parent
dd0de7e8be
commit
35d4222c7a
17 changed files with 233 additions and 60 deletions
40
client/ui/qml/Components/ConnectButton.qml
Normal file
40
client/ui/qml/Components/ConnectButton.qml
Normal 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()
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue