91 lines
1.8 KiB
Plaintext
91 lines
1.8 KiB
Plaintext
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template $AudioDeviceManagerWindow: Adw.ApplicationWindow {
|
|
title: _("Audio-device-manager");
|
|
default-width: 800;
|
|
default-height: 600;
|
|
|
|
Adw.Breakpoint {
|
|
condition ("max-width: 500sp")
|
|
setters {
|
|
split_view.collapsed: true;
|
|
}
|
|
}
|
|
|
|
content: Adw.NavigationSplitView split_view {
|
|
min-sidebar-width: 200;
|
|
|
|
sidebar: Adw.NavigationPage {
|
|
title: _("Devices");
|
|
tag: "devices";
|
|
|
|
child: Adw.ToolbarView {
|
|
[top]
|
|
Adw.HeaderBar {
|
|
show-title: true;
|
|
[start]
|
|
Gtk.ToggleButton {
|
|
icon-name: "list-add-symbolic";
|
|
tooltip-text: _("New Device");
|
|
action-name: "win.new-device";
|
|
}
|
|
}
|
|
|
|
content: ScrolledWindow {
|
|
child: ListBox devices_list {
|
|
styles [
|
|
"navigation-sidebar"
|
|
]
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
content: Adw.NavigationPage device_navigation_page {
|
|
title: _("");
|
|
tag: "device navigation page";
|
|
|
|
child: Adw.ToolbarView {
|
|
[top]
|
|
Adw.HeaderBar {
|
|
show-title: true;
|
|
[end]
|
|
MenuButton {
|
|
primary: true;
|
|
icon-name: "open-menu-symbolic";
|
|
tooltip-text: _("Main Menu");
|
|
menu-model: primary_menu;
|
|
}
|
|
}
|
|
|
|
content: Gtk.ScrolledWindow {
|
|
child: Adw.Clamp device_page_clamp {
|
|
maximum-size: 640;
|
|
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|
|
menu primary_menu {
|
|
section {
|
|
item {
|
|
label: _("_Preferences");
|
|
action: "app.preferences";
|
|
}
|
|
|
|
item {
|
|
label: _("_Keyboard Shortcuts");
|
|
action: "win.show-help-overlay";
|
|
}
|
|
|
|
item {
|
|
label: _("_About Audio-device-manager");
|
|
action: "app.about";
|
|
}
|
|
}
|
|
}
|