1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="MousaiWindow" parent="AdwApplicationWindow">
<property name="width-request">360</property>
<property name="height-request">294</property>
<child>
<object class="AdwBreakpoint">
<!-- 450 is just right to prevent three columns history grid view on narrow mode. -->
<condition>max-width: 450px</condition>
<setter object="main_view" property="adaptive-mode">narrow</setter>
<setter object="song_bar" property="adaptive-mode">narrow</setter>
</object>
</child>
<property name="content">
<object class="AdwToastOverlay" id="toast_overlay">
<property name="child">
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkStack" id="stack">
<property name="vexpand">True</property>
<property name="transition-type">crossfade</property>
<child>
<object class="MousaiHistoryView" id="main_view"/>
</child>
<child>
<object class="MousaiRecognizerView" id="recognizer_view"/>
</child>
</object>
</child>
<child>
<object class="GtkRevealer" id="song_bar_revealer">
<property name="overflow">visible</property>
<property name="transition-type">slide-up</property>
<property name="child">
<object class="MousaiSongBar" id="song_bar"/>
</property>
</object>
</child>
</object>
</property>
</object>
</property>
<child>
<object class="GtkEventControllerKey">
<property name="propagation-phase">capture</property>
<signal name="key-pressed" handler="key_pressed" swapped="yes"/>
</object>
</child>
</template>
</interface>
|