aboutsummaryrefslogtreecommitdiff
path: root/main/data/file_input_widget.ui
blob: 1aef0e150c5345f879b0f827f3180fdd677b2585 (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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <template class="DinoUiFileInputWidget">
    <property name="halign">start</property>
    <style>
      <class name="file-box-outer"/>
    </style>
    <child>
      <object class="DinoUiSizingBin">
        <property name="target-width">200</property>
        <property name="max-width">200</property>
        <property name="width-request">200</property>
        <property name="target-height">64</property>
        <property name="max-height">64</property>
        <property name="height-request">64</property>
        <child>
          <object class="GtkBox">
            <property name="hexpand">True</property>
            <property name="spacing">8</property>
            <child>
              <object class="GtkImage" id="content_type_image">
                <property name="valign">center</property>
                <property name="pixel-size">40</property>
                <property name="opacity">0.7</property>
                <property name="margin-start">8</property>
              </object>
            </child>
            <child>
              <object class="GtkBox">
                <property name="orientation">vertical</property>
                <property name="margin-end">8</property>
                <property name="hexpand">True</property>
                <property name="halign">start</property>
                <property name="valign">center</property>
                <child>
                  <object class="GtkLabel" id="name_label">
                    <property name="ellipsize">middle</property>
                    <property name="xalign">0</property>
                    <property name="yalign">0</property>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel" id="mime_label">
                    <property name="ellipsize">end</property>
                    <property name="xalign">0</property>
                    <property name="yalign">1</property>
                    <attributes>
                      <attribute name="scale" value="0.8"></attribute>
                    </attributes>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>