Force name column in playlist table to be full width

This commit is contained in:
Peder Bergebakken Sundt 2018-03-06 15:27:37 +01:00
parent 1481c8a50c
commit 60b7da91aa
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,9 @@ class RemiApp(App):
self.playlist.clear = gui.Button("CLEAR", height="1.8em") self.playlist.clear = gui.Button("CLEAR", height="1.8em")
self.playlist.clear.set_on_click_listener(self.on_playlist_clear_click) self.playlist.clear.set_on_click_listener(self.on_playlist_clear_click)
self.playlist.table.get_child("title") \
.get_child(self.playlist.table.get_child("title")._render_children_list[1]) \
.style["width"] = "100%"
self.playlist.clear.style["background"] = f"linear-gradient(40deg,{COLOR_RED},{COLOR_ORANGE})" self.playlist.clear.style["background"] = f"linear-gradient(40deg,{COLOR_RED},{COLOR_ORANGE})"
self.playlist.shuffle.style["background"] = f"linear-gradient(40deg,{COLOR_TEAL},{COLOR_GREEN})" self.playlist.shuffle.style["background"] = f"linear-gradient(40deg,{COLOR_TEAL},{COLOR_GREEN})"
for i in (self.playlist.shuffle, self.playlist.clear): for i in (self.playlist.shuffle, self.playlist.clear):