summaryrefslogtreecommitdiffstats
path: root/src/gs-license-tile.ui
blob: e69581e893dec7b8fec1869ec0394e42ab05e597 (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>
  <requires lib="gtk+" version="3.10"/>
  <template class="GsLicenseTile" parent="GtkWidget">
    <child>
      <object class="GtkListBox">
        <property name="selection_mode">none</property>
        <property name="valign">start</property>
        <signal name="row-activated" handler="gs_license_tile_row_activated_cb"/>
        <style>
          <class name="boxed-list"/>
        </style>

        <child>
          <object class="GtkListBoxRow">
            <property name="activatable">False</property>
            <property name="focusable">False</property>
            <child>
              <object class="GtkBox">
                <property name="orientation">vertical</property>
                <property name="spacing">8</property>
                <property name="margin-top">14</property>
                <property name="margin-bottom">14</property>
                <property name="margin-start">14</property>
                <property name="margin-end">14</property>

                <child>
                  <object class="GtkBox">
                    <property name="halign">center</property>
                    <property name="orientation">horizontal</property>
                    <property name="spacing">8</property>

                    <child>
                      <object class="GsLozenge" id="lozenge0">
                        <property name="circular">True</property>
                        <property name="icon-name">heart-filled-symbolic</property>
                        <style>
                          <class name="green"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="GsLozenge" id="lozenge1">
                        <property name="circular">True</property>
                        <property name="icon-name">community-symbolic</property>
                        <style>
                          <class name="green"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="GsLozenge" id="lozenge2">
                        <property name="circular">True</property>
                        <property name="icon-name">sign-language-symbolic</property>
                        <style>
                          <class name="green"/>
                        </style>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel" id="title_label">
                    <!-- This text is a placeholder and will be set dynamically -->
                    <property name="label">Community Built</property>
                    <attributes>
                      <attribute name="weight" value="bold"/>
                    </attributes>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel" id="description_label">
                    <!-- This text is a placeholder and will be set dynamically -->
                    <property name="label">This software is developed in the open by a community of volunteers, and released under the GNU GPL v3 license.\n\nYou can contribute and help make it even better.</property>
                    <property name="use-markup">True</property>
                    <property name="wrap">True</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>

        <child>
          <object class="GtkListBoxRow">
            <property name="activatable">True</property>
            <property name="visible" bind-source="get_involved_label" bind-property="visible" bind-flags="sync-create"/>
            <child>
              <object class="GtkBox">
                <property name="orientation">horizontal</property>
                <property name="halign">center</property>
                <property name="margin-top">12</property>
                <property name="margin-bottom">12</property>
                <child>
                  <object class="GtkLabel" id="get_involved_label">
                    <property name="xalign">0</property>
                    <property name="yalign">0.5</property>
                    <property name="label" translatable="yes">_Get Involved</property>
                    <property name="use-underline">True</property>
                  </object>
                </child>
                <child>
                  <object class="GtkImage">
                    <property name="icon-name">external-link-symbolic</property>
                    <property name="margin-start">6</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>