room-list-header.ui 7.18 KB
Newer Older
1 2 3
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="Gjs_RoomListHeader" parent="GtkMenuButton">
4
    <property name="popover">connectionPopover</property>
5 6 7 8 9
    <property name="margin-bottom">4</property>
    <property name="focus-on-click">False</property>
    <property name="visible">True</property>
    <style>
      <class name="room-list-header"/>
10
      <class name="activatable" />
11 12
    </style>
    <child>
13 14 15 16
      <object class="GtkGrid">
        <property name="column-spacing">6</property>
        <property name="row-spacing">2</property>
        <property name="margin-top">1</property>
17
        <property name="visible">True</property>
18 19 20
        <style>
          <class name="dim-label" />
        </style>
21 22 23 24 25 26 27 28 29 30 31 32 33 34
        <child>
          <object class="GtkLabel" id="label">
            <property name="xalign">0</property>
            <property name="hexpand">True</property>
            <property name="max-width-chars">15</property>
            <property name="ellipsize">end</property>
            <property name="visible">True</property>
          </object>
        </child>
        <child>
          <object class="GtkStack" id="iconStack">
            <property name="transition-type">crossfade</property>
            <property name="valign">center</property>
            <property name="visible">True</property>
35 36 37 38 39 40 41 42 43
            <child>
              <object class="GtkImage">
                <property name="icon-name">network-offline-symbolic</property>
                <property name="visible">True</property>
              </object>
              <packing>
                <property name="name">disconnected</property>
              </packing>
            </child>
44 45 46 47 48 49 50 51 52 53
            <child>
              <object class="GtkImage">
                <property name="icon_name">dialog-error-symbolic</property>
                <property name="visible">True</property>
              </object>
              <packing>
                <property name="name">error</property>
              </packing>
            </child>
            <child>
54
              <object class="GtkSpinner" id="spinner">
55 56 57 58 59 60
                <property name="visible">True</property>
              </object>
              <packing>
                <property name="name">connecting</property>
              </packing>
            </child>
61 62 63 64 65 66 67 68 69
            <child>
              <object class="GtkImage">
                <property name="icon-name">dialog-password-symbolic</property>
                <property name="visible">True</property>
              </object>
              <packing>
                <property name="name">auth</property>
              </packing>
            </child>
70
            <child>
71 72
              <object class="GtkImage">
                <property name="icon-name">pan-down-symbolic</property>
73 74 75
                <property name="visible">True</property>
              </object>
              <packing>
76
                <property name="name">default</property>
77 78 79 80
              </packing>
            </child>
          </object>
        </child>
81 82 83 84 85 86 87 88 89 90
        <child>
          <object class="GtkSeparator">
            <property name="visible">True</property>
          </object>
          <packing>
            <property name="left-attach">0</property>
            <property name="top-attach">1</property>
            <property name="width">2</property>
          </packing>
        </child>
91 92 93
      </object>
    </child>
  </template>
94
  <object class="GtkPopoverMenu" id="connectionPopover">
95 96 97 98 99 100 101
    <property name="position">bottom</property>
    <child>
      <object class="GtkBox">
        <property name="orientation">vertical</property>
        <property name="margin">12</property>
        <property name="visible">True</property>
        <child>
102
          <object class="GtkLabel" id="popoverTitle">
103 104
            <property name="wrap">True</property>
            <property name="max-width-chars">30</property>
105
            <property name="width-chars">15</property>
106 107
            <property name="xalign">0</property>
            <property name="visible">True</property>
108 109
            <property name="margin-start">6</property>
            <property name="margin-end">6</property>
110 111 112
          </object>
        </child>
        <child>
113
          <object class="GtkLabel" id="popoverStatus">
114 115 116 117
            <property name="wrap">True</property>
            <property name="max-width-chars">30</property>
            <property name="xalign">0</property>
            <property name="visible">True</property>
118 119
            <property name="margin-start">6</property>
            <property name="margin-end">6</property>
120 121
          </object>
        </child>
122 123 124 125 126 127 128 129 130 131 132 133
        <child>
          <object class="GtkEntry" id="popoverPassword">
            <property name="visible" bind-source="popoverTitle"
                      bind-property="visible" bind-flags="invert-boolean"/>
            <property name="visibility">False</property>
            <property name="can-default">True</property>
            <property name="activates-default">True</property>
            <property name="margin-top">6</property>
            <property name="margin-start">6</property>
            <property name="margin-end">6</property>
          </object>
        </child>
134
        <child>
135
          <object class="GtkSeparator">
136
            <property name="visible">True</property>
137 138 139 140
            <property name="margin-top">6</property>
            <property name="margin-bottom">6</property>
          </object>
        </child>
141 142 143 144 145 146 147 148
        <child>
          <object class="GtkModelButton" id="popoverConnect">
            <property name="xalign">0</property>
            <property name="visible">True</property>
            <property name="action-name">app.connect-account</property>
            <property name="text" translatable="yes">Connect</property>
          </object>
        </child>
149 150 151 152 153 154 155 156
        <child>
          <object class="GtkModelButton" id="popoverReconnect">
            <property name="xalign">0</property>
            <property name="visible">True</property>
            <property name="action-name">app.reconnect-account</property>
            <property name="text" translatable="yes">Reconnect</property>
          </object>
        </child>
157 158 159 160 161 162 163 164
        <child>
          <object class="GtkModelButton" id="popoverDisconnect">
            <property name="xalign">0</property>
            <property name="visible">True</property>
            <property name="action-name">app.disconnect-account</property>
            <property name="text" translatable="yes">Disconnect</property>
          </object>
        </child>
165 166 167 168 169 170 171 172 173 174 175 176 177 178
        <child>
          <object class="GtkModelButton" id="popoverRemove">
            <property name="xalign">0</property>
            <property name="visible">True</property>
            <property name="action-name">app.remove-connection</property>
            <property name="text" translatable="yes">Remove</property>
          </object>
        </child>
        <child>
          <object class="GtkModelButton" id="popoverProperties">
            <property name="xalign">0</property>
            <property name="visible">True</property>
            <property name="action-name">app.edit-connection</property>
            <property name="text" translatable="yes">Properties</property>
179 180 181 182 183 184
          </object>
        </child>
      </object>
    </child>
  </object>
</interface>