@@ -14,6 +14,7 @@ Popup {
14
14
property string link: " "
15
15
modal: true
16
16
padding: 0
17
+ anchors .centerIn : parent
17
18
18
19
background: Rectangle {
19
20
color: Theme .color .background
@@ -24,86 +25,50 @@ Popup {
24
25
anchors .fill : parent
25
26
spacing: 0
26
27
27
- NavigationBar {
28
+ CoreText {
29
+ Layout .fillWidth : true
28
30
Layout .preferredHeight : 55
29
- middleDetail: Header {
30
- Layout .fillWidth : true
31
- header: qsTr (" External Link" )
32
- headerBold: true
33
- headerSize: 24
34
- }
31
+ text: qsTr (" External Link" )
32
+ bold: true
33
+ font .pixelSize : 24
34
+ horizontalAlignment: Text .AlignHCenter
35
+ verticalAlignment: Text .AlignVCenter
35
36
}
36
37
37
38
Separator {
38
39
Layout .fillWidth : true
39
40
}
40
41
41
- ColumnLayout {
42
- id: popupContent
42
+ Header {
43
43
Layout .fillWidth : true
44
- Layout .rightMargin : 20
45
- Layout .leftMargin : 20
44
+ Layout .margins : 20
46
45
Layout .topMargin : 20
47
- Layout .bottomMargin : 20
48
- spacing: 30
49
- Header {
50
- Layout .fillWidth : true
51
- header: qsTr (" Do you want to open the following website in your browser?" )
52
- headerBold: false
53
- headerSize: 18
54
- description: (" \" " + externalConfirmPopup .link + " \" " )
55
- descriptionMargin: 3
56
- }
57
- Loader {
58
- id: layoutLoader
59
- Layout .fillWidth : true
60
- sourceComponent: AppMode .isDesktop ? desktopLayout : mobileLayout
61
- }
46
+ header: qsTr (" Do you want to open the following website in your browser?" )
47
+ headerBold: false
48
+ headerSize: 16
49
+ description: (" \" " + externalConfirmPopup .link + " \" " )
50
+ descriptionMargin: 8
62
51
}
63
- }
64
52
65
- Component {
66
- id: desktopLayout
67
- RowLayout {
53
+ GridLayout {
68
54
Layout .fillWidth : true
69
- spacing: 15
70
- OutlineButton {
71
- text: qsTr (" Cancel" )
72
- Layout .fillWidth : true
73
- Layout .minimumWidth : 150
74
- onClicked: {
75
- externalConfirmPopup .close ()
76
- }
77
- }
78
- ContinueButton {
79
- text: qsTr (" Ok" )
80
- Layout .fillWidth : true
81
- Layout .minimumWidth : 150
82
- onClicked: {
83
- Qt .openUrlExternally (externalConfirmPopup .link )
84
- externalConfirmPopup .close ()
85
- }
86
- }
87
- }
88
- }
55
+ Layout .margins : 20
56
+ Layout .topMargin : 0
57
+ columns: AppMode .isDesktop ? 2 : 1
58
+ columnSpacing: 15
59
+ rowSpacing: 10
89
60
90
- Component {
91
- id: mobileLayout
92
- ColumnLayout {
93
- Layout .fillWidth : true
94
- spacing: 15
95
61
OutlineButton {
96
62
text: qsTr (" Cancel" )
97
63
Layout .fillWidth : true
98
- Layout .minimumWidth : 150
99
- onClicked: {
100
- externalConfirmPopup .close ()
101
- }
64
+ Layout .minimumWidth : 120
65
+ onClicked: externalConfirmPopup .close ()
102
66
}
67
+
103
68
ContinueButton {
104
69
text: qsTr (" Ok" )
105
70
Layout .fillWidth : true
106
- Layout .minimumWidth : 150
71
+ Layout .minimumWidth : 120
107
72
onClicked: {
108
73
Qt .openUrlExternally (externalConfirmPopup .link )
109
74
externalConfirmPopup .close ()
0 commit comments