aboutsummaryrefslogtreecommitdiff
path: root/main/data/preferences_window_account.ui
blob: 4280422d8471d0c1c2a2991df9a8ea80cca18f41 (plain) (blame)
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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <template class="DinoUiAccountPreferencesSubpage">
    <property name="orientation">vertical</property>
    <child>
      <object class="AdwHeaderBar">
        <style>
          <class name="flat"/>
        </style>
        <property name="show-title">False</property>
        <child>
          <object class="GtkButton" id="back_button">
            <property name="icon-name">go-previous-symbolic</property>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="GtkScrolledWindow">
        <property name="vexpand">True</property>
        <property name="hexpand">True</property>
        <child>
          <object class="AdwClamp">
            <child>
              <object class="GtkBox">
                <property name="margin-top">24</property>
                <property name="margin-bottom">24</property>
                <property name="margin-start">12</property>
                <property name="margin-end">12</property>
                <property name="spacing">24</property>
                <property name="orientation">vertical</property>
                <child>
                  <object class="GtkOverlay">
                    <property name="halign">center</property>
                    <property name="child">
                      <object class="DinoUiAvatarPicture" id="avatar">
                        <property name="height-request">144</property>
                        <property name="width-request">144</property>
                      </object>
                    </property>
                    <child type="overlay">
                      <object class="GtkBox" id="avatar_menu_box">
                        <property name="opacity">0.9</property>
                        <property name="margin-end">6</property>
                        <property name="margin-bottom">6</property>
                        <property name="halign">end</property>
                        <property name="valign">end</property>
                        <style>
                          <class name="card"/>
                          <class name="toolbar"/>
                          <class name="overlay-toolbar"/>
                        </style>
                        <child>
                          <object class="GtkButton" id="edit_avatar_button">
                            <property name="icon-name">document-edit-symbolic</property>
                          </object>
                        </child>
                        <child>
                          <object class="GtkButton" id="remove_avatar_button">
                            <property name="icon-name">user-trash-symbolic</property>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="AdwPreferencesGroup">
                    <child>
                      <object class="AdwActionRow" id="xmpp_address">
                        <property name="title" translatable="yes">XMPP Address</property>
                        <style>
                          <class name="property"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="AdwActionRow" id="local_alias">
                        <property name="title" translatable="yes">Local alias</property>
                        <child type="suffix">
                          <object class="GtkEntry" id="local_alias_entry">
                            <property name="valign">center</property>
                          </object>
                        </child>
                      </object>
                    </child>
                    <child>
                      <object class="AdwActionRow" id="connection_status">
                        <property name="title" translatable="yes">Connection status</property>
                        <style>
                          <class name="property"/>
                        </style>
                        <child type="suffix">
                          <object class="GtkButton" id="enter_password_button">
                            <property name="label">Enter password</property>
                            <property name="valign">center</property>
                            <property name="visible">False</property>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="GtkBox" id="button_container">
                    <property name="halign">center</property>
                    <property name="spacing">24</property>
                    <child>
                      <object class="GtkButton" id="disable_account_button">
                        <property name="label" translatable="1">Disable account</property>
                        <property name="halign">center</property>
                        <style>
                          <class name="pill"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="GtkButton" id="remove_account_button">
                        <property name="label" translatable="1">Remove account</property>
                        <property name="halign">center</property>
                        <style>
                          <class name="pill"/>
                          <class name="destructive-action"/>
                        </style>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>