326 lines
16 KiB
XML
326 lines
16 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>
|
|
<child>
|
|
<object class="GtkToggleButton" id="sidebar_switcher">
|
|
<property name="icon-name">sidebar-show-symbolic</property>
|
|
<property name="active">true</property>
|
|
<property name="visible" bind-source="server_flap" bind-property="folded" bind-flags="sync-create"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<template class="McgServerPanel" parent="AdwBin">
|
|
<child>
|
|
<object class="AdwFlap" id="server_flap">
|
|
<property name="flap-position">end</property>
|
|
<property name="reveal-flap" bind-source="sidebar_switcher" bind-property="active" bind-flags="sync-create|bidirectional" />
|
|
<property name="flap">
|
|
<object class="GtkStackSidebar">
|
|
<property name="stack">stack</property>
|
|
<property name="name">server_stack_sidebar</property>
|
|
</object>
|
|
</property>
|
|
<property name="separator">
|
|
<object class="GtkSeparator"/>
|
|
</property>
|
|
<property name="content">
|
|
<object class="GtkStack" id="stack">
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">status</property>
|
|
<property name="title" translatable="yes">Status</property>
|
|
<property name="child">
|
|
<object class="AdwStatusPage">
|
|
<property name="icon-name">dialog-information-symbolic</property>
|
|
<child>
|
|
<object class="GtkGrid">
|
|
<property name="row-spacing">2</property>
|
|
<property name="column-spacing">5</property>
|
|
<property name="hexpand">false</property>
|
|
<property name="halign">center</property>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="halign">start</property>
|
|
<property name="valign">start</property>
|
|
<property name="label" translatable="yes">File:</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="halign">start</property>
|
|
<property name="valign">start</property>
|
|
<property name="label" translatable="yes">Audio:</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="halign">start</property>
|
|
<property name="valign">start</property>
|
|
<property name="label" translatable="yes">Bitrate:</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="halign">start</property>
|
|
<property name="valign">start</property>
|
|
<property name="label" translatable="yes">Error:</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">3</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="status_file">
|
|
<property name="halign">start</property>
|
|
<property name="label" translatable="yes"><i>none</i></property>
|
|
<property name="use-markup">True</property>
|
|
<property name="wrap">True</property>
|
|
<property name="selectable">True</property>
|
|
<property name="xalign">0</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="status_audio">
|
|
<property name="halign">start</property>
|
|
<property name="label" translatable="yes"><i>none</i></property>
|
|
<property name="use-markup">True</property>
|
|
<property name="wrap">True</property>
|
|
<property name="selectable">True</property>
|
|
<property name="xalign">0</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="status_bitrate">
|
|
<property name="halign">start</property>
|
|
<property name="label" translatable="yes"><i>none</i></property>
|
|
<property name="use-markup">True</property>
|
|
<property name="wrap">True</property>
|
|
<property name="selectable">True</property>
|
|
<property name="xalign">0</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="status_error">
|
|
<property name="halign">start</property>
|
|
<property name="label" translatable="yes"><i>none</i></property>
|
|
<property name="use-markup">True</property>
|
|
<property name="wrap">True</property>
|
|
<property name="selectable">True</property>
|
|
<property name="xalign">0</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">3</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">stats</property>
|
|
<property name="title" translatable="yes">Statistics</property>
|
|
<property name="child">
|
|
<object class="AdwStatusPage">
|
|
<property name="icon-name">starred-symbolic</property>
|
|
<child>
|
|
<object class="GtkGrid">
|
|
<property name="row-spacing">2</property>
|
|
<property name="column-spacing">5</property>
|
|
<property name="column-homogeneous">true</property>
|
|
<property name="hexpand">false</property>
|
|
<property name="halign">center</property>
|
|
<child>
|
|
<object class="GtkLabel" id="stats_artists">
|
|
<property name="halign">end</property>
|
|
<property name="justify">right</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="halign">start</property>
|
|
<property name="label" translatable="yes">Artists</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="stats_albums">
|
|
<property name="halign">end</property>
|
|
<property name="justify">right</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="halign">start</property>
|
|
<property name="label" translatable="yes">Albums</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="stats_songs">
|
|
<property name="halign">end</property>
|
|
<property name="justify">right</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="halign">start</property>
|
|
<property name="label" translatable="yes">Songs</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="stats_dbplaytime">
|
|
<property name="halign">end</property>
|
|
<property name="justify">right</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">3</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="halign">start</property>
|
|
<property name="label" translatable="yes">Seconds</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">3</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">4</property>
|
|
<property name="column-span">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="stats_playtime">
|
|
<property name="halign">end</property>
|
|
<property name="justify">right</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">5</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="halign">start</property>
|
|
<property name="label" translatable="yes">Seconds played</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">5</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="stats_uptime">
|
|
<property name="halign">end</property>
|
|
<property name="justify">right</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">6</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="halign">start</property>
|
|
<property name="label" translatable="yes">Seconds running</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">6</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">devices</property>
|
|
<property name="title" translatable="yes">Audio Devices</property>
|
|
<property name="child">
|
|
<object class="AdwStatusPage">
|
|
<property name="icon-name">audio-speakers-symbolic</property>
|
|
<child>
|
|
<object class="GtkListBox" id="output_devices">
|
|
<property name="hexpand">false</property>
|
|
<property name="halign">center</property>
|
|
<property name="selection-mode">none</property>
|
|
<style>
|
|
<class name="no-bg"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|