182 lines
7.5 KiB
XML
182 lines
7.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<requires lib="gtk+" version="4.8"/>
|
|
<requires lib="adw" version="1.2" />
|
|
<object class="GtkBox" id="toolbar">
|
|
<property name="orientation">horizontal</property>
|
|
<property name="halign">end</property>
|
|
<property name="spacing">6</property>
|
|
<child>
|
|
<object class="GtkToggleButton" id="select_button">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="receives-default">True</property>
|
|
<property name="tooltip-text" translatable="yes">Select multiple albums</property>
|
|
<signal name="toggled" handler="on_select_toggled" swapped="no"/>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="icon-name">object-select-symbolic</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="playlist_clear_button">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="receives-default">True</property>
|
|
<property name="tooltip-text" translatable="yes">Clear the playlist</property>
|
|
<signal name="clicked" handler="on_clear_clicked" swapped="no"/>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="icon-name">edit-clear</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<template class="McgPlaylistPanel" parent="AdwBin">
|
|
<child>
|
|
<object class="GtkStack" id="playlist_stack">
|
|
<property name="transition-type">slide-left-right</property>
|
|
<child>
|
|
<object class="GtkBox" id="panel_normal">
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkScrolledWindow">
|
|
<property name="vexpand">true</property>
|
|
<child>
|
|
<object class="GtkGridView" id="playlist_grid">
|
|
<property name="orientation">vertical</property>
|
|
<property name="single-click-activate">true</property>
|
|
<signal name="activate" handler="on_playlist_grid_clicked"/>
|
|
<style>
|
|
<class name="no-bg"/>
|
|
</style>
|
|
<property name="factory">
|
|
<object class="GtkBuilderListItemFactory">
|
|
<property name="bytes">
|
|
<![CDATA[
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="GtkListItem">
|
|
<property name="activatable">true</property>
|
|
<property name="child">
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkPicture">
|
|
<property name="content-fit">contain</property>
|
|
<property name="can-shrink">false</property>
|
|
<binding name="tooltip-markup">
|
|
<lookup name="tooltip" type="GridItem">
|
|
<lookup name="item">GtkListItem</lookup>
|
|
</lookup>
|
|
</binding>
|
|
<binding name="paintable">
|
|
<lookup name="cover" type="GridItem">
|
|
<lookup name="item">GtkListItem</lookup>
|
|
</lookup>
|
|
</binding>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</template>
|
|
</interface>
|
|
]]>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<style>
|
|
<class name="no-bg"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkRevealer" id="actionbar_revealer">
|
|
<property name="transition-type">slide-up</property>
|
|
<child>
|
|
<object class="GtkActionBar" id="actionbar">
|
|
<child type="end">
|
|
<object class="GtkButton">
|
|
<property name="label" translatable="yes">cancel</property>
|
|
<property name="receives-default">True</property>
|
|
<signal name="clicked" handler="on_selection_cancel_clicked" swapped="no"/>
|
|
</object>
|
|
</child>
|
|
<child type="end">
|
|
<object class="GtkButton">
|
|
<property name="label" translatable="yes">remove</property>
|
|
<property name="receives-default">True</property>
|
|
<signal name="clicked" handler="on_selection_remove_clicked" swapped="no"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="panel_standalone">
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkStack" id="standalone_stack">
|
|
<property name="vexpand">true</property>
|
|
<child>
|
|
<object class="GtkSpinner" id="standalone_spinner">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkScrolledWindow" id="standalone_scroll">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="kinetic-scrolling">False</property>
|
|
<property name="overlay-scrolling">False</property>
|
|
<child>
|
|
<object class="GtkViewport">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<child>
|
|
<object class="GtkImage" id="standalone_image">
|
|
<property name="icon-name">gtk-missing-image</property>
|
|
<property name="icon-size">large</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkActionBar" id="actionbar_standalone">
|
|
<child type="end">
|
|
<object class="GtkButton">
|
|
<property name="label" translatable="yes">play</property>
|
|
<property name="receives-default">True</property>
|
|
<signal name="clicked" handler="on_standalone_play_clicked" swapped="no"/>
|
|
</object>
|
|
</child>
|
|
<child type="end">
|
|
<object class="GtkButton">
|
|
<property name="label" translatable="yes">remove</property>
|
|
<property name="receives-default">True</property>
|
|
<signal name="clicked" handler="on_standalone_remove_clicked" swapped="no"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|