anastasis-gtk

Demonstrator GUI for Anastasis
Log | Files | Refs | README | LICENSE

anastasis_gtk_auth_add_video.ui (7075B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3 Copyright (C) 2019-2021 Anastasis SARL
      4 
      5 This file is part of anastasis-gtk.
      6 
      7 anastasis-gtk is free software: you can redistribute it and/or modify
      8 it under the terms of the GNU General Public License as published by
      9 the Free Software Foundation, either version 3 of the License, or
     10 (at your option) any later version.
     11 
     12 anastasis-gtk is distributed in the hope that it will be useful,
     13 but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 GNU General Public License for more details.
     16 
     17 You should have received a copy of the GNU General Public License
     18 along with anastasis-gtk.  If not, see <http://www.gnu.org/licenses/>.
     19 
     20 Author: Christian Grothoff-->
     21 <interface>
     22   <requires lib="gtk" version="4.0"/>
     23   <object class="GtkDialog" id="anastasis_gtk_b_video_dialog">
     24     <property name="focus-widget">photo_file_chooser_button</property>
     25     <property name="default-widget">anastasis_gtk_b_video_dialog_btn_cancel</property>
     26     <child internal-child="content_area">
     27       <object class="GtkBox">
     28         <property name="orientation">vertical</property>
     29         <property name="spacing">2</property>
     30         <child>
     31           <object class="GtkBox">
     32             <property name="margin-bottom">50</property>
     33             <property name="orientation">vertical</property>
     34             <child>
     35               <object class="GtkLabel" id="explainer_label">
     36                 <property name="margin-start">20</property>
     37                 <property name="margin-end">20</property>
     38                 <property name="label" translatable="1">For video identification, you need to provide
     39 a passport-style photograph. When
     40 recovering your secret, you will be asked to
     41 join a video call. During that call, a human
     42 will use the photograph to verify your 
     43 identity.</property>
     44                 <attributes>
     45                   <attribute name="weight" value="medium"></attribute>
     46                 </attributes>
     47                 <property name="margin-top">20</property>
     48                 <property name="margin-bottom">20</property>
     49               </object>
     50             </child>
     51             <child>
     52               <placeholder/>
     53             </child>
     54             <child>
     55               <object class="GtkBox">
     56                 <property name="valign">center</property>
     57                 <property name="margin-start">20</property>
     58                 <property name="margin-end">20</property>
     59                 <property name="orientation">vertical</property>
     60                 <property name="margin-top">5</property>
     61                 <property name="margin-bottom">5</property>
     62                 <child>
     63                   <object class="GtkLabel">
     64                     <property name="label" translatable="1">Choose photograph</property>
     65                     <property name="margin-top">5</property>
     66                     <property name="margin-bottom">5</property>
     67                   </object>
     68                 </child>
     69                 <child>
     70                   <object class="GtkButton" id="photo_file_chooser_button">
     71                     <property name="valign">center</property>
     72                     <property name="focusable">1</property>
     73                     <property name="label" translatable="1">Choose photograph</property>
     74                     <property name="margin-top">5</property>
     75                     <property name="margin-bottom">5</property>
     76                   </object>
     77                 </child>
     78               </object>
     79             </child>
     80             <child>
     81               <object class="GtkImage">
     82                 <property name="visible">0</property>
     83                 <property name="icon-name">image-missing</property>
     84               </object>
     85             </child>
     86           </object>
     87         </child>
     88       </object>
     89     </child>
     90     <action-widgets>
     91       <action-widget response="-6">anastasis_gtk_b_video_dialog_btn_cancel</action-widget>
     92       <action-widget response="-5">anastasis_gtk_b_video_dialog_btn_ok</action-widget>
     93     </action-widgets>
     94     <child type="titlebar">
     95       <object class="GtkLabel">
     96         <property name="label" translatable="1">Configure video authentication</property>
     97       </object>
     98     </child>
     99     <action-widgets>
    100       <action-widget response="-6">anastasis_gtk_b_video_dialog_btn_cancel</action-widget>
    101       <action-widget response="-5">anastasis_gtk_b_video_dialog_btn_ok</action-widget>
    102     </action-widgets>
    103     <child internal-child="action_area">
    104       <object class="GtkBox">
    105         <property name="can-focus">0</property>
    106         <property name="homogeneous">1</property>
    107         <property name="spacing">6</property>
    108         <property name="halign">end</property>
    109         <child>
    110           <object class="GtkButton" id="anastasis_gtk_b_video_dialog_btn_cancel">
    111             <property name="focusable">1</property>
    112             <property name="receives-default">1</property>
    113             <property name="margin-start">5</property>
    114             <property name="margin-end">5</property>
    115             <property name="child">
    116               <object class="GtkBox">
    117                 <property name="spacing">2</property>
    118                 <property name="halign">center</property>
    119                 <child>
    120                   <object class="GtkImage">
    121                     <property name="icon-name">gtk-cancel</property>
    122                   </object>
    123                 </child>
    124                 <child>
    125                   <object class="GtkLabel">
    126                     <property name="label" translatable="1">_Cancel</property>
    127                     <property name="use-underline">1</property>
    128                     <property name="mnemonic-widget">anastasis_gtk_b_video_dialog_btn_cancel</property>
    129                   </object>
    130                 </child>
    131               </object>
    132             </property>
    133           </object>
    134         </child>
    135         <child>
    136           <object class="GtkButton" id="anastasis_gtk_b_video_dialog_btn_ok">
    137             <property name="sensitive">0</property>
    138             <property name="focusable">1</property>
    139             <property name="receives-default">1</property>
    140             <property name="margin-start">5</property>
    141             <property name="margin-end">5</property>
    142             <property name="child">
    143               <object class="GtkBox">
    144                 <property name="spacing">2</property>
    145                 <property name="halign">center</property>
    146                 <child>
    147                   <object class="GtkImage">
    148                     <property name="icon-name">gtk-ok</property>
    149                   </object>
    150                 </child>
    151                 <child>
    152                   <object class="GtkLabel">
    153                     <property name="label" translatable="1">_OK</property>
    154                     <property name="use-underline">1</property>
    155                     <property name="mnemonic-widget">anastasis_gtk_b_video_dialog_btn_ok</property>
    156                   </object>
    157                 </child>
    158               </object>
    159             </property>
    160           </object>
    161         </child>
    162       </object>
    163     </child>
    164   </object>
    165 </interface>
    166