diff --git a/src/window.py b/src/window.py index 478276b..b267150 100644 --- a/src/window.py +++ b/src/window.py @@ -77,7 +77,7 @@ class TidalWindow(Adw.ApplicationWindow): artist_label = Gtk.Template.Child() sidebar_collection = Gtk.Template.Child() right_sidebar_split_view = Gtk.Template.Child() - lyrics_box = Gtk.Template.Child() + lyrics_label = Gtk.Template.Child() sidebar_playlists = Gtk.Template.Child() volume_button = Gtk.Template.Child() in_my_collection_button = Gtk.Template.Child() @@ -210,10 +210,10 @@ def on_song_changed(self, *args): else: self.play_button.set_icon_name("media-playback-start-symbolic") - if self.right_sidebar_split_view.get_show_sidebar(): - th = threading.Thread(target=self.add_lyrics_to_page, args=()) - th.deamon = True - th.start() + # if self.right_sidebar_split_view.get_show_sidebar() or : + th = threading.Thread(target=self.add_lyrics_to_page, args=()) + th.deamon = True + th.start() self.control_bar_artist = track.artist self.update_slider() @@ -380,9 +380,7 @@ def on_lyrics_button_clicked_func(self, widget): def add_lyrics_to_page(self): lyrics = self.player_object.playing_track.lyrics() - label = Gtk.Label(label=lyrics.text, wrap=True, justify=2, opacity=0.6, - margin_start=12, margin_end=12, css_classes=["lyrics"]) - self.lyrics_box.set_child(label) + self.lyrics_label.set_label(lyrics.text) def download_song(self): """Added to check the streamed song quality, triggered with ctrl+d""" diff --git a/src/window.ui b/src/window.ui index cdd9d78..3a87633 100644 --- a/src/window.ui +++ b/src/window.ui @@ -79,8 +79,10 @@ true - undershoot-bottom -undershoot-top + vertical @@ -253,12 +255,23 @@ undershoot-top Lyrics - + true true + + + True + 2 + 0.6 + 12 + 12 + lyrics + + @@ -272,6 +285,7 @@ undershoot-top true @@ -625,8 +639,6 @@ flat - 12 - 12 vertical 12 @@ -638,14 +650,18 @@ flat never + - + 12 + 12 600 400 px - vertical 12 @@ -673,7 +689,8 @@ flat center 330 200 - start + center + true 330 hidden @@ -687,6 +704,8 @@ flat True vertical + center + True title-2 @@ -724,6 +743,8 @@ flat + center + True @@ -802,12 +823,22 @@ circular - - vertical - - + + true + true + + + + True + 2 + 0.6 + 12 + 12 lyrics - True +