@@ -32,7 +32,6 @@ MZViewBase {
3232 width: Math .min (window .width - MZTheme .theme .windowMargin * 2 , MZTheme .theme .navBarMaxWidth )
3333 cardType: MZInformationCard .CardType .Info
3434 anchors .horizontalCenter : parent .horizontalCenter
35- implicitHeight: textBlock .height + MZTheme .theme .windowMargin * 2
3635
3736 _infoContent: MZTextBlock {
3837 id: textBlock
@@ -47,10 +46,8 @@ MZViewBase {
4746 width: Math .min (window .width - MZTheme .theme .windowMargin * 2 , MZTheme .theme .navBarMaxWidth )
4847 cardType: MZInformationCard .CardType .Success
4948 anchors .horizontalCenter : parent .horizontalCenter
50- implicitHeight: textBlock .height + MZTheme .theme .windowMargin * 2
5149
5250 _infoContent: MZTextBlock {
53- // id: textBlock
5451 Layout .fillWidth : true
5552
5653 text: " Info card with success colors"
@@ -62,10 +59,8 @@ MZViewBase {
6259 width: Math .min (window .width - MZTheme .theme .windowMargin * 2 , MZTheme .theme .navBarMaxWidth )
6360 cardType: MZInformationCard .CardType .Warning
6461 anchors .horizontalCenter : parent .horizontalCenter
65- implicitHeight: textBlock .height + MZTheme .theme .windowMargin * 2
6662
6763 _infoContent: MZTextBlock {
68- // id: textBlock
6964 Layout .fillWidth : true
7065
7166 text: " Info card with warning colors"
@@ -77,10 +72,8 @@ MZViewBase {
7772 width: Math .min (window .width - MZTheme .theme .windowMargin * 2 , MZTheme .theme .navBarMaxWidth )
7873 cardType: MZInformationCard .CardType .Error
7974 anchors .horizontalCenter : parent .horizontalCenter
80- implicitHeight: textBlock .height + MZTheme .theme .windowMargin * 2
8175
8276 _infoContent: MZTextBlock {
83- // id: textBlock
8477 Layout .fillWidth : true
8578
8679 text: " Info card with error colors"
@@ -95,6 +88,29 @@ MZViewBase {
9588 color: MZTheme .colors .divider
9689 }
9790
91+ MZInformationCard {
92+ width: Math .min (window .width - MZTheme .theme .windowMargin * 2 , MZTheme .theme .navBarMaxWidth )
93+ cardType: MZInformationCard .CardType .Error
94+ anchors .horizontalCenter : parent .horizontalCenter
95+
96+ _infoContent: MZTextBlock {
97+ Layout .fillWidth : true
98+
99+ text: " Info card with button"
100+ verticalAlignment: Text .AlignVCenter
101+ }
102+
103+ _buttonText: " Tap for alert"
104+ _buttonAction : function () { MZErrorHandler .requestAlert (MZErrorHandler .GeoIpRestrictionAlert ) }
105+ }
106+
107+ Rectangle {
108+ Layout .fillWidth : true
109+ Layout .preferredHeight : 10
110+
111+ color: MZTheme .colors .divider
112+ }
113+
98114 MZTextBlock {
99115 text: " Alerts use the `[type]Accent` colors, among many others"
100116 Layout .fillWidth : true
@@ -167,13 +183,6 @@ MZViewBase {
167183 color: MZTheme .colors .divider
168184 }
169185
170- Rectangle {
171- Layout .fillWidth : true
172- Layout .preferredHeight : 10
173-
174- color: MZTheme .colors .divider
175- }
176-
177186 MZButton {
178187 anchors .left : parent .left
179188 anchors .right : parent .right
0 commit comments