2021-05-19 07:57:06 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<interface>
|
2021-05-31 16:43:13 +00:00
|
|
|
<menu id="room-menu-model">
|
|
|
|
<section>
|
2021-07-10 12:20:22 +00:00
|
|
|
<item>
|
|
|
|
<attribute name="label" translatable="yes">Room _Details</attribute>
|
|
|
|
<attribute name="action">room-history.details</attribute>
|
|
|
|
<attribute name="hidden-when">action-disabled</attribute>
|
|
|
|
</item>
|
2021-05-31 16:43:13 +00:00
|
|
|
<item>
|
|
|
|
<attribute name="label" translatable="yes">_Leave Room</attribute>
|
|
|
|
<attribute name="action">room-history.leave</attribute>
|
|
|
|
<attribute name="hidden-when">action-disabled</attribute>
|
|
|
|
</item>
|
|
|
|
</section>
|
|
|
|
</menu>
|
2021-05-19 07:57:06 +00:00
|
|
|
<template class="ContentRoomHistory" parent="AdwBin">
|
|
|
|
<property name="vexpand">True</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
<child>
|
|
|
|
<object class="AdwHeaderBar" id="headerbar">
|
|
|
|
<property name="show-start-title-buttons" bind-source="ContentRoomHistory" bind-property="compact" bind-flags="sync-create"/>
|
|
|
|
<child type="start">
|
2021-06-24 01:31:47 +00:00
|
|
|
<object class="GtkRevealer">
|
|
|
|
<property name="transition-type">crossfade</property>
|
|
|
|
<property name="reveal-child" bind-source="ContentRoomHistory" bind-property="compact" bind-flags="sync-create"/>
|
|
|
|
<property name="child">
|
|
|
|
<object class="GtkButton" id="back">
|
|
|
|
<property name="icon-name">go-previous-symbolic</property>
|
|
|
|
<property name="action-name">content.go-back</property>
|
|
|
|
</object>
|
|
|
|
</property>
|
2021-05-19 07:57:06 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child type="title">
|
2021-06-25 20:49:18 +00:00
|
|
|
<object class="RoomTitle" id="room_title">
|
2021-05-19 07:57:06 +00:00
|
|
|
<binding name="title">
|
|
|
|
<lookup name="display-name">
|
|
|
|
<lookup name="room">ContentRoomHistory</lookup>
|
|
|
|
</lookup>
|
|
|
|
</binding>
|
|
|
|
<binding name="subtitle">
|
|
|
|
<lookup name="topic">
|
|
|
|
<lookup name="room">ContentRoomHistory</lookup>
|
|
|
|
</lookup>
|
|
|
|
</binding>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child type="end">
|
|
|
|
<object class="GtkMenuButton" id="room_menu">
|
|
|
|
<property name="icon-name">view-more-symbolic</property>
|
2021-05-31 16:43:13 +00:00
|
|
|
<property name="menu-model">room-menu-model</property>
|
2021-05-19 07:57:06 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child type="end">
|
|
|
|
<object class="GtkToggleButton" id="search_content_button">
|
|
|
|
<property name="icon-name">system-search-symbolic</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkSearchBar" id="room_search">
|
|
|
|
<property name="search-mode-enabled" bind-source="search_content_button" bind-property="active"/>
|
|
|
|
<property name="child">
|
|
|
|
<object class="AdwClamp">
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkSearchEntry"/>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2021-07-11 13:08:14 +00:00
|
|
|
<object class="GtkStack" id="stack">
|
|
|
|
<property name="transition-type">crossfade</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkSpinner" id="loading">
|
|
|
|
<property name="spinning">True</property>
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<property name="halign">center</property>
|
2021-05-19 07:57:06 +00:00
|
|
|
<property name="vexpand">True</property>
|
2021-07-11 13:08:14 +00:00
|
|
|
<style>
|
|
|
|
<class name="session-loading-spinner"/>
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2021-09-06 15:07:34 +00:00
|
|
|
<object class="GtkOverlay" id="content">
|
|
|
|
<child type="overlay">
|
|
|
|
<object class="GtkRevealer" id="scroll_btn_revealer">
|
|
|
|
<property name="transition_type">crossfade</property>
|
|
|
|
<property name="reveal_child" bind-source="ContentRoomHistory" bind-property="sticky" bind-flags="sync-create | invert-boolean"/>
|
|
|
|
<property name="valign">end</property>
|
|
|
|
<property name="halign">end</property>
|
|
|
|
<property name="margin-end">24</property>
|
|
|
|
<property name="margin-bottom">24</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="scroll_btn">
|
|
|
|
<property name="icon-name">go-bottom-symbolic</property>
|
|
|
|
<property name="action-name">room-history.scroll-down</property>
|
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Scroll to bottom</property>
|
|
|
|
</accessibility>
|
2021-07-11 13:08:14 +00:00
|
|
|
<style>
|
2021-09-06 15:07:34 +00:00
|
|
|
<class name="osd"/>
|
|
|
|
<class name="circular"/>
|
2021-07-11 13:08:14 +00:00
|
|
|
</style>
|
2021-09-06 15:07:34 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkScrolledWindow" id="scrolled_window">
|
|
|
|
<property name="vexpand">True</property>
|
|
|
|
<property name="hscrollbar-policy">never</property>
|
|
|
|
<style>
|
|
|
|
<class name="room-history"/>
|
|
|
|
</style>
|
|
|
|
<property name="child">
|
|
|
|
<object class="AdwClampScrollable">
|
|
|
|
<property name="vexpand">True</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="child">
|
|
|
|
<object class="GtkListView" id="listview">
|
|
|
|
<style>
|
|
|
|
<class name="navigation-sidebar"/>
|
|
|
|
</style>
|
|
|
|
<property name="factory">
|
|
|
|
<object class="GtkBuilderListItemFactory">
|
|
|
|
<property name="resource">/org/gnome/FractalNext/content-item.ui</property>
|
|
|
|
</object>
|
|
|
|
</property>
|
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Room History</property>
|
|
|
|
</accessibility>
|
2021-07-11 13:08:14 +00:00
|
|
|
</object>
|
|
|
|
</property>
|
2021-05-19 07:57:06 +00:00
|
|
|
</object>
|
|
|
|
</property>
|
|
|
|
</object>
|
2021-09-06 15:07:34 +00:00
|
|
|
</child>
|
2021-05-19 07:57:06 +00:00
|
|
|
</object>
|
2021-07-11 13:08:14 +00:00
|
|
|
</child>
|
2021-05-19 07:57:06 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkSeparator"/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="AdwClamp">
|
2021-08-24 10:56:11 +00:00
|
|
|
<property name="vexpand">False</property>
|
2021-05-19 07:57:06 +00:00
|
|
|
<child>
|
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="spacing">6</property>
|
|
|
|
<style>
|
|
|
|
<class name="send-message-area"/>
|
|
|
|
</style>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton">
|
2021-07-08 12:06:27 +00:00
|
|
|
<property name="valign">end</property>
|
2021-05-19 07:57:06 +00:00
|
|
|
<property name="icon-name">mail-attachment-symbolic</property>
|
|
|
|
<property name="action-name">room-history.select-file</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkMenuButton" id="markdown_button">
|
2021-07-08 12:06:27 +00:00
|
|
|
<property name="valign">end</property>
|
2021-05-19 07:57:06 +00:00
|
|
|
<property name="direction">up</property>
|
|
|
|
<property name="icon-name">format-justify-left-symbolic</property>
|
|
|
|
<property name="popover">
|
|
|
|
<object class="MarkdownPopover">
|
|
|
|
<property name="markdown-enabled" bind-source="ContentRoomHistory" bind-property="markdown-enabled" bind-flags="sync-create | bidirectional"/>
|
|
|
|
</object>
|
|
|
|
</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2021-08-24 11:00:16 +00:00
|
|
|
<object class="CustomEntry">
|
2021-05-19 07:57:06 +00:00
|
|
|
<style>
|
2021-09-06 15:07:34 +00:00
|
|
|
<class name="message-entry"/>
|
2021-05-19 07:57:06 +00:00
|
|
|
</style>
|
2021-08-24 11:00:16 +00:00
|
|
|
<child>
|
|
|
|
<object class="GtkScrolledWindow">
|
|
|
|
<property name="vexpand">True</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="vscrollbar-policy">external</property>
|
|
|
|
<property name="max-content-height">200</property>
|
|
|
|
<property name="propagate-natural-height">True</property>
|
|
|
|
<property name="child">
|
|
|
|
<object class="GtkSourceView" id="message_entry">
|
|
|
|
<property name="hexpand">True</property>
|
2021-08-24 11:01:38 +00:00
|
|
|
<property name="accepts-tab">False</property>
|
2021-08-24 11:00:16 +00:00
|
|
|
</object>
|
|
|
|
</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
2021-05-19 07:57:06 +00:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton">
|
2021-07-08 12:06:27 +00:00
|
|
|
<property name="valign">end</property>
|
2021-05-19 07:57:06 +00:00
|
|
|
<property name="icon-name">send-symbolic</property>
|
|
|
|
<property name="focus-on-click">False</property>
|
|
|
|
<property name="action-name">room-history.send-text-message</property>
|
|
|
|
<style>
|
|
|
|
<class name="suggested-action"/>
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</template>
|
|
|
|
</interface>
|
2021-09-06 15:07:34 +00:00
|
|
|
|