|
| teeui::DECLARE_PARAMETER (RightEdgeOfScreen) |
|
| teeui::DECLARE_PARAMETER (BottomOfScreen) |
|
| teeui::DECLARE_PARAMETER (DefaultFontSize) |
|
| teeui::DECLARE_PARAMETER (BodyFontSize) |
|
| teeui::DECLARE_TYPED_PARAMETER (ShieldColor, ::teeui::Color) |
|
| teeui::DECLARE_TYPED_PARAMETER (ColorText, ::teeui::Color) |
|
| teeui::DECLARE_TYPED_PARAMETER (ColorBG, ::teeui::Color) |
|
| teeui::CONSTANT (BorderWidth, dps(24)) |
|
| teeui::DECLARE_FONT_BUFFER (RobotoMedium, RobotoMedium, RobotoMedium_length) |
|
| teeui::DECLARE_FONT_BUFFER (RobotoRegular, RobotoRegular, RobotoRegular_length) |
|
| teeui::DECLARE_FONT_BUFFER (Shield, Shield, Shield_length) |
|
| teeui::CONSTANT (DefaultFont, FONT(RobotoRegular)) |
|
| teeui::DECLARE_TYPED_PARAMETER (ColorButton, ::teeui::Color) |
|
| teeui::NEW_PARAMETER_SET (ConfUIParameters, RightEdgeOfScreen, BottomOfScreen, DefaultFontSize, BodyFontSize, ShieldColor, ColorText, ColorBG, ColorButton) |
|
| teeui::CONSTANT (IconShieldDistanceFromTop, dps(100)) |
|
| teeui::CONSTANT (LabelBorderZone, dps(4)) |
|
| teeui::CONSTANT (RightLabelEdge, RightEdgeOfScreen() - BorderWidth) |
|
| teeui::CONSTANT (LabelWidth, RightLabelEdge - BorderWidth) |
|
| teeui::CONSTANT (ButtonHeight, dps(72)) |
|
| teeui::CONSTANT (ButtonPositionX, 0) |
|
| teeui::CONSTANT (ButtonPositionY, BottomOfScreen() - ButtonHeight) |
|
| teeui::CONSTANT (ButtonWidth, dps(130)) |
|
| teeui::CONSTANT (ButtonLabelDistance, dps(12)) |
|
| teeui::FontSize (dps(24)) |
|
| teeui::LineHeight (dps(24)) |
|
| teeui::NumberOfLines (1) |
|
| teeui::Dimension (LabelWidth, HeightFromLines) |
|
| teeui::Position (BorderWidth, IconShieldDistanceFromTop) |
|
| teeui::DefaultText ("A") |
|
| teeui::TextColor (ShieldColor()) |
|
| teeui::HorizontalTextAlignment (Alignment::CENTER) |
|
| teeui::Font (FONT(Shield)) |
|
| teeui::END_ELEMENT () |
|
| teeui::FontSize (dps(20)) |
|
| teeui::LineHeight (dps(20)) |
|
| teeui::Position (BorderWidth, BOTTOM_EDGE_OF(IconShield)+dps(16)) |
|
| teeui::DefaultText ("Android Protected Confirmation") |
|
| teeui::Font (FONT(RobotoMedium)) |
|
| teeui::TextColor (ColorText()) |
|
| teeui::TextID (TEXT_ID(TranslationId::TITLE)) |
|
| teeui::Dimension (ButtonWidth, ButtonHeight - BorderWidth) |
|
| teeui::Position (RightEdgeOfScreen() - ButtonWidth - BorderWidth, ButtonPositionY+ButtonLabelDistance) |
|
| teeui::CornerRadius (dps(4)) |
|
| teeui::ButtonColor (ColorButton()) |
|
| teeui::FontSize (BodyFontSize()) |
|
| teeui::LineHeight (BodyFontSize() *pxs(1.4)) |
|
| teeui::Dimension (ButtonWidth -(LabelBorderZone *dps(2)), ButtonHeight - BorderWidth -(LabelBorderZone *dps(2))) |
|
| teeui::Position (RightEdgeOfScreen() - ButtonWidth - BorderWidth+LabelBorderZone, ButtonPositionY+ButtonLabelDistance+LabelBorderZone) |
|
| teeui::DefaultText ("Confirm") |
|
| teeui::VerticalTextAlignment (Alignment::CENTER) |
|
| teeui::TextColor (ColorBG()) |
|
| teeui::TextID (TEXT_ID(TranslationId::CONFIRM)) |
|
| teeui::Position (BorderWidth+LabelBorderZone, ButtonPositionY+ButtonLabelDistance+LabelBorderZone) |
|
| teeui::DefaultText ("Cancel") |
|
| teeui::HorizontalTextAlignment (Alignment::LEFT) |
|
| teeui::TextColor (ColorButton()) |
|
| teeui::TextID (TEXT_ID(TranslationId::CANCEL)) |
|
| teeui::FontSize (DefaultFontSize()) |
|
| teeui::LineHeight (DefaultFontSize() *pxs(1.5)) |
|
| teeui::NumberOfLines (4) |
|
| teeui::Position (BorderWidth, ButtonPositionY - dim_h - dps(48)) |
|
| teeui::DefaultText ("This confirmation provides an extra layer of security for the action " "you're " "about to take.") |
|
| teeui::VerticalTextAlignment (Alignment::BOTTOM) |
|
| teeui::Font (DefaultFont) |
|
| teeui::TextID (TEXT_ID(TranslationId::DESCRIPTION)) |
|
| teeui::NumberOfLines (20) |
|
| teeui::Position (BorderWidth, BOTTOM_EDGE_OF(LabelTitle)+dps(16)) |
|
| teeui::Dimension (LabelWidth, LabelHint::pos_y - pos_y - dps(24)) |
|
| teeui::DefaultText ("12345678901234567890123456789012345678901234567890123456789012345678901234" "567890123456" "78901234567890") |
|
| teeui::Font (FONT(RobotoRegular)) |
|
| teeui::NEW_LAYOUT (ConfUILayout, IconShield, LabelTitle, LabelHint, LabelBody, IconOk, LabelOK, LabelCancel) |
|