summaryrefslogtreecommitdiffstats
path: root/panels/online-accounts/cc-online-accounts-panel.ui
blob: 87a02329d6d4f52a1c3337b136e08b89067f79cf (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="CcOnlineAccountsPanel" parent="CcPanel">
    <child type="content">
      <object class="GtkOverlay">
        <child type="overlay">
          <object class="GtkRevealer" id="notification_revealer">
            <property name="halign">center</property>
            <property name="valign">start</property>
            <property name="transition_type">slide-down</property>
            <child>
              <object class="GtkFrame">
                <child>
                  <object class="GtkBox">
                    <property name="spacing">12</property>
                    <child>
                      <object class="GtkLabel" id="notification_label">
                        <property name="use_markup">True</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkButton" id="undo_button">
                        <property name="label" translatable="yes">Undo</property>
                        <signal name="clicked" handler="on_undo_button_clicked_cb" object="CcOnlineAccountsPanel" swapped="no" />
                      </object>
                    </child>
                    <child>
                      <object class="GtkButton" id="close_notification_button">
                        <property name="icon-name">window-close-symbolic</property>
                        <accessibility>
                          <property name="label" translatable="yes">Close the notification</property>
                        </accessibility>
                        <signal name="clicked" handler="on_notification_closed_cb" object="CcOnlineAccountsPanel" swapped="no" />
                        <style>
                          <class name="flat" />
                        </style>
                      </object>
                    </child>
                  </object>
                </child>
                <style>
                  <class name="app-notification" />
                </style>
              </object>
            </child>
          </object>
        </child>

        <child>
          <object class="AdwPreferencesPage">

            <child>
              <object class="AdwPreferencesGroup">
                <child>
                  <object class="GtkLabel" id="accounts_label">
                    <property name="wrap">True</property>
                    <property name="justify">center</property>
                    <property name="label" translatable="yes">Connect to your data in the cloud</property>
                    <style>
                      <class name="title-1" />
                    </style>
                  </object>
                </child>

                <child>
                  <object class="GtkLabel" id="offline_label">
                    <property name="margin-top">24</property>
                    <property name="wrap">True</property>
                    <property name="label" translatable="yes">No internet connection — connect to set up new online accounts</property>
                  </object>
                </child>
              </object>
            </child>

            <child>
              <object class="AdwPreferencesGroup" id="accounts_frame">
                <property name="visible">False</property>
                <child>
                  <object class="GtkListBox" id="accounts_listbox">
                    <property name="hexpand">True</property>
                    <property name="selection_mode">none</property>
                    <signal name="row-activated" handler="on_accounts_listbox_row_activated" object="CcOnlineAccountsPanel" swapped="yes" />
                    <style>
                      <class name="boxed-list" />
                    </style>
                    <accessibility>
                      <relation name="labelled-by">accounts_label</relation>
                    </accessibility>
                  </object>
                </child>
              </object>
            </child>

            <child>
              <object class="AdwPreferencesGroup">
                <property name="title" translatable="yes">Add an account</property>
                <child>
                  <object class="GtkListBox" id="providers_listbox">
                    <property name="selection_mode">none</property>
                    <signal name="row-activated" handler="on_provider_row_activated_cb" object="CcOnlineAccountsPanel" swapped="yes" />
                    <style>
                      <class name="boxed-list" />
                    </style>
                  </object>
                </child>
              </object>
            </child>

          </object>
        </child>
      </object>
    </child>
  </template>

</interface>