making channel controls interactable

This commit is contained in:
2026-01-14 14:43:57 +11:00
parent d757b839d7
commit 7ca336c321
11 changed files with 69 additions and 18 deletions

View File

@@ -10,9 +10,10 @@ class Sidebar(Vertical):
Sidebar {
dock: left;
background: $surface;
width: 40;
width: 43;
border-right: tall $surface-lighten-1;
padding: 1;
margin-top: 1;
#add-channel {
min-width: 100%;
@@ -23,8 +24,9 @@ class Sidebar(Vertical):
def compose(self) -> ComposeResult:
with VerticalScroll(id="channels"):
for channel in self.app.project.channels:
for i, channel in enumerate(self.app.project.channels):
yield Channel(
i,
channel.name,
channel.mute,
channel.solo,