mirror of
https://github.com/TakeV-Lambda/Tooth.git
synced 2024-08-17 10:09:21 +00:00
instead of appending views indefinitely (including doubles like DMs -> Search -> DMs), remove the previous view and then append (this also ensures that the previous view is always Home) feat: add Home to the sidebar fix: selected sidebar row
38 lines
1.3 KiB
XML
38 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<requires lib="gtk+" version="3.20"/>
|
|
<requires lib="libhandy" version="1.0"/>
|
|
<template class="ToothDialogsMainWindow" parent="AdwApplicationWindow">
|
|
<property name="width_request">360</property>
|
|
<property name="height_request">600</property>
|
|
<child>
|
|
|
|
<object class="AdwFlap" id="flap">
|
|
<child type="flap">
|
|
<object class="ToothViewsSidebar" id="sidebar">
|
|
<style>
|
|
<class name="background"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<!-- <child type="separator"> -->
|
|
<!-- <object class="GtkSeparator"> -->
|
|
<!-- <property name="orientation">vertical</property> -->
|
|
<!-- </object> -->
|
|
<!-- </child> -->
|
|
<child type="content">
|
|
<object class="AdwLeaflet" id="leaflet">
|
|
<property name="transition_type">slide</property>
|
|
<property name="can-navigate-back">1</property>
|
|
<property name="can-unfold">0</property>
|
|
<property name="homogeneous">0</property>
|
|
<signal name="notify::child-transition-running" handler="on_child_transition"/>
|
|
<signal name="notify::visible-child" handler="on_view_changed"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
|
|
</child>
|
|
</template>
|
|
</interface>
|