fractal/data/resources/ui/content-message-row.ui
Kévin Commaille 8127a52199
message-row: Allow to embed messages content preview
Provide a more compact format for message content.
2022-09-15 18:02:34 +02:00

60 lines
2.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="ContentMessageRow" parent="AdwBin">
<child>
<object class="GtkBox">
<property name="spacing">10</property>
<child>
<object class="ComponentsAvatar" id="avatar">
<property name="size">36</property>
<property name="valign">start</property>
</object>
</child>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child>
<object class="GtkBox" id="header">
<property name="spacing">10</property>
<child>
<object class="GtkLabel" id="display_name">
<property name="hexpand">true</property>
<property name="halign">start</property>
<property name="ellipsize">end</property>
<property name="selectable">True</property>
<style>
<class name="heading"/>
<class name="accent"/>
</style>
</object>
</child>
<child type="end">
<object class="GtkLabel" id="timestamp">
<style>
<class name="caption"/>
<class name="timestamp"/>
<class name="dim-label"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="ContentMessageContent" id="content">
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<style>
<class name="event-content"/>
</style>
</object>
</child>
<child>
<object class="ContentMessageReactionList" id="reactions"/>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>