summaryrefslogtreecommitdiffstats
path: root/subprojects/extensions-app/data/ui/extension-row.ui
blob: 37acb68d37f94678982f66d85bb47f4437354d1b (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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="ExtensionRow" parent="GtkListBoxRow">
    <style>
      <class name="extension"/>
    </style>
    <child>
      <object class="GtkBox">
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkBox">
            <child>
              <object class="GtkBox">
                <property name="orientation">vertical</property>
                <property name="hexpand">true</property>
                <style>
                  <class name="information"/>
                </style>
                <child>
                  <object class="GtkBox">
                    <style>
                      <class name="header"/>
                    </style>
                    <child>
                      <object class="GtkLabel" id="nameLabel">
                        <property name="xalign">0</property>
                        <style>
                          <class name="title"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="GtkLabel" id="versionLabel">
                        <property name="visible">false</property>
                        <property name="xalign">0</property>
                        <property name="yalign">1</property>
                        <style>
                          <class name="caption"/>
                          <class name="dim-label"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="GtkBox">
                        <style>
                          <class name="status"/>
                        </style>
                        <child>
                          <object class="GtkImage" id="errorIcon">
                            <property name="visible">false</property>
                            <property name="icon-name">dialog-error-symbolic</property>
                            <property name="tooltip-text" translatable="yes">The extension had an error</property>
                            <style>
                              <class name="error"/>
                            </style>
                          </object>
                        </child>
                        <child>
                          <object class="GtkImage" id="updatesIcon">
                            <property name="visible">false</property>
                            <property name="icon-name">software-update-available-symbolic</property>
                            <property name="tooltip-text" translatable="yes">The extension can be updated</property>
                            <style>
                              <class name="warning"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel" id="descriptionLabel">
                    <property name="xalign">0</property>
                    <property name="ellipsize">end</property>
                    <style>
                      <class name="subtitle"/>
                    </style>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel" id="errorLabel">
                    <property name="visible">false</property>
                    <property name="selectable">true</property>
                    <property name="wrap">True</property>
                    <property name="xalign">0</property>
                    <style>
                      <class name="caption"/>
                      <class name="error"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkSwitch" id="switch">
                <property name="valign">center</property>
                <property name="action-name">row.enabled</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkCenterBox" id="actionsBox">
            <style>
              <class name="actions"/>
            </style>
            <child type="start">
              <object class="GtkBox">
                <child>
                  <object class="GtkButton" id="websiteButton">
                    <property name="label" translatable="yes">Website</property>
                    <property name="action-name">row.show-url</property>
                  </object>
                </child>
                <child>
                  <object class="GtkButton" id="prefsButton">
                    <property name="visible"
                              bind-source="prefsButton"
                              bind-property="sensitive"
                              bind-flags="sync-create"/>
                    <property name="label" translatable="yes">Settings</property>
                    <property name="action-name">row.show-prefs</property>
                  </object>
                </child>
              </object>
            </child>
            <child type="end">
              <object class="GtkButton" id="removeButton">
                <property name="visible"
                          bind-source="removeButton"
                          bind-property="sensitive"
                          bind-flags="sync-create"/>
                <property name="label" translatable="yes">Remove…</property>
                <property name="action-name">row.uninstall</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>