window.ui 16.4 KB
Newer Older
Julian Sparber's avatar
Julian Sparber committed
1 2 3
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <!-- interface-requires gtk+ 3.8 -->
4
  <template class="TeleportWindow" parent="GtkApplicationWindow">
5
    <property name="title" translatable="yes">Teleport</property>
6
    <property name="default_width">650</property>
7
    <property name="default_height">500</property>
Julian Sparber's avatar
Julian Sparber committed
8
    <child>
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
      <object class="GtkAdjustment" id="adjustment1">
        <property name="lower">-1</property>
        <property name="upper">1</property>
      </object>
      <object class="GtkAdjustment" id="adjustment11">
        <property name="lower">-1</property>
        <property name="upper">1</property>
      </object>
      <object class="GtkAdjustment" id="adjustment4">
        <property name="lower">100</property>
        <property name="upper">1000</property>
        <property name="value">400</property>
        <property name="step_increment">100</property>
        <property name="page_increment">100</property>
      </object>
      <object class="GtkScrolledWindow" id="scrolled-window">
Julian Sparber's avatar
Julian Sparber committed
25
        <property name="visible">True</property>
26 27 28
        <property name="can_focus">True</property>
        <property name="shadow_type">none</property>
        <property name="hscrollbar_policy">never</property>
Julian Sparber's avatar
Julian Sparber committed
29
        <child>
30
          <object class="GtkBox" id="general-container">
Julian Sparber's avatar
Julian Sparber committed
31 32
            <property name="visible">True</property>
            <property name="can_focus">False</property>
33 34 35
            <property name="halign">center</property>
            <property name="margin_top">12</property>
            <property name="margin_bottom">12</property>
36 37
            <property name="margin_left">24</property>
            <property name="margin_right">24</property>
Julian Sparber's avatar
Julian Sparber committed
38
            <property name="orientation">vertical</property>
39
            <property name="width-request">500</property>
Julian Sparber's avatar
Julian Sparber committed
40
            <child>
41
              <object class="GtkFrame" id="general-frame">
Julian Sparber's avatar
Julian Sparber committed
42 43
                <property name="visible">True</property>
                <property name="can_focus">False</property>
44 45 46 47 48
                <property name="shadow_type">in</property>
                <property name="margin_top">12</property>
                <property name="margin_bottom">12</property>
                <property name="shadow_type">none</property>
                <child type="label">
49
                  <object class="GtkBox">
Julian Sparber's avatar
Julian Sparber committed
50
                    <property name="visible">True</property>
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
                    <property name="orientation">vertical</property>
                    <child>
                      <object class="GtkLabel" id="this-device-label">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                        <property name="halign">start</property>
                        <property name="label" translatable="yes">This device</property>
                        <attributes>
                          <attribute name="weight" value="bold"/>
                        </attributes>
                      </object>
                    </child>
                    <child>
                      <object class="GtkLabel">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                        <property name="halign">start</property>
68
                        <property name="margin_top">6</property>
69 70 71 72 73 74 75 76 77 78
                        <property name="label" translatable="yes">How your device appears to others</property>
                        <style>
                          <class name="dim-label"/>
                        </style>
                        <attributes>
                          <attribute name="scale" value="0.9"/>
                        </attributes>
                      </object>
                    </child>

Julian Sparber's avatar
Julian Sparber committed
79 80 81
                  </object>
                </child>
                <child>
82
                  <object class="GtkFrame" id="general-frame-listbox">
Julian Sparber's avatar
Julian Sparber committed
83 84
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
85 86 87
                    <property name="margin_top">6</property>
                    <property name="margin_bottom">6</property>
                    <property name="shadow_type">in</property>
Julian Sparber's avatar
Julian Sparber committed
88
                    <child>
89
                      <object class="GtkListBox" id="this-device-listbox">
Julian Sparber's avatar
Julian Sparber committed
90
                        <property name="visible">True</property>
91
                        <property name="can_focus">False</property>
92 93
                        <property name="selection_mode">none</property>
                        <child>
