Add configurable web zoom factor

This commit is contained in:
Keith Edmunds 2022-03-04 16:53:10 +00:00
parent 8c69f108cb
commit e7004688d0
2 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ class Config(object):
TIMER_MS = 500
TRACK_TIME_FORMAT = "%H:%M:%S"
VOLUME_VLC_DEFAULT = 75
WEB_ZOOM_FACTOR = 1.4
config = Config

View File

@ -468,6 +468,7 @@ class Window(QMainWindow, Ui_MainWindow):
else:
# Create a new tab for this title
widget = self.info_tabs[title] = QWebView()
widget.setZoomFactor(Config.WEB_ZOOM_FACTOR)
self.tabPlaylist.addTab(
widget, title[:Config.INFO_TAB_TITLE_LENGTH])
txt = urllib.parse.quote_plus(title)