@@ -25,6 +25,8 @@ PageType {
2525 property string apiCurrentProtocol: " "
2626
2727 readonly property bool isApiProtocolSelectionVisible: ServersUiController .isDefaultServerFromApi && root .apiAvailableProtocols .length > 0
28+ readonly property bool isOutdatedAwgWarningVisible: drawer .isCollapsedStateActive ()
29+ && ServersUiController .defaultServerHasOutdatedAwgContainer
2830
2931 function updateApiProtocolState () {
3032 if (ServersUiController .isDefaultServerFromApi ) {
@@ -299,26 +301,6 @@ PageType {
299301 }
300302 }
301303
302- ImageButtonType {
303- id: outdatedContainerWarningIcon
304- objectName: " outdatedContainerWarningIcon"
305-
306- Layout .rightMargin : 8
307-
308- visible: drawer .isCollapsedStateActive () && ServersUiController .defaultServerHasOutdatedAwgContainer
309-
310- hoverEnabled: false
311- image: " qrc:/images/controls/alert-circle.svg"
312- imageColor: AmneziaStyle .color .goldenApricot
313-
314- icon .width : 18
315- icon .height : 18
316- backgroundRadius: 16
317- horizontalPadding: 4
318- topPadding: 4
319- bottomPadding: 3
320- }
321-
322304 Header1TextType {
323305 id: collapsedButtonHeader
324306 objectName: " collapsedButtonHeader"
@@ -370,7 +352,9 @@ PageType {
370352 objectName: " rowLayoutLabel"
371353 Layout .alignment : Qt .AlignHCenter | Qt .AlignVCenter
372354 Layout .topMargin : 8
373- Layout .bottomMargin : root .isApiProtocolSelectionVisible ? 8 : (drawer .isCollapsedStateActive ? 44 : ServersUiController .isDefaultServerFromApi ? 61 : 16 )
355+ Layout .bottomMargin : root .isOutdatedAwgWarningVisible
356+ ? 8
357+ : (root .isApiProtocolSelectionVisible ? 8 : (drawer .isCollapsedStateActive ? 44 : ServersUiController .isDefaultServerFromApi ? 61 : 16 ))
374358 spacing: 0
375359
376360 BasicButtonType {
@@ -425,6 +409,23 @@ PageType {
425409 }
426410 }
427411
412+ WarningType {
413+ objectName: " outdatedContainerWarning"
414+
415+ Layout .fillWidth : true
416+ Layout .leftMargin : 16
417+ Layout .rightMargin : 16
418+ Layout .bottomMargin : 24
419+
420+ visible: root .isOutdatedAwgWarningVisible
421+
422+ backGroundColor: AmneziaStyle .color .transparent
423+ iconPath: " qrc:/images/controls/alert-circle.svg"
424+ imageColor: AmneziaStyle .color .goldenApricot
425+ textColor: AmneziaStyle .color .goldenApricot
426+ textString: qsTr (" AmneziaWG 2.0 is outdated and no longer supported. Continued use requires a fresh installation of the AmneziaWG 3.0 container." )
427+ }
428+
428429 RowLayout {
429430 objectName: " protocolRowLayout"
430431 Layout .alignment : Qt .AlignHCenter | Qt .AlignVCenter
0 commit comments