aboutsummaryrefslogtreecommitdiff
path: root/res/widgets/participant_list_row.ui
blob: c0e3895692bfbb85b30e7598f3a01769ce24acdb (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
<?xml version='1.0' encoding='UTF-8'?>
<!-- Created with Cambalache 0.90.4 -->
<!--Adapted from: https://gitlab.gnome.org/GNOME/libadwaita-->
<interface>
  <!-- interface-name participant_list_item.ui -->
  <requires lib="gtk" version="4.14"/>
  <template class="gtkmm__CustomObject_participant_list_row" parent="GtkListBoxRow">
    <property name="child">
      <object class="GtkBox" id="header">
        <property name="css-classes">header</property>
        <child>
          <object class="GtkBox" id="prefixes">
            <property name="visible">False</property>
            <style>
              <class name="prefixes"/>
            </style>
          </object>
        </child>
        <child>
          <object class="GtkImage" id="image">
            <property name="icon-name">face-smile</property>
            <property name="valign">center</property>
            <property name="visible">False</property>
            <style>
              <class name="icon"/>
            </style>
          </object>
        </child>
        <child>
          <object class="GtkBox" id="title_box">
            <property name="hexpand">True</property>
            <property name="orientation">vertical</property>
            <property name="valign">center</property>
            <child>
              <object class="GtkEditableLabel" id="title">
                <property name="editable">False</property>
                <property name="visible">False</property>
                <style>
                  <class name="title"/>
                </style>
                <!-- Custom object fragments -->
                <property name="editable" bind-source="edit" bind-property="active" bind-flags="sync-create"/>
              </object>
            </child>
            <child>
              <object class="GtkLabel" id="subtitle">
                <property name="lines">0</property>
                <property name="visible">False</property>
                <property name="wrap">True</property>
                <property name="wrap-mode">word-char</property>
                <property name="xalign">0.0</property>
                <style>
                  <class name="subtitle"/>
                </style>
              </object>
            </child>
            <style>
              <class name="title"/>
            </style>
          </object>
        </child>
        <child>
          <object class="GtkBox" id="suffixes">
            <property name="valign">center</property>
            <child>
              <object class="GtkToggleButton" id="edit">
                <property name="icon-name">document-edit-symbolic</property>
                <!-- Custom object fragments -->
                <property name="active" bind-source="title" bind-property="editing" bind-flags="sync-create"/>
              </object>
            </child>
            <child>
              <object class="GtkSwitch">
                <property name="valign">center</property>
              </object>
            </child>
            <style>
              <class name="suffixes"/>
            </style>
          </object>
        </child>
      </object>
    </property>
    <property name="valign">center</property>
    <style>
      <class name="view"/>
    </style>
  </template>
</interface>