you can create channels now!!! :D
This commit is contained in:
@@ -3,6 +3,7 @@ from textual.widgets import Button, ListView
|
||||
from textual.app import ComposeResult
|
||||
|
||||
from ui.widgets.channel import Channel
|
||||
from ui.screens.channel_create_screen import ChannelCreateScreen
|
||||
|
||||
|
||||
class Sidebar(Vertical):
|
||||
@@ -22,6 +23,10 @@ class Sidebar(Vertical):
|
||||
}
|
||||
"""
|
||||
|
||||
def on_button_pressed(self, event: Button.Pressed):
|
||||
if event.button.id == "add-channel":
|
||||
self.app.push_screen(ChannelCreateScreen())
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
with VerticalScroll(id="channels"):
|
||||
for i, channel in enumerate(self.app.project.channels):
|
||||
|
||||
@@ -12,8 +12,9 @@ class TimelineRow(Horizontal):
|
||||
DEFAULT_CSS = """
|
||||
TimelineRow {
|
||||
background: $surface-lighten-1;
|
||||
max-height: 8;
|
||||
height: 8;
|
||||
margin-bottom: 1;
|
||||
width: 100;
|
||||
}
|
||||
"""
|
||||
|
||||
@@ -22,7 +23,8 @@ class Timeline(Vertical):
|
||||
Timeline {
|
||||
#rows {
|
||||
hatch: "-" $surface-lighten-1;
|
||||
padding: 1 0;
|
||||
padding: 0 0;
|
||||
overflow-x: auto;
|
||||
|
||||
.beat-line {
|
||||
color: $surface-lighten-1;
|
||||
|
||||
Reference in New Issue
Block a user