mirror of
https://gitlab.com/schmiddi-on-mobile/flare.git
synced 2026-10-28 22:47:47 -04:00
This includes: - Margins - Hiding last message if there is none - Bigger margins in message list Fixes #20.
149 lines
5.6 KiB
XML
149 lines
5.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<requires lib="gtk+" version="3.24"/>
|
|
<requires lib="libadwaita" version="1.0"/>
|
|
|
|
<template class="FlWindow" parent="AdwApplicationWindow">
|
|
<property name="can-focus">True</property>
|
|
<property name="title">Flare</property>
|
|
<property name="default-height">800</property>
|
|
<property name="default-width">500</property>
|
|
|
|
<child>
|
|
<object class="AdwLeaflet" id="leaflet">
|
|
<property name="can-navigate-back">True</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<style>
|
|
<class name="view"/>
|
|
</style>
|
|
|
|
<property name="orientation">vertical</property>
|
|
<property name="width-request">300</property>
|
|
<child>
|
|
<object class="AdwHeaderBar">
|
|
<binding name="show-end-title-buttons">
|
|
<lookup name="folded">leaflet</lookup>
|
|
</binding>
|
|
<property name="title-widget">
|
|
<object class="AdwWindowTitle">
|
|
<property name="title">Flare</property>
|
|
</object>
|
|
</property>
|
|
<child type="start">
|
|
<object class="GtkToggleButton">
|
|
<accessibility>
|
|
<property name="label" translatable="yes" context="accessibility">Search</property>
|
|
</accessibility>
|
|
<property name="tooltip-text" context="tooltip">Search</property>
|
|
<property name="icon-name">system-search-symbolic</property>
|
|
<property name="active" bind-source="channel_list" bind-property="search-enabled"/>
|
|
<signal name="clicked" handler="handle_search_clicked" swapped="true"/>
|
|
</object>
|
|
</child>
|
|
<child type="end">
|
|
<object class="GtkMenuButton">
|
|
<accessibility>
|
|
<property name="label" translatable="yes" context="accessibility">Menu</property>
|
|
</accessibility>
|
|
<property name="tooltip-text" context="tooltip">Menu</property>
|
|
|
|
<property name="menu-model">menubar</property>
|
|
<property name="primary">True</property>
|
|
<property name="icon-name">open-menu-symbolic</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="FlChannelList" id="channel_list">
|
|
<signal name="active-channel-changed" handler="handle_go_forward" swapped="true"/>
|
|
<binding name="manager">
|
|
<lookup name="manager" type="FlWindow"/>
|
|
</binding>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="AdwLeafletPage">
|
|
<property name="navigatable">False</property>
|
|
<property name="child">
|
|
<object class="GtkSeparator"/>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<property name="hexpand">True</property>>
|
|
<child>
|
|
<object class="AdwHeaderBar">
|
|
<child>
|
|
<object class="GtkButton">
|
|
<signal name="clicked" handler="handle_go_back" swapped="true"/>
|
|
<binding name="visible">
|
|
<lookup name="folded">leaflet</lookup>
|
|
</binding>
|
|
<property name="icon-name">go-previous-symbolic</property>
|
|
</object>
|
|
</child>
|
|
<property name="title-widget">
|
|
<object class="AdwWindowTitle">
|
|
<binding name="title">
|
|
<lookup name="title">
|
|
<lookup name="active-channel">
|
|
channel_list
|
|
</lookup>
|
|
</lookup>
|
|
</binding>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="FlChannelMessages" id="channel_messages">
|
|
<binding name="manager">
|
|
<lookup name="manager" type="FlWindow"/>
|
|
</binding>
|
|
<binding name="active-channel">
|
|
<lookup name="active-channel">
|
|
channel_list
|
|
</lookup>
|
|
</binding>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
|
|
<menu id="menubar">
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">Settings</attribute>
|
|
<attribute name="action">win.settings</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">Unlink</attribute>
|
|
<attribute name="action">win.unlink</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">Clear messages</attribute>
|
|
<attribute name="action">win.clear-messages</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">Keybindings</attribute>
|
|
<attribute name="action">win.show-help-overlay</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">About</attribute>
|
|
<attribute name="action">win.about</attribute>
|
|
</item>
|
|
</section>
|
|
</menu>
|
|
</interface>
|