Skip to content

Commit

Permalink
gui: fix the font size of lyric window when app is restarted
Browse files Browse the repository at this point in the history
  • Loading branch information
cosven committed Sep 20, 2024
1 parent 9aff59b commit ad25228
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions feeluown/gui/uimain/lyric.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,16 +303,14 @@ def on_lyrics_changed(self, lyric, *_):
self.set_line(LyricLine('未找到可用歌词', '', False))

def zoomin(self):
label = self.line_label
font = label.font()
font = self.font()
resize_font(font, +1)
label.setFont(font)
self.setFont(font)

def zoomout(self):
label = self.line_label
font = label.font()
font = self.font()
resize_font(font, - 1)
label.setFont(font)
self.setFont(font)

def on_font_size_changed(self):
self._border_radius = self.fontMetrics().height() // 3
Expand Down

0 comments on commit ad25228

Please sign in to comment.