audrey/src/window.blp

201 lines
3.5 KiB
Text
Raw Normal View History

2024-10-10 10:12:43 +00:00
using Gtk 4.0;
using Adw 1;
template $WaveletWindow: Adw.ApplicationWindow {
title: _("Wavelet");
default-width: 800;
default-height: 600;
content: Box {
orientation: vertical;
Adw.OverlaySplitView {
vexpand: true;
[sidebar]
Adw.NavigationPage {
width-request: 100;
title: _("Wavelet");
Adw.ToolbarView {
[top]
Adw.HeaderBar {}
content: Box {
orientation: vertical;
ListBox sidebar {
styles [
"navigation-sidebar",
]
ListBoxRow sidebar_setup {
Label {
xalign: 0;
2024-10-10 10:16:23 +00:00
label: _("Setup");
2024-10-10 10:12:43 +00:00
}
}
ListBoxRow sidebar_play_queue {
Label {
xalign: 0;
2024-10-10 10:16:23 +00:00
label: _("Play queue");
2024-10-10 10:12:43 +00:00
}
}
}
Separator {}
ListBox {
selection-mode: none;
styles [
"navigation-sidebar",
]
Adw.ButtonRow {
2024-10-10 10:16:23 +00:00
title: _("Shuffle all tracks");
2024-10-10 10:12:43 +00:00
start-icon-name: "media-playlist-shuffle";
}
}
};
}
}
[content]
Stack stack {
StackPage {
name: "setup";
2024-10-10 10:16:23 +00:00
title: _("Setup");
2024-10-10 10:12:43 +00:00
child: $WaveletSetup setup {};
}
StackPage {
name: "artist_list";
2024-10-10 10:16:23 +00:00
title: _("Artists");
2024-10-10 10:12:43 +00:00
child: $WaveletArtistList artist_list {};
}
StackPage {
name: "song_list";
2024-10-10 10:16:23 +00:00
title: _("Songs");
2024-10-10 10:12:43 +00:00
child: $WaveletSongList song_list {};
}
StackPage {
name: "play_queue";
2024-10-10 10:16:23 +00:00
title: _("Play queue");
2024-10-10 10:12:43 +00:00
child: $WaveletPlayQueue play_queue {};
}
}
}
[bottom]
Box {
orientation: horizontal;
styles [
"toolbar",
]
Image {
height-request: 100;
width-request: 100;
}
Box {
orientation: vertical;
valign: center;
Label {
halign: start;
label: "Title";
}
Label {
halign: start;
label: "Artist - Album - Year";
}
Box {
halign: start;
orientation: horizontal;
Label {
label: "00:00";
}
Scale {
orientation: horizontal;
width-request: 200;
adjustment: Adjustment {
lower: 0;
upper: 100;
value: 0;
};
}
Label {
label: "99:99";
}
}
}
Separator {
styles [
"spacer",
]
hexpand: true;
}
Button {
icon-name: "media-skip-backward";
valign: center;
}
Button {
icon-name: "media-playback-start";
valign: center;
}
Button {
icon-name: "media-skip-forward";
valign: center;
}
Button {
icon-name: "non-starred";
valign: center;
}
Button {
icon-name: "audio-volume-high";
valign: center;
}
Scale {
orientation: horizontal;
width-request: 130;
adjustment: Adjustment {
lower: 0;
upper: 100;
value: 100;
};
}
Button {
icon-name: "media-playlist-consecutive";
valign: center;
}
}
};
}