mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
added connectionController and ConnectionButton.qml
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user