-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathendpoint.blp
87 lines (79 loc) · 1.93 KB
/
endpoint.blp
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
using Gtk 4.0;
using AstalWp 0.1;
template $WirecontrolEndpoint: Gtk.ListBoxRow {
selectable: false;
activatable: false;
child: Gtk.Box {
margin-start: 10;
margin-end: 10;
margin-top: 10;
margin-bottom: 10;
orientation: vertical;
Gtk.CenterBox {
[start]
Gtk.Box {
spacing: 10;
Gtk.Box {
orientation: vertical;
Gtk.Label {
label: bind template.endpoint as <AstalWp.Endpoint>.description;
ellipsize: end;
xalign: 0;
styles ["heading"]
}
Gtk.Label {
label: bind template.endpoint as <AstalWp.Endpoint>.name;
ellipsize: end;
xalign: 0;
styles ["subtitle"]
}
}
}
[end]
Gtk.Box {
spacing: 5;
Gtk.DropDown route {
model: bind template.routes;
expression: expr item as <AstalWp.Route>.description;
}
Gtk.ToggleButton mute_toggle {
child: Gtk.Image {
icon-name: "audio-volume-muted-symbolic";
tooltip-text: _("mute");
};
}
Gtk.ToggleButton lock_toggle {
child: Gtk.Image {
icon-name: "system-lock-screen-symbolic";
tooltip-text: _("lock channels");
};
}
Gtk.ToggleButton default_toggle {
halign: end;
child: Gtk.Image {
icon-name: "object-select-symbolic";
tooltip-text: _("set default");
};
}
}
}
Gtk.Box {
Gtk.Image {
icon-name: bind template.endpoint as <AstalWp.Endpoint>.volume-icon;
}
Gtk.Scale {
hexpand: true;
adjustment: Gtk.Adjustment volume_adjust {
lower: 0;
upper: 1;
};
}
}
Gtk.Expander {
label: _("channels");
Gtk.Box channel_box {
orientation: vertical;
}
}
};
}