94
                          <object class="GtkListBoxRow" id="this-device-row">
95
                            <property name="visible">True</property>
96
                            <property name="can_focus">False</property>
97 98
                            <property name="activatable">false</property>
                            <child>
99
                              <object class="GtkGrid" id="this-device-grid">
100 101 102 103
                                <property name="visible">True</property>
                                <property name="can_focus">False</property>
                                <property name="row_spacing">0</property>
                                <property name="column_spacing">16</property>
104 105
                                <property name="margin">12</property>
                                <property name="margin_start">16</property>
106
                                <child>
107
                                  <object class="GtkLabel" id="this_device_name_label">
108 109
                                    <property name="visible">True</property>
                                    <property name="can_focus">False</property>
110 111
                                    <property name="expand">True</property>
                                    <property name="halign">start</property>
112 113 114
                                    <property name="label" translatable="yes">Angela's Thinkpad</property>
                                    <property name="use_underline">True</property>
                                    <style>
115
                                      <class name="device-name"/>
116 117 118 119
                                    </style>
                                  </object>
                                  <packing>
                                    <property name="left_attach">0</property>
120
                                    <property name="top_attach">0</property>
121 122 123 124 125
                                    <property name="width">1</property>
                                    <property name="height">1</property>
                                  </packing>
                                </child>
                                <child>
Julian Sparber's avatar
Julian Sparber committed
126
                                  <object class="GtkGrid">
127 128 129 130 131 132 133 134
                                    <property name="visible">True</property>
                                    <property name="can_focus">False</property>
                                    <property name="valign">center</property>
                                    <property name="column_homogeneous">True</property>
                                    <style>
                                      <class name="linked"/>
                                    </style>
                                    <child>
135
                                      <object class="GtkMenuButton" id="this-device-settings-button">
136
                                        <property name="visible">False</property>
137 138 139 140 141 142 143
                                        <property name="can_focus">True</property>
                                        <property name="use-popover">True</property>
                                        <property name="height_request">35</property>
                                        <child>
                                          <object class="GtkImage">
                                            <property name="visible">True</property>
                                            <property name="can_focus">False</property>
144
                                            <property name="icon_name">document-edit-symbolic</property>
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
                                          </object>
                                        </child>
                                        <style>
                                          <class name="image-button"/>
                                        </style>
                                      </object>
                                    </child>
                                  </object>
                                  <packing>
                                    <property name="left_attach">1</property>
                                    <property name="top_attach">0</property>
                                    <property name="width">1</property>
                                    <property name="height">2</property>
                                  </packing>
                                </child>
                              </object>
                            </child>
                          </object>
                        </child>
Julian Sparber's avatar
Julian Sparber committed
164 165
                      </object>
                    </child>
166 167 168 169 170
                  </object>
                </child>
              </object>
            </child>
            <child>
Julian Sparber's avatar
Julian Sparber committed
171
              <object class="GtkFrame" id="remote-devices-frame">
Julian Sparber's avatar
Julian Sparber committed
172 173
                <property name="visible">True</property>
                <property name="can_focus">False</property>
174 175 176 177 178
                <property name="margin_top">12</property>
                <property name="margin_bottom">12</property>
                <property name="shadow_type">none</property>
                <property name="label_yalign">0.45</property>
                <child type="label">
179
                  <object class="GtkBox">
Julian Sparber's avatar
Julian Sparber committed
180
                    <property name="visible">True</property>
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
                    <property name="orientation">vertical</property>
                    <child>
                      <object class="GtkLabel" id="remote-devices-network-label">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                        <property name="xalign">0</property>
                        <property name="label" translatable="yes">Other devices on the local network</property>
                        <attributes>
                          <attribute name="weight" value="bold"/>
                        </attributes>
                      </object>
                    </child>
                    <child>
                      <object class="GtkLabel">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                        <property name="halign">start</property>
198
                        <property name="margin_top">6</property>
