mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1872249 [[Enhancement] Don't use bold fonts in the bottom toolbar](https://bugs.launchpad.net/calibre/+bug/1872249)
This commit is contained in:
parent
9c99f3a101
commit
ba362375ae
@ -9,7 +9,7 @@ __docformat__ = 'restructuredtext en'
|
|||||||
import functools
|
import functools
|
||||||
|
|
||||||
from PyQt5.Qt import (
|
from PyQt5.Qt import (
|
||||||
QAction, QApplication, QFont, QIcon, QLabel, QMenu, QPainter, QSizePolicy,
|
QAction, QApplication, QIcon, QLabel, QMenu, QPainter, QSizePolicy,
|
||||||
QSplitter, QStackedWidget, QStatusBar, QStyle, QStyleOption, Qt, QTabBar, QTimer,
|
QSplitter, QStackedWidget, QStatusBar, QStyle, QStyleOption, Qt, QTabBar, QTimer,
|
||||||
QToolButton, QVBoxLayout, QWidget
|
QToolButton, QVBoxLayout, QWidget
|
||||||
)
|
)
|
||||||
@ -271,11 +271,7 @@ class StatusBar(QStatusBar): # {{{
|
|||||||
self.total = self.current = self.selected = self.library_total = 0
|
self.total = self.current = self.selected = self.library_total = 0
|
||||||
self.addPermanentWidget(self.update_label)
|
self.addPermanentWidget(self.update_label)
|
||||||
self.update_label.setVisible(False)
|
self.update_label.setVisible(False)
|
||||||
self._font = QFont()
|
|
||||||
self._font.setBold(True)
|
|
||||||
self.setFont(self._font)
|
|
||||||
self.defmsg = VersionLabel(self)
|
self.defmsg = VersionLabel(self)
|
||||||
self.defmsg.setFont(self._font)
|
|
||||||
self.addWidget(self.defmsg)
|
self.addWidget(self.defmsg)
|
||||||
self.set_label()
|
self.set_label()
|
||||||
|
|
||||||
|
@ -292,9 +292,6 @@ class Main(MainWindow):
|
|||||||
self.status_bar_default_msg = la = QLabel(' ' + _('{0} {1} created by {2}').format(__appname__, get_version(), 'Kovid Goyal'))
|
self.status_bar_default_msg = la = QLabel(' ' + _('{0} {1} created by {2}').format(__appname__, get_version(), 'Kovid Goyal'))
|
||||||
la.base_template = unicode_type(la.text())
|
la.base_template = unicode_type(la.text())
|
||||||
self.status_bar.addWidget(la)
|
self.status_bar.addWidget(la)
|
||||||
f = self.status_bar.font()
|
|
||||||
f.setBold(True)
|
|
||||||
self.status_bar.setFont(f)
|
|
||||||
|
|
||||||
self.boss(self)
|
self.boss(self)
|
||||||
g = QApplication.instance().desktop().availableGeometry(self)
|
g = QApplication.instance().desktop().availableGeometry(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user