/
GSIButton.qml
55 lines (54 loc) · 1.4 KB
/
GSIButton.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import QtQuick 2.10
Rectangle
{
color: "#4285F4"
border.color: "#4285F4"
border.width: 5
height: 40
width: childrenRect.width
radius: 2
Row
{
height: parent.height
anchors.verticalCenter: parent.verticalCenter
spacing: 8
rightPadding: 8
Rectangle
{
anchors.verticalCenter: parent.verticalCenter
color: "white"
border.color: "#4285F4"
border.width: 1
width: 40
radius: 2
height: width
Image
{
anchors.centerIn: parent
width: 18
height: width
source: "img/g_icon.svg"
sourceSize: Qt.size(width,height)
}
Rectangle
{
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
color: "white"
border.color: "transparent"
border.width: 1
width: parent.radius
height: parent.height-parent.radius
}
}
Text
{
anchors.verticalCenter: parent.verticalCenter
font.family: "roboto"
font.weight: Font.Bold
text: qsTr("Sign in with Google")
color: "white"
verticalAlignment: Text.AlignVCenter
}
}
}