199 200 201 202 203 204 205 206 207 208
                        <property name="label" translatable="yes">Drag and drop files on devices to send them</property>
                        <style>
                          <class name="dim-label"/>
                        </style>
                        <attributes>
                          <attribute name="scale" value="0.9"/>
                        </attributes>
                      </object>
                    </child>

Julian Sparber's avatar
Julian Sparber committed
209 210
                  </object>
                </child>
211

Julian Sparber's avatar
Julian Sparber committed
212
                <child>
213
                  <object class="GtkBox" id="remote_devices_box">
214 215
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
216
                    <property name="spacing">6</property>
217
                    <property name="margin_top">6</property>
218
                    <property name="orientation">vertical</property>
219
                    <child>
220
                      <object class="GtkFrame" id="remote_no_devices">
221 222
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
223
                        <property name="shadow_type">in</property>
224
                        <child>
225
                          <object class="GtkListBox">
226 227 228
                            <property name="visible">True</property>
                            <property name="can_focus">True</property>
                            <property name="selection_mode">none</property>
229
                            <child>
230
                              <object class="GtkListBoxRow">
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264
                                <property name="visible">True</property>
                                <property name="can_focus">False</property>
                                <property name="activatable">False</property>
                                <property name="selectable">False</property>
                                <child>
                                  <object class="GtkAlignment">
                                    <property name="visible">True</property>
                                    <property name="can_focus">False</property>
                                    <property name="top_padding">50</property>
                                    <property name="bottom_padding">50</property>
                                    <child>
                                      <object class="GtkBox">
                                        <property name="visible">True</property>
                                        <property name="spacing">20</property>
                                        <property name="orientation">vertical</property>
                                        <child>
                                          <object class="GtkLabel">
                                            <property name="visible">True</property>
                                            <property name="can_focus">False</property>
                                            <property name="label">Searching for other devices...</property>
                                          </object>
                                        </child>
                                        <child>
                                          <object class="GtkSpinner">
                                            <property name="visible">True</property>
                                            <property name="active">True</property>
                                          </object>
                                        </child>
                                      </object>
                                    </child>
                                  </object>
                                </child>
                              </object>
                            </child>
Julian Sparber's avatar
Julian Sparber committed
265
                          </object>
266 267 268 269
                        </child>
                      </object>
                    </child>
                  </object>
Julian Sparber's avatar
Julian Sparber committed
270 271 272 273 274 275 276 277 278 279 280 281 282
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
    <child type="titlebar">
      <object class="GtkHeaderBar" id="header">
        <property name="visible">True</property>
        <property name="can_focus">False</property>
        <property name="show_close_button">True</property>
        <property name="decoration_layout">:close</property>
283
        <property name="title" translatable="yes">Teleport</property>
Julian Sparber's avatar
Julian Sparber committed
284
        <child>
285
          <object class="GtkSwitch" id="visible-on-network-switch">
286
            <property name="visible">False</property>
Julian Sparber's avatar
Julian Sparber committed
287 288 289 290 291 292 293 294
            <property name="can_focus">False</property>
          </object>
          <packing>
            <property name="pack_type">end</property>
            <property name="position">1</property>
          </packing>
        </child>
        <child>
295
          <object class="GtkLabel" id="visible-on-network-label">
296
            <property name="visible">False</property>
Julian Sparber's avatar
Julian Sparber committed
297 298 299 300 301 302 303 304
            <property name="can_focus">False</property>
            <property name="label" translatable="yes">Visible on network</property>
          </object>
          <packing>
            <property name="pack_type">end</property>
            <property name="position">2</property>
          </packing>
        </child>
305 306 307 308 309 310 311 312 313 314 315 316 317 318
        <child>
          <object class="GtkMenuButton" id="gears">
            <property name="visible">True</property>
            <property name="direction">none</property>
            <property name="use-popover">True</property>
            <style>
              <class name="image-button"/>
            </style>
          </object>
          <packing>
            <property name="pack-type">end</property>
            <property name="position">0</property>
          </packing>
        </child>
Julian Sparber's avatar
Julian Sparber committed
319 320 321 322
      </object>
    </child>
  </template>
</interface>