Skip to content

Commit

Permalink
gui: restore the font size of lyric window when app is restarted (#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosven authored Sep 23, 2024
1 parent f3bf108 commit 74055a1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[MASTER]
disable=
unknown-option-value, # some options are only valid in latest pylint

missing-docstring,
too-few-public-methods,
no-name-in-module, # seems not working for PyQt5
Expand Down
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
1 change: 1 addition & 0 deletions feeluown/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Plugin:
`enable(app)` and `disable(app)` function. It can also implements
`init_config(config)` and initialize its configurations.
"""
# pylint: disable=too-many-positional-arguments
def __init__(self, module, alias='', version='', desc='',
author='', homepage='', dist_name=''):
"""插件对象
Expand Down
2 changes: 1 addition & 1 deletion feeluown/server/data_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SessionOptions:

class Request:
"""fuo 协议请求对象"""
# pylint: disable=too-many-arguments
# pylint: disable=too-many-arguments,too-many-positional-arguments
# FIXME: maybe add a property 'stdin_content' for Request.
def __init__(self, cmd, cmd_args=None,
cmd_options=None, options=None,
Expand Down

0 comments on commit 74055a1

Please sign in to comment.