Tooth/data/ui/widgets/status.ui

254 lines
11 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<template class="ToothWidgetsStatus" parent="GtkListBoxRow">
<property name="can_focus">0</property>
<property name="child">
<object class="GtkGrid" id="grid">
<property name="can_focus">0</property>
<property name="margin-start">8</property>
<property name="margin-end">8</property>
<property name="margin_top">8</property>
<property name="margin_bottom">8</property>
<property name="hexpand">1</property>
<property name="orientation">vertical</property>
<property name="column_spacing">8</property>
<child>
<object class="GtkImage" id="header_icon">
<property name="visible">0</property>
<property name="halign">end</property>
<property name="margin_bottom">8</property>
<property name="icon_name">oops</property>
<property name="icon_size">1</property>
<layout>
<property name="column">0</property>
<property name="row">0</property>
</layout>
</object>
</child>
<child>
<object class="ToothWidgetsRichLabel" id="header_label">
<property name="visible">0</property>
<property name="ellipsize">end</property>
<property name="margin-bottom">8</property>
<style>
<class name="font-bold"/>
</style>
<layout>
<property name="column">1</property>
<property name="row">0</property>
</layout>
</object>
</child>
<child>
<object class="GtkGrid">
<property name="can_focus">0</property>
<property name="vexpand">1</property>
<property name="row_homogeneous">1</property>
<child>
<object class="ToothWidgetsRichLabel" id="name_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="label" translatable="no">Name</property>
<property name="ellipsize">end</property>
<property name="single_line_mode">True</property>
<style>
<class name="font-bold"/>
</style>
<layout>
<property name="column">0</property>
<property name="row">0</property>
<property name="column-span">3</property>
</layout>
</object>
</child>
<child>
<object class="GtkLabel" id="handle_label">
<property name="can_focus">0</property>
<property name="label" translatable="no">Handle</property>
<property name="opacity">0.5</property>
<property name="ellipsize">end</property>
<property name="single_line_mode">1</property>
<property name="xalign">0</property>
<style>
<class name="body"/>
</style>
<layout>
<property name="column">0</property>
<property name="row">1</property>
<property name="column-span">4</property>
</layout>
</object>
</child>
<child>
<object class="GtkBox" id="indicators">
<property name="can_focus">0</property>
<property name="halign">end</property>
<property name="valign">start</property>
<property name="margin_start">6</property>
<property name="spacing">6</property>
<child>
<object class="GtkImage" id="pin_indicator">
<property name="visible">0</property>
<property name="can_focus">0</property>
<property name="opacity">0.5</property>
<property name="icon_name">view-pin-symbolic</property>
<property name="icon_size">1</property>
</object>
</child>
<child>
<object class="GtkImage" id="indicator">
<property name="visible">0</property>
<property name="can_focus">0</property>
<property name="opacity">0.5</property>
<property name="icon_name">unknown</property>
<property name="icon_size">1</property>
</object>
</child>
<child>
<object class="GtkLabel" id="date_label">
<property name="can_focus">0</property>
<property name="label" translatable="no">Yesterday</property>
<property name="opacity">0.5</property>
<property name="xalign">0</property>
<style>
<class name="body"/>
</style>
</object>
</child>
<layout>
<property name="column">2</property>
<property name="row">0</property>
<property name="column-span">2</property>
</layout>
</object>
</child>
<layout>
<property name="column">1</property>
<property name="row">1</property>
</layout>
</object>
</child>
<child>
<object class="GtkBox" id="content_column">
<property name="can_focus">0</property>
<property name="margin_top">6</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkStack" id="spoiler_stack">
<property name="can_focus">0</property>
<property name="vhomogeneous">0</property>
<property name="hhomogeneous">0</property>
<property name="transition_type">crossfade</property>
<property name="interpolate_size">1</property>
<child>
<object class="GtkStackPage">
<property name="name">spoiler</property>
<property name="child">
<object class="GtkButton" id="spoiler_button">
<property name="receives_default">1</property>
<signal name="clicked" handler="toggle_spoiler" swapped="no"/>
<child>
<object class="GtkBox">
<property name="can_focus">0</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="margin_top">12</property>
<property name="margin_bottom">12</property>
<property name="spacing">6</property>
<child>
<object class="GtkImage">
<property name="can_focus">0</property>
<property name="icon_name">dialog-warning-symbolic</property>
</object>
</child>
<child>
<object class="ToothWidgetsRichLabel" id="spoiler_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label">Spoiler Text Here</property>
</object>
</child>
</object>
</child>
<style>
<class name="spoiler"/>
</style>
</object>
</property>
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">content</property>
<property name="child">
<object class="GtkBox" id="content_box">
<property name="can_focus">0</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="ToothWidgetsMarkupView" id="content">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
</object>
</child>
<child>
<object class="ToothWidgetsAttachmentBox" id="attachments"/>
</child>
</object>
</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox" id="actions">
<property name="homogeneous">1</property>
<property name="spacing">6</property>
</object>
</child>
<layout>
<property name="column">1</property>
<property name="row">2</property>
</layout>
</object>
</child>
<child>
<object class="GtkImage" id="thread_line">
<property name="visible">0</property>
<property name="width_request">4</property>
<property name="height_request">32</property>
<property name="halign">center</property>
<property name="pixel-size">4</property>
<style>
<class name="ttl-thread-line"/>
</style>
<layout>
<property name="column">0</property>
<property name="row">0</property>
<property name="row-span">3</property>
</layout>
</object>
</child>
<child>
<object class="ToothWidgetsAvatar" id="avatar">
<property name="size">48</property>
<property name="valign">start</property>
<property name="visible">true</property>
<signal name="clicked" handler="on_avatar_clicked" swapped="no"/>
<layout>
<property name="column">0</property>
<property name="row">1</property>
</layout>
</object>
</child>
</object>
</property>
<style>
<class name="ttl-post"/>
</style>
</template>
</interface>