Tooth/data/ui/views/base.ui
2021-08-20 13:41:22 +03:00

136 lines
6.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<requires lib="libadwaita" version="1.0"/>
<template class="TootleViewsBase" parent="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="AdwHeaderBar" id="header">
<property name="visible">True</property>
<property name="hexpand">True</property>
<child>
<object class="GtkButton" id="back_button">
<property name="icon_name">go-previous-symbolic</property>
<signal name="clicked" handler="on_close" swapped="no"/>
</object>
</child>
</object>
</child>
<child>
<object class="GtkScrolledWindow" id="scrolled">
<property name="vexpand">1</property>
<property name="hscrollbar_policy">never</property>
<property name="child">
<object class="GtkViewport">
<property name="child">
<object class="GtkBox" id="view">
<property name="orientation">vertical</property>
<child>
<object class="AdwClamp" id="clamp">
<property name="vexpand">1</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="maximum_size">650</property>
<property name="tightening_threshold">650</property>
<child>
<object class="GtkBox" id="column_view">
<property name="orientation">vertical</property>
<child>
<object class="GtkStack" id="states">
<property name="vexpand">1</property>
<property name="vhomogeneous">0</property>
<property name="transition_type">crossfade</property>
<property name="interpolate_size">1</property>
<child>
<object class="GtkStackPage">
<property name="name">status</property>
<property name="child">
<object class="GtkBox" id="status">
<property name="valign">center</property>
<property name="margin_top">16</property>
<property name="margin_bottom">16</property>
<property name="orientation">vertical</property>
<property name="spacing">16</property>
<child>
<object class="GtkImage">
<property name="width_request">128</property>
<property name="height_request">128</property>
<property name="pixel_size">128</property>
<property name="icon_name">com.github.bleakgrey.tootle-symbolic</property>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
<child>
<object class="GtkStack" id="status_stack">
<property name="transition_type">crossfade</property>
<child>
<object class="GtkStackPage">
<property name="name">message</property>
<property name="child">
<object class="GtkLabel" id="status_message_label">
<property name="use_markup">1</property>
</object>
</property>
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">spinner</property>
<property name="child">
<object class="GtkSpinner" id="status_spinner">
<property name="height_request">32</property>
<property name="spinning">True</property>
</object>
</property>
</object>
</child>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
<child>
<object class="GtkButton" id="status_button">
<property name="visible">0</property>
<property name="halign">center</property>
<style>
<class name="flat"/>
</style>
</object>
</child>
</object>
</property>
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">content</property>
<property name="child">
<object class="GtkBox" id="content_box">
<property name="orientation">vertical</property>
</object>
</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
<style>
<class name="ttl-view"/>
</style>
</object>
</property>
</object>
</property>
</object>
</child>
</template>
</interface>