aboutsummaryrefslogtreecommitdiff
path: root/main/data/preferences_window/account_preferences_subpage.ui
blob: a4e0b3003aaaf53981910a28501edd0951b4a14e (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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?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" id="headerbar">
        <style>
          <class name="flat"/>
        </style>
        <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="AdwEntryRow" id="local_alias">
                        <property name="title" translatable="yes">Local alias</property>
                      </object>
                    </child>
                    <child>
                      <object class="AdwActionRow" id="password_change">
                        <property name="title" translatable="yes">Password</property>
                        <child type="suffix">
                          <object class="GtkBox">
                            <property name="opacity">0.7</property>
                            <property name="spacing">6</property>
                            <property name="orientation">horizontal</property>
                            <child>
                              <object class="GtkLabel">
                                <property name="label">•••••</property>
                              </object>
                            </child>
                            <child>
                              <object class="GtkImage">
                                <property name="icon-name">go-next-symbolic</property>
                              </object>
                            </child>
                          </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>