|
|
|
@ -39,9 +39,9 @@ class MediaDetailsScreen(Screen):
|
|
|
|
|
CSS = """
|
|
|
|
|
|
|
|
|
|
Grid {
|
|
|
|
|
grid-size: 4 8;
|
|
|
|
|
grid-size: 5 8;
|
|
|
|
|
grid-rows: 8 2 2 2 8 2 2 8;
|
|
|
|
|
grid-columns: 25 125 10 75;
|
|
|
|
|
grid-columns: 25 25 100 10 75;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 1;
|
|
|
|
@ -61,7 +61,9 @@ class MediaDetailsScreen(Screen):
|
|
|
|
|
#toplabel {
|
|
|
|
|
height: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.two {
|
|
|
|
|
column-span: 2;
|
|
|
|
|
}
|
|
|
|
|
.three {
|
|
|
|
|
column-span: 3;
|
|
|
|
|
}
|
|
|
|
@ -310,7 +312,7 @@ class MediaDetailsScreen(Screen):
|
|
|
|
|
def compose(self):
|
|
|
|
|
|
|
|
|
|
# Create the DataTable widget
|
|
|
|
|
self.showsTable = DataTable()
|
|
|
|
|
self.showsTable = DataTable(classes="two")
|
|
|
|
|
|
|
|
|
|
# Define the columns with headers
|
|
|
|
|
self.column_key_show_id = self.showsTable.add_column("ID", width=10)
|
|
|
|
@ -320,7 +322,7 @@ class MediaDetailsScreen(Screen):
|
|
|
|
|
self.showsTable.cursor_type = 'row'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.mediaTagsTable = DataTable()
|
|
|
|
|
self.mediaTagsTable = DataTable(classes="two")
|
|
|
|
|
|
|
|
|
|
# Define the columns with headers
|
|
|
|
|
self.column_key_track_tag_key = self.mediaTagsTable.add_column("Key", width=20)
|
|
|
|
@ -329,7 +331,7 @@ class MediaDetailsScreen(Screen):
|
|
|
|
|
self.mediaTagsTable.cursor_type = 'row'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.tracksTable = DataTable()
|
|
|
|
|
self.tracksTable = DataTable(classes="two")
|
|
|
|
|
|
|
|
|
|
# Define the columns with headers
|
|
|
|
|
self.column_key_track_index = self.tracksTable.add_column("Index", width=5)
|
|
|
|
@ -365,16 +367,16 @@ class MediaDetailsScreen(Screen):
|
|
|
|
|
# 2
|
|
|
|
|
yield Static(" ")
|
|
|
|
|
yield Button("Substitute", id="pattern_button")
|
|
|
|
|
yield Static(" ")
|
|
|
|
|
yield Static(" ", classes="two")
|
|
|
|
|
|
|
|
|
|
# 3
|
|
|
|
|
yield Static("Pattern")
|
|
|
|
|
yield Input(type="text", id='pattern_input')
|
|
|
|
|
yield Input(type="text", id='pattern_input', classes="two")
|
|
|
|
|
|
|
|
|
|
yield Static(" ")
|
|
|
|
|
|
|
|
|
|
# 4
|
|
|
|
|
yield Static(" ", classes="three")
|
|
|
|
|
yield Static(" ", classes="four")
|
|
|
|
|
|
|
|
|
|
# 5
|
|
|
|
|
yield Static("Media Tags")
|
|
|
|
@ -382,13 +384,13 @@ class MediaDetailsScreen(Screen):
|
|
|
|
|
yield Static(" ")
|
|
|
|
|
|
|
|
|
|
# 6
|
|
|
|
|
yield Static(" ", classes="three")
|
|
|
|
|
yield Static(" ", classes="four")
|
|
|
|
|
|
|
|
|
|
# 7
|
|
|
|
|
yield Static(" ")
|
|
|
|
|
yield Button("Select Default", id="select_default_button")
|
|
|
|
|
yield Button("Select Forced", id="select_forced_button")
|
|
|
|
|
|
|
|
|
|
yield Static(" ")
|
|
|
|
|
# 8
|
|
|
|
|
yield Static("Streams")
|
|
|
|
|
yield self.tracksTable
|
|
|
|
|