File: create_database.ui

package info (click to toggle)
secrets 12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,616 kB
  • sloc: python: 6,838; xml: 7; makefile: 4
file content (156 lines) | stat: -rw-r--r-- 8,088 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="CreateDatabase" parent="AdwBin">
    <child>
      <object class="AdwToolbarView">
        <child type="top">
          <object class="AdwHeaderBar">
            <property name="title-widget">
              <object class="AdwWindowTitle">
                <property name="title">Secrets</property>
                <property name="subtitle" translatable="yes" comments="Headerbar subtitle in keepass safe creation routine.">Create Safe</property>
              </object>
            </property>
            <child>
              <object class="GtkButton" id="back_button">
                <property name="icon_name">go-previous-symbolic</property>
                <property name="tooltip_text" translatable="yes">Back</property>
              </object>
            </child>
            <child type="end">
              <object class="GtkMenuButton" id="menupopover_button">
                <property name="tooltip_text" translatable="yes">Main Menu</property>
                <property name="menu_model">create_safe_menu</property>
                <property name="icon_name">open-menu-symbolic</property>
                <property name="primary">True</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkBox">
            <property name="orientation">vertical</property>
            <child>
              <object class="AdwBanner" id="banner"/>
            </child>
            <child>
              <object class="GtkStack" id="stack">
                <property name="transition_type">slide-left</property>
                <child>
                  <object class="GtkStackPage">
                    <property name="name">select-auth-method</property>
                    <property name="child">
                      <object class="AdwStatusPage">
                        <property name="title" translatable="yes">Protect your safe</property>
                        <child>
                          <object class="AdwClamp">
                            <property name="maximum_size">400</property>
                            <property name="tightening_threshold">350</property>
                            <property name="child">
                              <object class="GtkBox">
                                <property name="orientation">vertical</property>
                                <property name="spacing">12</property>
                                <child>
                                  <object class="AdwPreferencesGroup">
                                    <child>
                                      <object class="AdwPasswordEntryRow" id="password_row">
                                        <property name="title" translatable="yes">_Password</property>
                                        <property name="use_underline">True</property>
                                        <property name="activates-default">True</property>
                                      </object>
                                    </child>
                                    <child>
                                      <object class="AdwPasswordEntryRow" id="password_confirm_row">
                                        <property name="title" translatable="yes">_Confirm Password</property>
                                        <property name="use_underline">True</property>
                                        <property name="activates-default">True</property>
                                      </object>
                                    </child>
                                    <child>
                                      <object class="PasswordLevelBar" id="level_bar">
                                        <property name="password" bind-source="password_row" bind-property="text"/>
                                        <property name="margin-top">12</property>
                                      </object>
                                    </child>
                                    <child>
                                      <object class="GtkLabel" id="match_hint">
                                        <property name="margin-top">12</property>
                                      </object>
                                    </child>
                                  </object>
                                </child>
                                <child>
                                  <object class="AdwPreferencesGroup" id="provider_group">
                                    <property name="title" translatable="yes">Additional Credentials</property>
                                  </object>
                                </child>
                                <child>
                                  <object class="GtkButton" id="create_button">
                                    <property name="halign">center</property>
                                    <property name="label" translatable="yes">C_reate</property>
                                    <property name="sensitive">False</property>
                                    <property name="use_underline">True</property>
                                    <property name="can_shrink">True</property>
                                    <signal name="clicked" handler="_on_create_button_clicked" swapped="no"/>
                                    <style>
                                      <class name="suggested-action"/>
                                      <class name="pill"/>
                                    </style>
                                  </object>
                                </child>
                              </object>
                            </property>
                          </object>
                        </child>
                      </object>
                    </property>
                  </object>
                </child>
                <child>
                  <object class="GtkStackPage">
                    <property name="name">safe-successfully-create</property>
                    <property name="child">
                      <object class="AdwStatusPage">
                        <property name="icon_name">checkmark-symbolic</property>
                        <property name="title" translatable="yes">Safe Successfully Created</property>
                        <child>
                          <object class="GtkButton" id="open_safe_button">
                            <property name="label" translatable="yes">_Open Safe</property>
                            <property name="use_underline">True</property>
                            <property name="halign">center</property>
                            <property name="use_underline">True</property>
                            <signal name="clicked" handler="on_finish_button_clicked" swapped="no"/>
                            <style>
                              <class name="suggested-action"/>
                              <class name="pill"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
  <menu id="create_safe_menu">
    <section>
      <item>
        <attribute name="label" translatable="yes">_Preferences</attribute>
        <attribute name="action">win.settings</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
        <attribute name="action">app.shortcuts</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes" comments="&quot;Secrets&quot; is the application name, do not translate">_About Secrets</attribute>
        <attribute name="action">win.about</attribute>
      </item>
    </section>
  </menu>
</interface>